-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
36 lines (36 loc) · 963 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
// See: http://eslint.org/
// See: https://www.npmjs.com/package/eslint-plugin-angular
{
"extends": [
"eslint:recommended"
],
"env": {
"node": true,
"browser": true
},
// severity for a rule should be one of the following: 0 = off, 1 = warning, 2 = error
"rules": {
// coding style
"wrap-iife": [2, "inside"],
"eqeqeq": 2,
"no-use-before-define": [2, "nofunc"],
"no-unused-vars": [2, {
"vars": "local",
"args": "none"
}],
"no-multi-str": 2,
"no-irregular-whitespace": 2,
"semi": [2, "always"],
"indent": ["error", 4],
// os/git options
// we want to run on all OSes
"linebreak-style": 0,
"eol-last": 2,
"no-console": ["warn", {
"allow": ["warn", "error", "log"]
}],
"no-multiple-empty-lines": ["warn", {
"max": 1
}]
}
}