From b3aa9eec3fb1e0bfac367790f2cf453552e0449e Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Fri, 28 Jun 2024 10:32:51 +0200 Subject: [PATCH] feat: typ-only imports --- .changeset/dirty-ghosts-hammer.md | 5 +++++ index.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/dirty-ghosts-hammer.md diff --git a/.changeset/dirty-ghosts-hammer.md b/.changeset/dirty-ghosts-hammer.md new file mode 100644 index 0000000..db80b09 --- /dev/null +++ b/.changeset/dirty-ghosts-hammer.md @@ -0,0 +1,5 @@ +--- +"@tpluscode/eslint-config": patch +--- + +Enforce type-only imports where necessary diff --git a/index.js b/index.js index 6ac27a9..aa1752d 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,8 @@ module.exports = { '@typescript-eslint/no-dupe-class-members': ['error'], 'no-redeclare': 'off', '@typescript-eslint/no-redeclare': 'warn', - '@typescript-eslint/no-unused-vars': 'off' + '@typescript-eslint/no-unused-vars': 'off', + '@typescript-eslint/consistent-type-imports': 'warn' }, settings: { 'import/parsers': {