Skip to content

Commit

Permalink
Enable '@typescript-eslint/consistent-type-imports' rule (#284)
Browse files Browse the repository at this point in the history
This commit enables the '@typescript-eslint/consistent-type-imports' rule, helping to enforce the consistency of
writing type import statements across the codebase.
  • Loading branch information
Mrtenz authored Apr 20, 2023
1 parent bed2ca8 commit 49fbaaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/typescript/rules-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/default-param-last": "error",
"@typescript-eslint/naming-convention": [
"error",
Expand Down
1 change: 1 addition & 0 deletions packages/typescript/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ module.exports = {
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': [
'error',
Expand Down

0 comments on commit 49fbaaf

Please sign in to comment.