Skip to content

Commit 44d9675

Browse files
committed
Enforce type imports
1 parent e8e5142 commit 44d9675

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ module.exports = {
3939
],
4040
'@typescript-eslint/array-type': 'error',
4141
'@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }],
42+
'@typescript-eslint/consistent-type-imports': [
43+
'error',
44+
{
45+
prefer: 'type-imports',
46+
disallowTypeAnnotations: true,
47+
},
48+
],
4249
'@typescript-eslint/func-call-spacing': ['error'],
4350
'@typescript-eslint/indent': ['error', 2],
4451
'@typescript-eslint/naming-convention': [

0 commit comments

Comments
 (0)