build: Only enable no-argument-spread lint rule in node packages (#18378)

This commit is contained in:
Elias Meire
2025-08-18 13:48:46 +02:00
committed by GitHub
parent f769d5588e
commit ba5ada24c2
7 changed files with 11 additions and 10 deletions

View File

@@ -24,7 +24,6 @@ export const localRulesPlugin = {
'n8n-local-rules/no-interpolation-in-regular-string': 'error',
'n8n-local-rules/no-unused-param-in-catch-clause': 'error',
'n8n-local-rules/no-useless-catch-throw': 'error',
'n8n-local-rules/no-argument-spread': 'warn', // TODO: mark error
},
},
},

View File

@@ -9,17 +9,19 @@ export default defineConfig(
// TODO: remove all the following rules
eqeqeq: 'warn',
'id-denylist': 'warn',
'import-x/extensions': 'warn',
'prefer-spread': 'warn',
'no-case-declarations': 'warn',
'no-extra-boolean-cast': 'warn',
'no-empty': 'warn',
'no-prototype-builtins': 'warn',
'import-x/order': 'warn',
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
'no-async-promise-executor': 'warn',
'no-useless-escape': 'warn',
'import-x/order': 'warn',
'import-x/extensions': 'warn',
'n8n-local-rules/no-argument-spread': 'warn', // TODO: mark error
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
'@typescript-eslint/naming-convention': ['error', { selector: 'memberLike', format: null }],
'@typescript-eslint/no-explicit-any': 'warn', //812 warnings, better to fix in separate PR
'@typescript-eslint/no-non-null-assertion': 'warn', //665 errors, better to fix in separate PR