This repository has been archived by the owner on Mar 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
81 lines (81 loc) · 2.88 KB
/
.eslintrc.json
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
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true
}
},
"plugins": [
"json"
],
"rules": {
"arrow-parens": ["error", "as-needed"],
"block-scoped-var": "error",
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"camelcase": "off",
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"curly": ["error", "multi-line"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-style": ["error", "declaration", {"allowArrowFunctions": true}],
"indent": ["error", "tab"],
"keyword-spacing": "error",
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"linebreak-style": ["error", "unix"],
"max-len": ["error", 131, 3],
"max-nested-callbacks": ["error", {"max": 3}],
"new-cap": "error",
"new-parens": "error",
"no-console": "off",
"no-eval": "error",
"no-extra-bind": "error",
"no-floating-decimal": "error",
"no-implied-eval": "error",
"no-labels": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", {"max": 1}],
"no-nested-ternary": "error",
"no-new-require": "error",
"no-sequences": "error",
"no-shadow-restricted-names": "error",
"no-shadow": "error",
"no-spaced-func": "error",
"no-sync": "error",
"no-trailing-spaces": ["error", {"skipBlankLines": false}],
"no-undef-init": "error",
"no-use-before-define": ["error", {"functions": false}],
"object-curly-spacing": ["error", "never"],
"padding-line-between-statements": [
"error",
{"blankLine": "always", "prev": "*", "next": ["function", "for", "while", "do", "if", "switch", "return"]},
{"blankLine": "any", "prev": "if", "next": "if"},
{"blankLine": "always", "prev": "block-like", "next": "*"},
{"blankLine": "always", "prev": "multiline-block-like", "next": "*"},
{"blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{"blankLine": "never", "prev": "const", "next": "const"},
{"blankLine": "never", "prev": "let", "next": "let"},
{"blankLine": "never", "prev": "var", "next": "var"}
],
"prefer-arrow-callback": "error",
"quotes": ["error", "single"],
"semi-spacing": ["error", {"before": false, "after": true}],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"spaced-comment": ["error", "always"]
}
}