This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
162 lines (162 loc) · 5.42 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
env:
es6: true
node: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
plugins:
- '@typescript-eslint'
parser: '@typescript-eslint/parser'
parserOptions:
project: ./tsconfig.json
rules:
array-bracket-newline: [error, consistent]
array-bracket-spacing: [error, never]
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, consistent]
generator-star-spacing: error
handle-callback-err: error
implicit-arrow-linebreak: error
indent: off
key-spacing:
- error
- beforeColon: false
afterColon: true
mode: strict
keyword-spacing: error
linebreak-style: [error, unix]
lines-between-class-members: [error, always, {exceptAfterSingleLine: true}]
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]
no-extra-bind: error
no-extra-label: error
no-floating-decimal: error
no-implied-eval: error
no-invalid-this: error
no-label-var: error
no-lone-blocks: 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-return: error
no-useless-rename: error
no-var: error
no-void: [error, {allowAsStatement: true}]
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, {ignoreReadBeforeAssign: true}]
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
require-atomic-updates: off
sort-imports: [error, {ignoreDeclarationSort: true, ignoreCase: 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/explicit-function-return-type': [warn, {allowExpressions: true}]
'@typescript-eslint/func-call-spacing': [error, never]
'@typescript-eslint/indent': [error, 2]
'@typescript-eslint/member-delimiter-style':
- error
- multiline:
delimiter: none
requireLast: false
singleline:
delimiter: semi
requireLast: false
'@typescript-eslint/member-ordering': error
'@typescript-eslint/no-extra-parens': warn
'@typescript-eslint/no-floating-promises': warn
'@typescript-eslint/no-for-in-array': error
'@typescript-eslint/no-inferrable-types': off
'@typescript-eslint/no-magic-numbers':
- warn
- ignore: [-1, 0, 1, 100, 60, 1024]
ignoreEnums: true
ignoreNumericLiteralTypes: true
ignoreArrayIndexes: true
'@typescript-eslint/no-parameter-properties': off
'@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-nullish-coalescing': warn
'@typescript-eslint/prefer-optional-chain': error
'@typescript-eslint/prefer-string-starts-ends-with': error
'@typescript-eslint/promise-function-async': [error, {allowAny: true, checkArrowFunctions: false}]
'@typescript-eslint/restrict-plus-operands': error
'@typescript-eslint/semi': [error, never]
'@typescript-eslint/unified-signatures': error