Showing
1 changed file
with
12 additions
and
4 deletions
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2022-05-27 08:59:09 | 3 | * @Date: 2022-05-27 08:59:09 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2022-06-22 23:40:57 | 5 | + * @LastEditTime: 2022-07-08 18:15:20 |
| 6 | * @FilePath: /tswj/.eslintrc.js | 6 | * @FilePath: /tswj/.eslintrc.js |
| 7 | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | 7 | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| 8 | */ | 8 | */ |
| ... | @@ -10,8 +10,8 @@ module.exports = { | ... | @@ -10,8 +10,8 @@ module.exports = { |
| 10 | // parser: '@typescript-eslint/parser', | 10 | // parser: '@typescript-eslint/parser', |
| 11 | parser: 'vue-eslint-parser', | 11 | parser: 'vue-eslint-parser', |
| 12 | parserOptions: { | 12 | parserOptions: { |
| 13 | - // parser: 'babel-eslint', | 13 | + parser: 'babel-eslint', |
| 14 | - parser: '@typescript-eslint/parser', | 14 | + // parser: '@typescript-eslint/parser', |
| 15 | }, | 15 | }, |
| 16 | extends: [ | 16 | extends: [ |
| 17 | // add more generic rule sets here, such as: | 17 | // add more generic rule sets here, such as: |
| ... | @@ -36,5 +36,13 @@ module.exports = { | ... | @@ -36,5 +36,13 @@ module.exports = { |
| 36 | "vue/multi-word-component-names": 0, // 要求组件名称始终为多字 | 36 | "vue/multi-word-component-names": 0, // 要求组件名称始终为多字 |
| 37 | "vue/html-indent": 0, // 执行一致的缩进 | 37 | "vue/html-indent": 0, // 执行一致的缩进 |
| 38 | "vue/html-closing-bracket-newline": 0, // 在标签的右括号之前要求或禁止换行 | 38 | "vue/html-closing-bracket-newline": 0, // 在标签的右括号之前要求或禁止换行 |
| 39 | - } | 39 | + }, |
| 40 | + overrides: [ | ||
| 41 | + { | ||
| 42 | + files: ['*.ts'], | ||
| 43 | + parser: '@typescript-eslint/parser', | ||
| 44 | + plugins: ['@typescript-eslint'], | ||
| 45 | + extends: ['plugin:@typescript-eslint/recommended'], | ||
| 46 | + }, | ||
| 47 | + ], | ||
| 40 | } | 48 | } | ... | ... |
-
Please register or login to post a comment