forked from js-cookie/js-cookie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
34 lines (34 loc) · 991 Bytes
/
.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
{
"env": {
"commonjs": true
},
"globals": {
"Cookies": true
},
"rules": {
"curly": "error",
"eqeqeq": "error",
"no-unused-expressions": "error",
"new-cap": "error",
"no-caller": "error",
"no-irregular-whitespace": "error",
"no-undef": "error",
"no-unused-vars": "error",
"comma-style": ["error", "last"],
"eol-last": "error",
"semi": ["error", "always"],
"keyword-spacing": ["error", {}],
"spaced-comment": ["error", "always", {"exceptions": ["!"]}],
"space-before-blocks": ["error", "always"],
"key-spacing": ["error", {"afterColon": true}],
"indent-legacy": ["error", "tab", {"SwitchCase": 1}],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"array-bracket-spacing": ["error", "never", {}],
"space-in-parens": ["error", "never"],
"no-trailing-spaces": "error",
"no-array-constructor": "error",
"no-new-object": "error",
"no-new-wrappers": "error"
}
}