Skip to content

Commit

Permalink
fix: import parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Nov 23, 2023
1 parent 3e1034e commit 913717a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions import.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ module.exports = {
],
},
},
'import/parsers': {
'@typescript-eslint/parser': ['.cts', '.mts', '.ts', '.tsx'],
'vue-eslint-parser': ['.vue'],
},
},
rules: {
// 自动将类型导入修改为 import type 语句
Expand Down

0 comments on commit 913717a

Please sign in to comment.