forked from RPiOVN/p2pvps-client
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.json
74 lines (71 loc) · 2.28 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
{
"root": true,
"parserOptions": {
"ecmaVersion": 8
},
"plugins": ["prettier", "unicorn", "promise"],
"rules": {
"no-debugger": 0,
"no-regex-spaces": ["error"],
"no-unsafe-negation": ["error"],
"curly": ["error", "multi-or-nest", "consistent"],
"dot-location": ["error", "property"],
"dot-notation": ["error"],
"eqeqeq": ["error", "smart"],
"no-else-return": ["error"],
"no-extra-bind": ["error"],
"no-extra-label": ["error"],
"no-floating-decimal": ["error"],
"no-implicit-coercion": ["error", { "allow": ["!!"] }],
"wrap-iife": ["error", "inside"],
"strict": ["error", "global"],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"comma-style": ["error", "last"],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"new-parens": ["error"],
"no-lonely-if": ["error"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"no-trailing-spaces": ["error", { "ignoreComments": true }],
"no-whitespace-before-property": ["error"],
"semi": ["error", "always"],
"template-tag-spacing": ["error", "never"],
"arrow-body-style": 0,
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-rename": ["error"],
"no-var": ["error"],
"prefer-spread": ["error"],
"prefer-template": ["error"],
"rest-spread-spacing": ["error", "never"],
"prefer-const": ["warn", { "destructuring": "all" }],
"no-unreachable": ["warn"],
"no-unused-vars": ["warn", { "args": "none" }],
"prettier/prettier": [
"warn",
{
"printWidth": 100,
"trailingComma": "es5"
}
],
"unicorn/filename-case": ["warn", { "case": "kebabCase" }],
"unicorn/throw-new-error": ["error"],
"unicorn/no-array-instanceof": ["error"],
"unicorn/no-new-buffer": ["error"],
"unicorn/no-hex-escape": ["error"],
"unicorn/prefer-starts-ends-with": ["warn"],
"promise/catch-or-return": ["error"]
}
}