forked from dromara/Jpom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
35 lines (35 loc) · 904 Bytes
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"root": true,
"env": {
"node": true,
"es2021": true,
"browser": true
},
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"ecmaFeatures": {
"jsx": true // 启用 jsx
}
},
"plugins": ["prettier", "@typescript-eslint"],
"extends": [
"eslint:recommended", // 内置规则
"plugin:vue/vue3-recommended", // 支持 vue sfc
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended",
"eslint-config-prettier",
"./.eslintrc-auto-import.json",
"./.eslintrc-global-import.json"
],
"rules": {
// 禁止使用 var,而应该用 let 或 const
"no-var": "error",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"vue/multi-word-component-names": "off",
// 处理换行
"endOfLine": 0
}
}