mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 23:57:19 +00:00
17 lines
587 B
JavaScript
17 lines
587 B
JavaScript
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
import { nodeConfig } from '@n8n/eslint-config/node';
|
|
|
|
export default defineConfig(
|
|
globalIgnores(['src/template/templates/**/template', 'src/template/templates/shared']),
|
|
nodeConfig,
|
|
{
|
|
files: ['**/*.test.ts', 'src/test-utils/**/*'],
|
|
rules: {
|
|
'import-x/no-extraneous-dependencies': ['error', { devDependencies: true }],
|
|
},
|
|
},
|
|
{
|
|
files: ['src/commands/**/*.ts', 'src/modules.d.ts', 'src/configs/eslint.ts'],
|
|
rules: { 'import-x/no-default-export': 'off', '@typescript-eslint/naming-convention': 'off' },
|
|
},
|
|
);
|