n8n/packages/cli/.eslintrc.js
Csaba Tuncsik 596c472ecc
feat: RBAC (#8922)
Signed-off-by: Oleg Ivaniv <[email protected]>
Co-authored-by: Val <[email protected]>
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
Co-authored-by: Valya Bullions <[email protected]>
Co-authored-by: Danny Martini <[email protected]>
Co-authored-by: Danny Martini <[email protected]>
Co-authored-by: Iván Ovejero <[email protected]>
Co-authored-by: Omar Ajoue <[email protected]>
Co-authored-by: oleg <[email protected]>
Co-authored-by: Michael Kret <[email protected]>
Co-authored-by: Michael Kret <[email protected]>
Co-authored-by: Elias Meire <[email protected]>
Co-authored-by: Giulio Andreini <[email protected]>
Co-authored-by: Giulio Andreini <[email protected]>
Co-authored-by: Ayato Hayashi <[email protected]>
2024-05-17 10:53:15 +02:00

55 lines
1.2 KiB
JavaScript

const sharedOptions = require('@n8n_io/eslint-config/shared');
/**
* @type {import('@types/eslint').ESLint.ConfigData}
*/
module.exports = {
extends: ['@n8n_io/eslint-config/node'],
...sharedOptions(__dirname),
parserOptions: {
project: './tsconfig.json',
},
ignorePatterns: [
'jest.config.js',
// TODO: Remove these
'src/databases/ormconfig.ts',
],
rules: {
'n8n-local-rules/no-dynamic-import-template': 'error',
complexity: 'error',
// TODO: Remove this
'import/no-cycle': 'warn',
'import/order': 'off',
'import/extensions': 'warn',
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-base-to-string': 'warn',
'@typescript-eslint/prefer-nullish-coalescing': 'warn',
'@typescript-eslint/no-redundant-type-constituents': 'warn',
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/no-unsafe-enum-comparison': 'warn',
'@typescript-eslint/no-unsafe-declaration-merging': 'warn',
},
overrides: [
{
files: ['./src/decorators/**/*.ts'],
rules: {
'@typescript-eslint/ban-types': [
'warn',
{
types: {
Function: false,
},
},
],
},
},
],
};