forked from fyyyyy/Toggl-to-Jira-Chrome-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
69 lines (64 loc) · 1.66 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"node": true,
"jquery": true
},
"globals": {
"chrome": true,
"document": true
},
rules: {
"comma-dangle": 1,
"no-undef": 1,
"global-strict": 0,
"no-extra-semi": 1,
"no-underscore-dangle": 0,
"no-cond-assign": 1,
"no-debugger": 1,
"no-dupe-args": 1,
"no-duplicate-case": 1,
"no-dupe-keys": 1,
"no-console": 1,
"no-empty": 1,
"no-unused-vars": 1,
"no-unreachable": 1,
"no-unexpected-multiline": 1,
"no-inner-declarations": 1,
"no-irregular-whitespace": 1,
// best practices
"no-alert": 1,
"consistent-return": 1,
"curly": 1,
"default-case": 1,
"eqeqeq": 1,
"no-else-return": 0,
"no-invalid-this": 0,
"no-loop-func": 1,
"no-new-wrappers": 1,
"no-native-reassign": 1,
"no-redeclare": 1,
"no-return-assign": 1,
"no-self-compare": 1,
// style
"comma-style": [1, "last"],
"camelcase": 1,
"consistent-this": [2, "self"],
"indent": 1,
"max-len": [1, 120, 4],
"new-cap": 1,
"no-inline-comments": 1,
"no-plusplus": 1,
"no-spaced-func": 1,
"no-trailing-spaces": [1, {
"skipBlankLines": true
}],
"no-unneeded-ternary": 1,
"object-curly-spacing": [1, "always"],
"quotes": [1, "single"],
"space-before-function-paren": [1, "never"],
"spaced-comment": [1, "always", {
"exceptions": ["-", "+"]
}]
}
}