Skip to content

Commit

Permalink
feat(eslint): add rule @typescript-eslint/consistent-type-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Mar 10, 2024
1 parent 7fd8154 commit cd34c0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
],
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0, // 允许使用 any
"@typescript-eslint/consistent-type-imports": [
"warn",
{ "fixStyle": "inline-type-imports" }
],

// -------- React 相关 --------------
// jsx 如果有多行,用括号包裹,且括号独自一行
Expand Down

0 comments on commit cd34c0b

Please sign in to comment.