-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
99 lines (99 loc) · 2.33 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
89
90
91
92
93
94
95
96
97
98
99
{
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:import/recommended",
"plugin:eslint-comments/recommended"
],
"env": {
"node": true
},
"root": true,
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"markdown",
"deprecate",
"json-format",
"node",
"import",
"eslint-comments",
"no-secrets",
"no-loops"
],
"settings": {
"json/sort-package-json": "pro"
},
"rules": {
"space-in-parens": [
1,
"always"
],
"space-infix-ops": ["error", { "int32Hint": false }],
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"no-unexpected-multiline": 2,
"no-loops/no-loops": 2,
"array-bracket-spacing": ["error", "never"],
"block-spacing": "error",
"no-restricted-syntax": [
"error",
{
"selector": "SequenceExpression",
"message": "The comma operator is confusing and a common mistake."
}
],
"semi": ["error", "never"],
"object-curly-spacing": ["error", "always", { "arraysInObjects": false, "objectsInObjects": false }],
"quotes": [2, "single", "avoid-escape"],
"no-unused-vars": [
2,
{
"vars": "all",
"args": "none"
}
],
"eqeqeq": [2, "smart"],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true
}
],
"keyword-spacing": 2,
"lines-around-comment": [
"error",
{
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": true,
"afterLineComment": false,
"allowBlockStart": false,
"allowBlockEnd": true,
"allowObjectStart": false,
"allowObjectEnd": true,
"allowArrayStart": false,
"allowArrayEnd": true
}
],
"space-before-function-paren": ["error", "never"],
"space-before-blocks": ["error", "always"],
"multiline-comment-style": [2, "bare-block"],
"spaced-comment": ["error", "always"],
// "max-len": ["error", { "code": 80, "ignoreUrls": true }],
"no-secrets/no-secrets": [
"error",
{
"additionalRegexes": {
"Basic Auth": "Authorization: Basic [A-Za-z0-9+/=]*"
}
}
]
}
}