29 lines
784 B
JavaScript
29 lines
784 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' }],
|
||
|
|
|
||
|
|
// TODO: Remove this
|
||
|
|
'@typescript-eslint/require-await': 'warn',
|
||
|
|
'@typescript-eslint/no-unsafe-call': 'warn',
|
||
|
|
'@typescript-eslint/naming-convention': 'warn',
|
||
|
|
'@typescript-eslint/no-base-to-string': 'warn',
|
||
|
|
'@typescript-eslint/no-unsafe-function-type': 'warn',
|
||
|
|
'import-x/export': 'warn',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
{
|
||
|
|
files: ['**/*.test.ts'],
|
||
|
|
rules: {
|
||
|
|
'@typescript-eslint/no-unused-expressions': 'warn',
|
||
|
|
'@typescript-eslint/no-unsafe-assignment': 'warn',
|
||
|
|
'@typescript-eslint/unbound-method': 'warn',
|
||
|
|
'import-x/no-duplicates': 'warn',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
);
|