-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.46 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
module.exports = {
"env": {
"browser": true,
"node": true,
"es6": true,
"amd": true,
"phantomjs": true,
"qunit": true,
"jquery": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"globals": {},
"rules": {
"no-console": 0,
"block-scoped-var": 2,
"eqeqeq": 2,
"no-alert": 2,
"no-empty-function": [2, { "allow": ["arrowFunctions", "constructors"] }],
"no-eval": 2,
"no-multi-spaces": [2, {
"ignoreEOLComments": true,
"exceptions": { "VariableDeclarator": true, "Property": true }
}],
"no-multi-str": 2,
"no-new": 2,
"prefer-promise-reject-errors": [2, { "allowEmptyReject": true }],
"no-unused-vars": [1, { "args": "none" }],
"no-use-before-define": [2, { "functions": false, "classes": false }],
"global-require": 1,
"no-path-concat": 2,
"comma-dangle": [2, "never"],
"comma-style": [2, "last"],
"indent": [2, 4, { "SwitchCase": 1 }],
"keyword-spacing": [1, { "before": true, "after": true }],
"linebreak-style": [process.env.NODE_ENV === 'testing' ? 2 : 0, "unix"],
"no-trailing-spaces": [2, { "ignoreComments": false }],
"no-whitespace-before-property": 2,
"quotes": [2, "single"],
"semi": [2, "always"],
"semi-style": [2, "last"]
}
};