-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
60 lines (53 loc) · 1.69 KB
/
index.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
55
56
57
58
59
60
module.exports = {
"env": {
"es6": true,
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"plugins": [
"no-es6-getter-setter"
],
"rules": {
// possible errors
"no-template-curly-in-string": "error",
"no-unsafe-negation": "error",
// best practices
"block-scoped-var": "error",
"complexity": ["error", 25],
"curly": "error",
"eqeqeq": ["error", "smart"],
"guard-for-in": "error",
"no-extend-native": "error",
"no-new": "error",
"no-sequences": "error",
// strict mode
"strict": "error",
// variables
"no-unused-vars": ["warn", {"vars": "all", "args": "none"}],
"no-use-before-define": ["error", "nofunc"],
// Node.js and CommonJS
// Stylistic Issues
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs"],
"camelcase": "error",
"computed-property-spacing": ["error", "never"],
"linebreak-style": ["error", "unix"],
"max-depth": ["warn", 6],
"max-len": ["warn", 120],
"max-statements": ["warn", 63],
"no-bitwise": "error",
"no-eq-null": "error",
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "never"],
"quotes": ["error", "double", "avoid-escape"],
"semi": ["error", "always"],
"space-unary-ops": "error",
// ECMAScript 6
"arrow-body-style": ["error", "as-needed"],
"no-var": "warn",
"prefer-const": "warn",
// custom ECMAScript 6
"no-es6-getter-setter/no-es6-getter-setter": "error"
}
};