ci: Disable import/no-extraneous-dependencies in frontend tests (no-changelog) (#8182)

supersedes #8180
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-12-29 10:45:55 +01:00 committed by GitHub
parent 4bad43dd66
commit 1286d6583c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 4 deletions

View file

@ -15,7 +15,6 @@ module.exports = {
'id-denylist': 'warn',
'import/extensions': 'warn',
'import/no-default-export': 'warn',
'import/no-extraneous-dependencies': 'warn',
'import/order': 'off',
'import/no-cycle': 'warn',
'import/no-duplicates': 'warn',

View file

@ -17,7 +17,6 @@ module.exports = {
'import/extensions': 'warn',
'import/order': 'warn',
'prefer-spread': 'warn',
'import/no-extraneous-dependencies': 'warn',
'@typescript-eslint/naming-convention': ['error', { selector: 'memberLike', format: null }],
'@typescript-eslint/no-explicit-any': 'warn', //812 warnings, better to fix in separate PR

View file

@ -473,7 +473,7 @@ const config = (module.exports = {
},
},
{
files: ['test/**/*.ts', 'src/__tests__/*.ts'],
files: ['test/**/*.ts', '**/__tests__/*.ts'],
rules: {
'n8n-local-rules/no-plain-errors': 'off',
'n8n-local-rules/no-skipped-tests':

View file

@ -21,6 +21,12 @@ module.exports = {
'n8n-local-rules/dangerously-use-html-string-missing': 'error',
},
},
{
files: ['**/*.test.ts', '**/test/**/*.ts', '**/__tests__/**/*.ts'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
],
rules: {
@ -53,6 +59,7 @@ module.exports = {
],
'vue/prop-name-casing': ['error', 'camelCase'],
'vue/attribute-hyphenation': ['error', 'always'],
'import/no-extraneous-dependencies': 'warn',
// TODO: fix these
'@typescript-eslint/no-unsafe-call': 'off',

View file

@ -13,7 +13,6 @@ module.exports = {
'id-denylist': 'warn',
'import/extensions': 'warn',
'import/no-default-export': 'warn',
'import/no-extraneous-dependencies': 'warn',
'import/order': 'off',
'import/no-cycle': 'warn',
'import/no-duplicates': 'warn',