mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
29 lines
781 B
JavaScript
29 lines
781 B
JavaScript
import { defineConfig } from 'eslint/config';
|
|
import { baseConfig } from '@n8n/eslint-config/base';
|
|
|
|
export default defineConfig(
|
|
baseConfig,
|
|
{
|
|
rules: {
|
|
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
|
|
complexity: 'error',
|
|
|
|
// TODO: Remove this
|
|
'@typescript-eslint/naming-convention': 'warn',
|
|
'@typescript-eslint/no-require-imports': 'warn',
|
|
'@typescript-eslint/require-await': 'warn',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.test.ts'],
|
|
rules: {
|
|
'n8n-local-rules/no-uncaught-json-parse': 'warn',
|
|
'import-x/no-duplicates': 'warn',
|
|
'@typescript-eslint/unbound-method': 'warn',
|
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
'@typescript-eslint/no-unsafe-member-access': 'warn',
|
|
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
|
},
|
|
},
|
|
);
|