👕 Enable consistent-type-imports for nodes-base

This commit is contained in:
Iván Ovejero 2023-01-27 11:24:54 +01:00
parent 277bed2a5c
commit 529ad72b05

View file

@ -194,6 +194,11 @@ const config = (module.exports = {
*/ */
'@typescript-eslint/consistent-type-assertions': 'error', '@typescript-eslint/consistent-type-assertions': 'error',
/**
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-imports.md
*/
'@typescript-eslint/consistent-type-imports': 'error',
/** /**
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-delimiter-style.md * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-delimiter-style.md
*/ */
@ -412,6 +417,20 @@ const config = (module.exports = {
'@typescript-eslint/no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': 'off',
}, },
}, },
// @TODO Remove these exceptions
{
files: [
'./packages/cli/**/*.ts',
'./packages/workflow/**/*.ts',
'./packages/core/**/*.ts',
'./packages/node-dev/**/*.ts',
'./packages/editor-ui/**/*.ts',
'./packages/design-system/**/*.ts',
],
rules: {
'@typescript-eslint/consistent-type-imports': 'off',
},
},
], ],
}); });