-
Notifications
You must be signed in to change notification settings - Fork 53
/
.eslintrc.json
50 lines (50 loc) · 1.65 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
{
"extends": "eslint:recommended",
"rules": {
"indent": ["error", 4, {"SwitchCase": 1}],
"quotes": ["error", "single"],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"no-unused-vars": ["warn", {"vars": "all", "args": "none"}],
"no-console": "off",
"curly": "warn",
"radix": "error",
"wrap-iife": ["error", "outside"],
"no-undefined": "error",
"no-use-before-define": "error",
"array-bracket-spacing": ["warn", "never"],
"block-spacing": ["warn", "always"],
"comma-spacing": ["warn", { "before": false, "after": true }],
"comma-style": ["warn", "last"],
"computed-property-spacing": ["warn", "never"],
"consistent-this": ["warn", "self"],
"eol-last": "warn",
"max-depth": ["error", 5],
"max-nested-callbacks": ["error", 5],
"max-params": ["error", 5],
"no-trailing-spaces": ["warn"],
"object-curly-spacing": ["warn", "always"],
"keyword-spacing": ["warn", { "before": true, "after": true, "overrides": {} }],
"space-before-blocks": "warn",
"space-before-function-paren": "warn",
"space-in-parens": ["warn", "never"],
"space-infix-ops": "warn",
"space-unary-ops": ["warn", { "words": true, "nonwords": false }]
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"es6": true,
"commonjs": true,
"node": true,
"mocha": true
},
"globals": {
"Sequelize": true,
"Image": true,
"User": true,
"Group": true
}
}