-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
67 lines (67 loc) · 2.12 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
{
"extends": [
"eslint:recommended",
"prettier"
],
"plugins": [
"prettier"
],
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"mocha": true
},
"rules": {
"prettier/prettier": ["error", { "singleQuote": true, "printWidth": 100, "semi": false }],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error"],
"brace-style": ["error", "1tbs"],
"curly": ["error", "all"],
"dot-notation": ["error", { "allowPattern": "^[a-z]+(_[a-z]+)+$" }],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "smart"],
"generator-star-spacing": ["error"],
"handle-callback-err": [0],
"lines-around-directive": ["error", { "before": "never", "after": "always" }],
"max-len": [1, { "code": 100, "ignoreUrls": true }],
"new-cap": [0],
"newline-after-var": ["error", "always"],
"newline-before-return": ["error"],
"no-console": [1],
"no-else-return": ["error"],
"no-extra-bind": ["error"],
"no-extra-label": ["error"],
"no-floating-decimal": ["error"],
"no-implicit-coercion": ["error", { "allow": ["!!"] }],
"no-lonely-if": ["error"],
"no-undef-init": ["error"],
"no-unneeded-ternary": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-rename": ["error"],
"no-useless-return": ["error"],
"no-var": ["error"],
"nonblock-statement-body-position": ["error", "below"],
"object-curly-spacing": ["error", "always"],
"object-property-newline": ["error"],
"object-shorthand": ["error"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"prefer-spread": ["error"],
"prefer-template": ["error"],
"quotes": ["error", "backtick", { "avoidEscape": true }],
"require-jsdoc": [0],
"rest-spread-spacing": ["error"],
"semi": ["error", "never"],
"spaced-comment": ["error", "always"],
"template-curly-spacing": ["error"],
"valid-jsdoc": [0],
"wrap-iife": ["error", "inside"],
"yield-star-spacing": ["error"],
"yoda": ["error", "never"]
}
}