Skip to content

Commit

Permalink
NO-JIRA: Add consistent-type-imports - prefer type imports (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicfraser authored Jan 17, 2022
1 parent 8e05e49 commit f212bbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
],
},
},
],
Expand Down

0 comments on commit f212bbb

Please sign in to comment.