This repository has been archived by the owner on Apr 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
168 lines (168 loc) · 5.44 KB
/
.eslintrc.yml
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
env:
browser: true
es6: true
node: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:vue/recommended'
plugins:
- vue
- '@typescript-eslint'
parserOptions:
project: ./tsconfig.json
parser: '@typescript-eslint/parser'
extraFileExtensions: ['.vue']
rules:
array-bracket-newline: [error, {multiline: true}]
array-bracket-spacing: [error, never]
array-element-newline: [error, consistent]
array-callback-return: error
arrow-parens: [error, always]
arrow-spacing: error
block-spacing: [error, never]
brace-style: [error, 1tbs, {allowSingleLine: true}]
camelcase: [error, {properties: always}]
callback-return: error
comma-dangle: [error, always-multiline]
comma-spacing: [error, {before: false, after: true}]
comma-style: [error, last]
computed-property-spacing: [error, never]
class-methods-use-this: warn
complexity: warn
curly: [error, multi-line]
default-case: error
dot-location: [error, property]
eol-last: [error, always]
eqeqeq: error
func-name-matching: [error, always]
func-names: [error, as-needed]
function-paren-newline: error
generator-star-spacing: error
handle-callback-err: error
implicit-arrow-linebreak: error
indent: off
key-spacing:
- error
- singleLine:
beforeColon: false
afterColon: true
mode: strict
multiLine:
align: colon
keyword-spacing: error
linebreak-style: [error, unix]
lines-between-class-members: error
max-len: [error, 120]
new-parens: error
newline-per-chained-call: [error, {ignoreChainWithDepth: 3}]
no-array-constructor: error
no-buffer-constructor: error
no-caller: error
no-console: error
no-div-regex: warn
no-duplicate-imports: [error, {includeExports: true}]
no-extra-bind: error
no-extra-label: error
no-else-return: error
no-floating-decimal: error
no-implied-eval: error
no-invalid-this: error
no-label-var: error
no-lone-blocks: error
no-lonely-if: error
no-loop-func: error
no-mixed-requires: error
no-multiple-empty-lines: [error, {maxEOF: 1, maxBOF: 0, max: 2}]
no-nested-ternary: error
no-new: error
no-new-object: error
no-new-require: error
no-new-wrappers: error
no-path-concat: error
no-proto: error
no-return-assign: [error, always]
no-return-await: error
no-self-compare: error
no-sequences: error
no-template-curly-in-string: error
no-throw-literal: error
no-trailing-spaces: error
no-unneeded-ternary: error
no-useless-call: error
no-useless-computed-key: error
no-useless-concat: error
no-useless-constructor: error
no-useless-return: error
no-useless-rename: error
no-var: error
no-void: error
no-whitespace-before-property: error
object-curly-newline: [error, {consistent: true}]
object-curly-spacing: [error, never]
object-shorthand: [error, always]
one-var: [error, never]
operator-assignment: [error, always]
operator-linebreak: [error, before]
padded-blocks: [error, never]
prefer-arrow-callback: [error, {allowNamedFunctions: true}]
prefer-const: error
prefer-object-spread: error
prefer-named-capture-group: warn
prefer-numeric-literals: error
prefer-promise-reject-errors: error
prefer-rest-params: error
prefer-spread: error
prefer-template: error
quotes: [error, single]
quote-props: [error, consistent-as-needed]
radix: error
rest-spread-spacing: error
sort-imports: [error, {ignoreDeclarationSort: true}]
space-before-blocks: [error, always]
space-before-function-paren: [error, {anonymous: always, named: never, asyncArrow: always}]
space-in-parens: [error, never]
space-infix-ops: error
space-unary-ops: error
symbol-description: error
switch-colon-spacing: error
template-curly-spacing: error
template-tag-spacing: error
unicode-bom: error
yield-star-spacing: error
'@typescript-eslint/await-thenable': error
'@typescript-eslint/consistent-type-definitions': [error, interface]
'@typescript-eslint/func-call-spacing': [error, never]
'@typescript-eslint/generic-type-naming': error
'@typescript-eslint/indent': [error, 2]
'@typescript-eslint/interface-name-prefix': [error, always]
'@typescript-eslint/member-delimiter-style':
- error
- multiline:
delimiter: none
requireLast: false
singleline:
delimiter: semi
requireLast: false
'@typescript-eslint/member-ordering': error
'@typescript-eslint/no-extraneous-class': error
'@typescript-eslint/no-extra-parens': warn
'@typescript-eslint/no-floating-promises': warn
'@typescript-eslint/no-for-in-array': error
'@typescript-eslint/no-magic-numbers': [warn, {ignoreEnums: true, ignoreNumericLiteralTypes: true}]
# '@typescript-eslint/no-misused-promises': error
'@typescript-eslint/no-require-imports': error
'@typescript-eslint/no-this-alias': error
'@typescript-eslint/no-use-before-define': [error, {functions: false, typedefs: false}]
'@typescript-eslint/no-unnecessary-type-assertion': error
'@typescript-eslint/no-useless-constructor': error
'@typescript-eslint/prefer-for-of': error
'@typescript-eslint/prefer-function-type': error
'@typescript-eslint/prefer-includes': error
'@typescript-eslint/prefer-string-starts-ends-with': error
'@typescript-eslint/promise-function-async': error
'@typescript-eslint/restrict-plus-operands': error
'@typescript-eslint/semi': [error, never]
# '@typescript-eslint/unbound-method': error
'@typescript-eslint/unified-signatures': error