mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
596c472ecc
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]>
55 lines
1.2 KiB
JavaScript
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,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
};
|