-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
43 lines (43 loc) · 997 Bytes
/
.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
{
"env": {
"browser": true,
"commonjs": true,
"shared-node-browser": true,
"es6": true,
"node": true,
"mocha": true,
"mongo": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 7,
"impliedStrict": true
},
"globals": {
"angular": true
},
"rules": {
"camelcase": "error",
"new-cap": "error",
"eqeqeq": "off",
"no-multi-str": "off",
"require-yield": "off",
"yield-star-spacing": ["error", { "before": false, "after": true }],
"no-loop-func": "error",
"no-console": "off",
"max-len": ["error", 80, 4, { "ignoreUrls": true }],
"no-undef": "error",
"no-unexpected-multiline": "error",
"semi": ["error", "always"],
"no-spaced-func": "error",
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"quotes": [
"error",
"single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}
]
}
}