-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
40 lines (40 loc) · 1.1 KB
/
.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
36
37
38
39
40
{
"env": {
"browser": true,
"es2021": true,
"node": true,
// 开启setup语法糖环境
"vue/setup-compiler-macros": true
},
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2020,
"sourceType": "module",
"jsxPragma": "React",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"plugin:vue/vue3-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"rules": {
/* ============ typescript ============ */
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-non-null-assertion": 0,
/* =============== vue ================ */
"vue/component-definition-name-casing": ["error", "kebab-case"],
"vue/multi-word-component-names": 0,
"vue/require-default-prop": 0,
// 给vue-next-mini项目使用的
"vue/prefer-import-from-vue": 0,
"@typescript-eslint/no-this-alias": 0
}
}