-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.35 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
module.exports = {
root: true,
formatter: "unix",
plugins: [
"jasmine"
],
extends: [
"eslint:recommended",
"plugin:jasmine/recommended"
],
env: {
jasmine: true,
node: true,
es6: true
},
rules: {
"array-callback-return": 2,
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"eol-last": ["error", "unix"],
"eqeqeq": "error",
"func-style": ["error", "declaration"],
"jasmine/no-suite-dupes": "error",
"jasmine/no-spec-dupes": "error",
"jasmine/valid-expect": "error",
"jasmine/no-unsafe-spy": 0,
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"no-alert": "error",
"no-eval": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-multiple-empty-lines": ["error", {max: 1}],
"no-multi-spaces": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-trailing-spaces": "error",
"no-unused-vars": ["error", {args: "none"}],
"no-useless-call": "error",
"no-use-before-define": ["error", "nofunc"],
"one-var": ["error", "never"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"semi-spacing": ["error", {"before": false, "after": true}],
"space-before-function-paren": ["error", "never"],
"space-infix-ops": "error",
"strict": ["error", "never"],
"wrap-iife": ["error", "inside"],
"yoda": "error"
}
};