1
+ {
2
+ "rules": {
3
+ "no-console": 2,
4
+ "no-alert": 2,
5
+ "no-debugger": 2,
6
+ "comma-dangle": [2, "never"],
7
+ "quotes": [2, "single", "avoid-escape"],
8
+ "no-unused-vars": [2, {"args": "after-used", "argsIgnorePattern": "^_"}],
9
+ "no-empty": 2,
10
+ "no-cond-assign": [2, "always"],
11
+ "no-constant-condition": 2,
12
+ "no-dupe-keys": 2,
13
+ "no-extra-parens": 2,
14
+ "no-extra-semi": 2,
15
+ "no-inner-declarations": 2,
16
+ "no-irregular-whitespace": 2,
17
+ "no-negated-in-lhs": 2,
18
+ "no-sparse-arrays": 2,
19
+ "no-unexpected-multiline": 2,
20
+ "no-unreachable": 2,
21
+ "valid-typeof": 2,
22
+ "block-scoped-var": 2,
23
+ "consistent-return": 2,
24
+ "curly": 2,
25
+ "dot-location": [2, "property"],
26
+ "eqeqeq": [2, "smart"],
27
+ "no-else-return": 2,
28
+ "no-implicit-coercion": [2, {"boolean": true, "number": true, "string": true}],
29
+ "no-lone-blocks": 2,
30
+ "no-magic-numbers": [2, {"ignore": [8080]}],
31
+ "no-loop-func": 2,
32
+ "no-multi-spaces": 2,
33
+ "no-multi-str": 2,
34
+ "no-new-wrappers": 2,
35
+ "no-new": 2,
36
+ "no-throw-literal": 2,
37
+ "no-redeclare": 2,
38
+ "no-useless-call": 2,
39
+ "no-useless-concat": 2,
40
+ "vars-on-top": 2,
41
+ "yoda": 2,
42
+ "no-catch-shadow": 2,
43
+ "no-shadow-restricted-names": 2,
44
+ "no-shadow": 2,
45
+ "no-use-before-define": 2,
46
+ "array-bracket-spacing": [2, "never"],
47
+ "block-spacing": 2,
48
+ "brace-style": [2, "1tbs", { "allowSingleLine": true }],
49
+ "camelcase": [2, {"properties": "always"}],
50
+ "comma-spacing": [2, {"before": false, "after": true}],
51
+ "comma-style": [2, "last"],
52
+ "computed-property-spacing": [2, "never"],
53
+ "consistent-this": [2, "self"],
54
+ "eol-last": 2,
55
+ "indent": [2, 2, {"SwitchCase": 1}],
56
+ "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
57
+ "new-cap": 2,
58
+ "new-parens": 2,
59
+ "newline-after-var": [2, "always"],
60
+ "no-lonely-if": 2,
61
+ "no-multiple-empty-lines": [2, {"max": 1, "maxEOF": 1}],
62
+ "no-negated-condition": 2,
63
+ "no-nested-ternary": 2,
64
+ "no-spaced-func": 2,
65
+ "no-trailing-spaces": 2,
66
+ "no-unneeded-ternary": 2,
67
+ "object-curly-spacing": [2, "never"],
68
+ "operator-linebreak": [2, "before"],
69
+ "padded-blocks": [2, "never"],
70
+ "quote-props": [2, "consistent-as-needed"],
71
+ "semi-spacing": 2,
72
+ "space-after-keywords": 2,
73
+ "space-before-blocks": 2,
74
+ "space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
75
+ "space-before-keywords": [2, "always"],
76
+ "space-in-parens": [2, "never"],
77
+ "space-infix-ops": 2,
78
+ "space-return-throw-case": 2,
79
+ "space-unary-ops": 2,
80
+ "linebreak-style": [2, "unix"],
81
+ "semi": [2, "always"],
82
+ "backbone/initialize-on-top": [2, {
83
+ "View": ["width", "tagName", "className", "attributes", "template", "alwaysSuppressHighlightErrors", "subViews", "events", "constructor"],
84
+ "Model": ["defaults"],
85
+ "Collection": ["model"]
86
+ }],
87
+ "backbone/events-on-top": [2, ["tagName", "className", "attributes", "template", "alwaysSuppressHighlightErrors", "subViews"]]
88
+ },
89
+ "env": {
90
+ "browser": true,
91
+ "jquery": true,
92
+ "jasmine": true
93
+ },
94
+ "plugins": [
95
+ "backbone"
96
+ ],
97
+ "globals": {
98
+ "Backbone": true,
99
+ "_": true,
100
+ "requirejs": true,
101
+ "require": true,
102
+ "define": true,
103
+ "ejs": true,
104
+ "module": true,
105
+ "process": true
106
+ },
107
+ "settings": {
108
+ "backbone": {
109
+ "Collection": [
110
+ ],
111
+ "Model": [
112
+ ],
113
+ "View": [
114
+ ]
115
+ }
116
+ },
117
+ "extends": "eslint:recommended"
118
+ }
0 commit comments