-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc
executable file
·69 lines (69 loc) · 1.67 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
{
"root": true,
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6
},
"globals": {
// "Drupal": true,
// "drupalSettings": true,
// "domready": true,
// "jQuery": true,
// "matchMedia": true,
// "Backbone": true,
// "Modernizr": true,
// "CKEDITOR": true,
"ga": false,
"optimizedResize": true,
"optimizedScroll": true
},
"rules": {
"block-scoped-var": 2,
"brace-style": [2, "stroustrup", {"allowSingleLine": true}],
"comma-style": [2, "last"],
"comma-dangle": [2, "always"],
"eqeqeq": [2, "smart"],
"guard-for-in": 2,
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"no-implied-eval": 2,
"no-mixed-spaces-and-tabs": 2,
"no-nested-ternary": 2,
"quote-props": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-undefined": 2,
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"semi": [2, "always"],
"keyword-spacing": [2],
"space-before-blocks": [2, "always"],
"object-curly-spacing": [2, "never"],
"array-bracket-spacing": [2, "never"],
"space-in-parens": [2, "never"],
"spaced-comment": ["error", "always", {
"line": {
"markers": ["/"],
"exceptions": ["-", "+"]
},
"block": {
"markers": ["!"],
"exceptions": ["*"]
}
}],
"strict": 2,
"max-nested-callbacks": [1, 3],
"camelcase": 0,
"consistent-return": 0,
"dot-notation": 0,
"new-cap": 0,
"no-alert": 0,
"no-new": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"quotes": [2, "single"]
}
}