diff --git a/UNRELEASED.md b/UNRELEASED.md index c42b96fb..9c127751 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -7,3 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Bump @typescript-eslint/eslint-plugin from 5.8.0 to 5.9.0 - Bump @typescript-eslint/parser from 5.8.0 to 5.9.1 - Bump prettier from 2.3.2 to 2.5.1 + +**Added** + +- `consistent-type-imports` to prefer `type-imports` diff --git a/index.js b/index.js index 9b85617a..61daa8e1 100644 --- a/index.js +++ b/index.js @@ -202,6 +202,12 @@ module.exports = { 'no-useless-constructor': 'off', '@typescript-eslint/no-useless-constructor': 'warn', '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], + '@typescript-eslint/consistent-type-imports': [ + 'error', + { + prefer: 'type-imports', + }, + ], }, }, ],