chore: Fix naming-convention lint config

This commit is contained in:
Iván Ovejero 2024-12-20 10:54:41 +01:00
parent 3cb7081446
commit efb1e3db4b
No known key found for this signature in database

View file

@ -233,6 +233,10 @@ const config = (module.exports = {
format: ['camelCase'], format: ['camelCase'],
leadingUnderscore: 'allowSingleOrDouble', leadingUnderscore: 'allowSingleOrDouble',
}, },
{
selector: 'import',
format: ['camelCase', 'PascalCase'],
},
], ],
/** /**
@ -300,17 +304,6 @@ const config = (module.exports = {
*/ */
'@typescript-eslint/triple-slash-reference': 'off', // @TECH_DEBT: Enable, disallowing in all cases - N8N-5820 '@typescript-eslint/triple-slash-reference': 'off', // @TECH_DEBT: Enable, disallowing in all cases - N8N-5820
/**
* https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md
*/
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'import',
format: ['camelCase', 'PascalCase'],
},
],
/** /**
* https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/return-await.md * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/return-await.md
*/ */