-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
54 lines (54 loc) · 1.66 KB
/
.eslintrc.js
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
module.exports = {
"root": true,
"env": {
"commonjs": true,
"node": true,
"es6": true,
"mocha": true
},
"parserOptions": {
"sourceType": "script",
"allowImportExportEverywhere": true
},
"extends": ["eslint:recommended"],
"rules": {
"no-console": ["warn", {"allow": ["warn", "error"]}],
"semi": ["error", "never"],
"strict": ["error", "global"],
"no-trailing-spaces": ["error", {"skipBlankLines": true}],
"quotes": ["error", "single"],
"no-template-curly-in-string": "error",
"no-caller": "error",
"yoda": "error",
"eqeqeq": ["error", "always"],
"brace-style": "error",
"eol-last": "error",
"indent": ["error", 2, {
"SwitchCase": 1,
"MemberExpression": 1,
"outerIIFEBody": 1,
"CallExpression": {"arguments": 1},
"ArrayExpression": 1,
"ObjectExpression": 1,
"FunctionExpression": {"body": 1, "parameters": "first"}
}],
"comma-style": ["error", "last"],
"no-var": "error",
"array-bracket-spacing": ["error", "never"],
"comma-spacing": ["error", {"before": false, "after": true}],
"one-var": ["error", "never"],
"no-extra-bind": "error",
"no-multiple-empty-lines": "error",
"no-multi-spaces": "error",
"no-process-exit": "error",
"space-in-parens": "error",
"no-unused-vars": ["error", {"caughtErrors": "all", "args": "none"}],
"key-spacing": "error",
"space-infix-ops": ["error", {"int32Hint": false}],
"no-loop-func": "error",
"space-before-function-paren": ["error", "never"],
"space-before-blocks": "error",
"object-curly-spacing": "error",
"keyword-spacing": ["error", {"after": true}],
}
};