-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
75 lines (75 loc) · 2.32 KB
/
.eslintrc
File metadata and controls
75 lines (75 loc) · 2.32 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"import/extensions": [".js", ".jsx", ".ts", ".tsx", ".vue"]
},
"plugins": [
"vue",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"object-shorthand": "off",
"no-eq-null": "error",
"no-eval": "off"
},
"overrides": [
{
"files": ["*.vue"],
"rules": {
"vue/valid-template-root": "off",
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/require-default-prop": "off",
"vue/multi-word-component-names": "off",
"vue/no-reserved-props": "off",
"vue/no-v-html": "off",
"vue-scoped-css/enforce-style-type": ["off", { "allows": ["scoped"] }]
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {
"constructor-super": "off",
"no-const-assign": "off",
"no-import-assign": "off",
"no-new-symbol": "off",
"no-obj-calls": "off",
"no-redeclare": "off",
"no-setter-return": "off",
"no-this-before-super": "off",
"no-undef": "off",
"no-unreachable": "off",
"no-unsafe-negation": "off",
"no-var": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"valid-typeof": "off"
}
}
]
}