Skip to content

Commit f01645c

Browse files
committed
update
1 parent 99b0bcd commit f01645c

File tree

6 files changed

+20604
-10461
lines changed

6 files changed

+20604
-10461
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
// 'eslint:recommended'用的包收:eslint,作用是:ESLint 推荐规则
1111
// '@vue/prettier'用的包是:@vue/eslint-config-prettier,作用是:关闭 ESLint 与 Prettier 的冲突规则(ESLint 和 Prettier 都有各自的格式规则(比如缩进、引号),直接同时使用会导致重复报错。)
1212
// 'plugin:prettier/recommended'用的包是:eslint-config-prettier,作用是:再启用 Prettier 规则
13-
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'],
13+
extends: ['plugin:vue/essential', 'eslint:recommended'],
1414
// 【parserOptions】扩展 ESLint 对 JavaScript 新语法和实验性特性的支持
1515
parserOptions: {
1616
parser: '@babel/eslint-parser',

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@
2424
},
2525
"[json]": {
2626
"editor.defaultFormatter": "esbenp.prettier-vscode"
27+
},
28+
"editor.codeActionsOnSave": {
29+
"source.fixAll.eslint": true
2730
}
2831
}

0 commit comments

Comments
 (0)