-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
88 lines (88 loc) · 3.58 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
{
"root": true,
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"es6": true,
"mocha": true,
"node": true
},
"rules": {
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"capitalized-comments": ["error", "always", {"ignoreConsecutiveComments": true}],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "that"],
"eol-last": ["error", "always"],
"eqeqeq": ["warn", "always"],
"func-call-spacing": ["error", "never"],
"func-style": ["error", "declaration", {"allowArrowFunctions": true}],
"function-paren-newline": ["error", "multiline"],
"indent": ["error", "tab"],
"key-spacing": [
"error",
{"beforeColon": false, "afterColon": true, "mode": "strict"}
],
"keyword-spacing": ["error", {"before": true, "after": true}],
"linebreak-style": ["error", "unix"],
"lines-around-comment": ["error", {"beforeBlockComment": true, "afterBlockComment": false}],
"lines-between-class-members": ["error", "always"],
"multiline-ternary": ["error", "never"],
"new-cap": ["error"],
"new-parens": ["error"],
"no-dupe-args": ["error"],
"no-dupe-keys": ["error"],
"no-invalid-regexp": ["error"],
"no-irregular-whitespace": ["error", {"skipStrings": true, "skipComments": true, "skipRegExps": true, "skipTemplates": true}],
"no-lonely-if": ["error"],
"no-mixed-operators": ["error"],
"no-mixed-requires": ["off"],
"no-mixed-spaces-and-tabs": ["error"],
"no-multi-spaces": ["error", { "ignoreEOLComments": false }],
"no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 1, "maxBOF": 0}],
"no-process-exit": ["off"],
"no-redeclare": ["error"],
"no-sequences": ["error"],
"no-shadow": ["off"],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"no-trailing-spaces": ["error", {"ignoreComments": true}],
"no-underscore-dangle": ["off"],
"no-unexpected-multiline": ["error"],
"no-unreachable": ["error"],
"no-unused-expressions": ["error"],
"no-unused-vars": ["error", {"caughtErrors": "all"}],
"no-use-before-define": ["error", {"functions": true, "classes": true, "variables": true}],
"no-var": ["error"],
"no-whitespace-before-property": ["error"],
"nonblock-statement-body-position": ["error", "beside"],
"one-var": ["error", "never"],
"padding-line-between-statements": [
"error",
{"blankLine": "always", "prev": "*", "next": "return"},
{"blankLine": "any", "prev": ["const", "let"], "next": "*"}
],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single"],
"semi-spacing": ["error", {"before": false, "after": true}],
"semi-style": ["error", "last"],
"semi": ["error", "always"],
"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", {"words": true, "nonwords": false}],
"spaced-comment": ["error", "always"],
"strict": ["error", "global"],
"template-tag-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"valid-jsdoc": ["error", {"requireReturn": false}],
"valid-typeof": ["error"],
"vars-on-top": ["off"]
}
}