This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
generated from KennethTrecy/web_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
191 lines (191 loc) · 4.68 KB
/
.eslintrc
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# Based from KennethTrecy's personal configuration
root: true
parserOptions:
parser: "@typescript-eslint/parser"
ecmaVersion: 2020
sourceType: "module"
ecmaFeatures:
jsx: true
env:
browser: true
es6: true
node: true
jest: true
globals:
fetchMock: "readonly"
plugins: ["@typescript-eslint"]
extends:
- "eslint:all"
- "plugin:@typescript-eslint/recommended"
- "plugin:vue/vue3-recommended"
parser: "vue-eslint-parser"
rules:
array-bracket-newline: ["error", "consistent"]
array-bracket-spacing: ["error", "always"]
array-element-newline: ["error", "consistent"]
arrow-parens: ["error", "as-needed", { "requireForBlockBody": false }]
brace-style: ["error", "1tbs", { "allowSingleLine": true }]
dot-location: ["error", "property"]
default-case: "warn"
class-methods-use-this: "off"
curly: ["error", "multi-line", "consistent"]
eqeqeq: ["warn"]
func-style: ["error", "declaration", { "allowArrowFunctions": true }]
func-names: "off"
function-call-argument-newline: ["error", "consistent"]
function-paren-newline: "off"
generator-star-spacing: ["error", "after"]
indent:
- "error"
- "tab"
-
SwitchCase: 1
CallExpression: { "arguments": "first" }
MemberExpression: 0
VariableDeclarator: "first"
id-length: ["error", { "exceptions": ["i", "j", "k", "t"] }]
lines-around-comment:
- "warn"
-
allowClassStart: true
beforeBlockComment: false
lines-between-class-members: ["error", "always", {"exceptAfterSingleLine": true }]
max-len:
- "error"
- { "code": 100, "tabWidth": 3 }
max-lines:
- "warn"
-
max: 400
skipBlankLines: true
skipComments: true
max-lines-per-function: [ "off" ]
max-classes-per-file: ["error", 2]
max-params: ["error", 6]
max-statements: "off"
multiline-ternary: ["error", "always-multiline"]
new-cap:
- "error"
-
capIsNew: false
newIsCap: false
newline-per-chained-call: "off"
no-alert: "off"
no-bitwise:
- "error"
-
allow:
- "|"
- "&"
no-duplicate-imports: "warn"
no-empty-function: ["error", { "allow": ["arrowFunctions"] }]
no-console: "off"
no-underscore-dangle: "off"
no-lonely-if: "error"
no-tabs: ["error", { "allowIndentationTabs": true }]
no-ternary: "off"
no-throw-literal: "warn"
no-plusplus: "off"
no-unmodified-loop-condition: "off"
no-unused-vars: "off"
no-use-before-define: "warn"
no-useless-constructor: "warn"
no-undef: "warn"
no-lone-blocks: "off"
no-magic-numbers:
- "warn"
-
ignore:
- -1
- 0
- 1
- 2
- 3
- 4
- 200
- 299
no-mixed-operators: "off"
no-return-await: "off"
no-warning-comments: "off"
nonblock-statement-body-position:
- "error"
- "beside"
-
overrides:
if: "any"
object-curly-spacing: ["error", "always"]
one-var: ["error", "never"]
operator-linebreak: ["error", "before"]
padded-blocks: ["error", "never"]
prefer-object-has-own: [ "warn" ]
require-atomic-updates: [ "error", { "allowProperties": true } ]
prefer-named-capture-group: "off"
semi: [ "error", "never" ]
space-before-function-paren: ["error", "never"]
sort-imports: "off"
sort-keys: "off"
strict: "warn"
quotes:
- "error"
- "double"
- { "avoidEscape": true }
vue/html-indent:
- "error"
- "tab"
-
attribute: 1
baseIndent: 1
closeBracket: 0
alignAttributesVertically: true
ignores: []
vue/max-attributes-per-line:
- "error"
-
singleline:
max: 2
multiline:
max: 1
vue/multi-word-component-names:
- "warn"
vue/html-closing-bracket-newline:
- "error"
-
singleline: "never"
multiline: "never"
vue/html-closing-bracket-spacing:
- "error"
-
startTag: "never"
endTag: "never"
selfClosingTag: "never"
vue/component-tags-order:
- "error"
-
order:
- "template"
- "style"
- "script"
vue/sort-keys:
- "warn"
- "asc"
-
caseSensitive: true
ignoreChildrenOf: ["methods"]
ignoreGrandchildrenOf: ["directives", "inject", "watch"]
minKeys: 2
natural: false
vue/html-self-closing:
- "error"
-
html:
void: "always"
normal: "never"
component: "always"
svg: "always"
math: "always"
vue/no-setup-props-destructure: "off"
"@typescript-eslint/ban-ts-comment": "off"
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-var-requires": "off"
"@typescript-eslint/no-non-null-assertion": "warn"
"@typescript-eslint/no-unused-vars": [ "error", { "argsIgnorePattern": "^unused", "varsIgnorePattern": "^unused" } ]