aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
blob: ce3a490c1ea5b8768036f7b956eaf8a4032d5108 (plain)
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
{
	"root": true,
	"env": {
		"commonjs": true,
		"es2021": true,
		"node": true
	},
	"extends": [
		"standard",
		"plugin:@typescript-eslint/recommended",
		"plugin:vue/vue3-strongly-recommended",
		"@vue/standard",
		"@vue/typescript"
	],
	"parser": "@typescript-eslint/parser",
	"parserOptions": {
		"ecmaVersion": 12
	},
	"plugins": [ "@typescript-eslint" ],
	"ignorePatterns": [
		"/node_modules"
	],
	"rules": {
		"no-console": "off",
		"no-debugger": "off",
		"array-bracket-spacing": [
			"error",
			"always"
		],
		"array-bracket-newline": [ "warn", "consistent" ],
		"array-element-newline": "off",
		"arrow-body-style": "off",
		"arrow-parens": [
			"error",
			"as-needed"
		],
		"arrow-spacing": [
			"error",
			{
				"after": true,
				"before": true
			}
		],
		"brace-style": [ "error", "stroustrup", { "allowSingleLine": false } ],
		"camelcase": "off",
		"capitalized-comments": [
			"error",
			"always"
		],
		"comma-spacing": [
			"error",
			{
				"after": true,
				"before": false
			}
		],
		"comma-style": [
			"error",
			"last"
		],
		"comma-dangle": [ "error", "never" ],
		"computed-property-spacing": [
			"error",
			"never"
		],
		"curly": [ "error", "all" ],
		"dot-notation": "off",
		"eol-last": [
			"error",
			"never"
		],
		"eqeqeq": "error",
		"func-names": "off",
		"func-style": [ "error", "declaration" ],
		"id-length": "off",
		"implicit-arrow-linebreak": [
			"error",
			"beside"
		],
		"indent": [ "warn", "tab" ],
		"keyword-spacing": [ "error", {
			"before": false,
			"overrides": {
				"from": { "before": true },
				"for": { "after": false },
				"if": { "after": false },
				"throw": { "after": false },
				"while": { "after": false }
			}
		} ],
		"linebreak-style": [
			"error",
			"unix"
		],
		"line-comment-position": ["error", { "position": "above" }],
		"max-len": "off",
		"max-lines": [ "error", 600 ],
		"max-params": [ "error", 6 ],
		"max-statements": "off",
		"multiline-comment-style": [ "error", "bare-block" ],
		"no-await-in-loop": "off",
		"no-control-regex": "off",
		"no-else-return": [
			"error",
			{
				"allowElseIf": true
			}
		],
		"no-extra-parens": "off",
		"no-magic-numbers": "off",
		"no-tabs": "off",
		"no-ternary": "off",
		"no-underscore-dangle": [ "error", { "allowAfterThis": true } ],
		"no-var": "error",
		"object-curly-spacing": [
			"error",
			"always"
		],
		"object-shorthand": "off",
		"one-var": "off",
		"padded-blocks": "off",
		"prefer-arrow-callback": "off",
		"prefer-const": "off",
		"prefer-destructuring": "off",
		"prefer-template": "off",
		"quote-props": [ "error", "as-needed" ],
		"quotes": [ "error", "double" ],
		"semi": [ "error", "always" ],
		"semi-style": [
			"error",
			"last"
		],
		"sort-keys": "off",
		"space-before-function-paren": [ "error", "never" ],
		"space-in-parens": [
			"error",
			"never"
		],
		"spaced-comment": [
			"error",
			"always"
		],
		"strict": [
			"error",
			"never"
		],
		"template-curly-spacing": [
			"error",
			"never"
		],
		"unicode-bom": [
			"error",
			"never"
		],
		"yoda": [
			"error",
			"never"
		],
		"vue/max-attributes-per-line": [ "warn", {
			"singleline": {
				"max": 2,
				"allowFirstLine": true
			},
			"multiline": {
				"max": 2,
				"allowFirstLine": false
			}
		} ],
		"vue/html-closing-bracket-newline": [ "error", {
			"singleline": "never",
			"multiline": "never"
		} ],
		"vue/html-indent": [ "error", "tab" ]
	}
}