-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
104 lines (104 loc) · 2.56 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"extends": [
"eslint-config-airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended"
],
"plugins": [
"@typescript-eslint"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"project": "tsconfig.json",
"tsconfigRootDir": "src",
"ecmaVersion": 2019,
"extraFileExtensions": [".vue"],
"sourceType": "module"
},
"rules": {
"no-implied-eval": "error",
"no-trailing-spaces": [
"error",
{ "ignoreComments": true }
],
"semi": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"camelcase": "error",
"max-len": [
"error",
{ "code": 100 }
],
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
],
"radix": "error",
"indent": "off",
"@typescript-eslint/indent": ["error", 2],
"comma-dangle": [
"error",
"only-multiline"
],
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"lines-between-class-members": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"arrow-parens": [
"error",
"as-needed",
{ "requireForBlockBody": true }
],
"object-curly-newline": [
"error",
{ "consistent": true }
],
"no-return-assign": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-param-reassign": [
"error",
{ "props": false }
],
"no-loop-func": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"vue/component-tags-order": [
"error",
{ "order": ["template", "script", "style"] }
],
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"operator-linebreak": [
"error",
"after",
{ "overrides": { "?": "before", ":": "before" } }
],
"@typescript-eslint/no-var-requires" : "off",
"prefer-object-spread": "off",
"prefer-rest-params": "off",
"global-require": "off",
"func-names": [
"error",
"as-needed"
],
"max-classes-per-file": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "args": "after-used" }
],
"import/newline-after-import": "off",
"no-control-regex": "off",
"vue/no-deprecated-v-bind-sync" : "off" // Vue 3
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
}
}