mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
32 lines
572 B
JavaScript
32 lines
572 B
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: ['scenarios/**'],
|
|
|
|
rules: {
|
|
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
|
|
'n8n-local-rules/no-plain-errors': 'off',
|
|
complexity: 'error',
|
|
},
|
|
|
|
overrides: [
|
|
{
|
|
files: ['./src/commands/*.ts'],
|
|
rules: {
|
|
'import/no-default-export': 'off',
|
|
},
|
|
},
|
|
],
|
|
};
|