Skip to content

Commit

Permalink
feat: allow TypeAnnotations @import
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Oct 23, 2024
1 parent 1807730 commit f3cd523
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-dodos-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/eslint-config-hyperse": patch
---

Allow `TypeAnnotations` @import
5 changes: 4 additions & 1 deletion src/main/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export const defaults = defineFlatConfig([
caughtErrorsIgnorePattern: '^_',
},
],
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/consistent-type-imports': [
'error',
{ disallowTypeAnnotations: false },
],
},
} as FlatESLintConfig,
]);

0 comments on commit f3cd523

Please sign in to comment.