-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
60 lines (58 loc) · 1.5 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"env": {
"browser": true
},
"globals": {
"_": false,
"Backbone": false,
"jQuery": false,
"JSON": false,
"wp": false
},
"rules": {
"no-cond-assign": ["error", "except-parens"],
"no-irregular-whitespace": "error",
"curly": ["error", "all"],
"dot-notation": ["error", {
"allowKeywords": true,
"allowPattern": "^[a-z]+(_[a-z]+)+$"
}],
"no-multi-str": "error",
"no-with": "error",
"vars-on-top": "error",
"wrap-iife": "error",
"yoda": ["error", "always"],
"array-bracket-spacing": ["error", "always"],
"brace-style": "error",
"camelcase": ["error", {
"properties": "always"
}],
"comma-dangle": ["error", "never"],
"comma-spacing": "error",
"comma-style": ["error", "last"],
"eol-last": "error",
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"lines-around-comment": ["error", {
"beforeLineComment": true
}],
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": "error",
"no-trailing-spaces": "error",
"one-var-declaration-per-line": ["error", "initializations"],
"operator-linebreak": ["error", "after"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "always", {"exceptions": ["{}", "[]"]}],
"space-infix-ops": "error",
"space-unary-ops": ["error", {
"overrides": {"!": true}
}]
}
}