forked from cla-assistant/cla-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
69 lines (69 loc) · 1.75 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"$": false,
"angular": false,
"chunk": true,
"config": true,
"filters": true,
"ga": false,
"io": false,
"models": true,
"module": true,
"moment": false,
"server": true,
"Papa": true,
"Clipboard": true
},
"rules": {
"dot-notation": "error",
"func-call-spacing": "error",
"func-name-matching": "error",
"handle-callback-err": "warn",
"newline-before-return": "warn",
"no-confusing-arrow": "error",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-multiple-empty-lines": "error",
"no-native-reassign": "error",
"no-path-concat": "warn",
"no-trailing-spaces": "warn",
"no-undef": "warn",
"no-unused-expressions": "warn",
"no-unused-vars": "warn",
"no-use-before-define": [
"error",
{
"functions": false,
"variables": false
}
],
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"quotes": [
1,
"single"
],
"valid-typeof": "warn",
"semi": "error",
"semi-spacing": "warn",
"space-infix-ops": "warn",
"yoda": [
"error",
"never"
]
}
};