-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
92 lines (92 loc) · 2.51 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
parserOptions:
ecmaVersion: 2020
sourceType: "module"
env:
es6: true
node: true
mocha: true
extends:
- "eslint:all"
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: "warn"
curly: [ "error", "multi-line", "consistent" ]
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 }]
id-length: [ "error", { "exceptions": [ "i", "j", "k", "t" ] }]
lines-around-comment:
- "warn"
-
allowClassStart: true
beforeBlockComment: false
max-len:
- "error"
- { "code": 100, "tabWidth": 3 }
max-lines:
- "error"
-
skipBlankLines: true
skipComments: true
max-classes-per-file: [ "error", 2]
max-params: [ "error", 6]
max-statements: "off"
multiline-ternary: [ "error", "always-multiline" ]
new-cap:
- "error"
- { "capIsNewExceptions": [ "Selector" ] }
no-alert: "off"
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-plusplus: "off"
no-unmodified-loop-condition: "off"
no-unused-vars: [ "error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
no-use-before-define: "warn"
no-useless-constructor: "warn"
no-undef: "warn"
no-magic-numbers:
- "warn"
-
ignore:
- -1
- 0
- 1
- 2
- 200
- 404
no-mixed-operators: "off"
no-warning-comments: "off"
padded-blocks: [ "error", "never" ]
object-curly-spacing: [ "error", "always" ]
one-var: [ "error", "never" ]
operator-linebreak: [ "error", "before" ]
prefer-named-capture-group: "warn"
semi: [ "error", "never" ]
space-before-function-paren: [ "error", "never" ]
sort-imports:
- "error"
-
allowSeparatedGroups: true
memberSyntaxSortOrder:
- "none"
- "all"
- "single"
- "multiple"
sort-keys: "off"
quotes:
- "error"
- "double"
- { "avoidEscape": true }