diff --git a/packages/@n8n_io/eslint-config/base.js b/packages/@n8n_io/eslint-config/base.js index cadc748b5c..95ead3f46b 100644 --- a/packages/@n8n_io/eslint-config/base.js +++ b/packages/@n8n_io/eslint-config/base.js @@ -194,6 +194,11 @@ const config = (module.exports = { */ '@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 */ @@ -412,6 +417,20 @@ const config = (module.exports = { '@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', + }, + }, ], });