1
+ /*eslint-env node, mocha */
2
+ {
3
+ "env": {
4
+ "node": true,
5
+ "mocha": true,
6
+ "browser": true
7
+ },
8
+ "ecmaFeatures": {
9
+ "arrowFunctions": false,
10
+ "blockBindings": false,
11
+ "classes": false,
12
+ "defaultParams": false,
13
+ "destructuring": false,
14
+ "forOf": false,
15
+ "generators": false,
16
+ "modules": false,
17
+ "objectLiteralComputedProperties": false,
18
+ "objectLiteralDuplicateProperties": false,
19
+ "objectLiteralShorthandMethods": false,
20
+ "objectLiteralShorthandProperties": false,
21
+ "spread": false,
22
+ "superInFunctions": false,
23
+ "templateStrings": false,
24
+ "jsx": true
25
+ },
26
+ "rules": {
27
+ /**
28
+ * Strict mode
29
+ */
30
+ "strict": [2, "never"],
31
+
32
+ /**
33
+ * ES6
34
+ */
35
+ "no-var": 0, // http://eslint.org/docs/rules/no-var
36
+
37
+ /**
38
+ * Variables
39
+ */
40
+ "no-shadow": 0, // http://eslint.org/docs/rules/no-shadow
41
+ "no-shadow-restricted-names": 2, // http://eslint.org/docs/rules/no-shadow-restricted-names
42
+ "no-unused-vars": [2, { // http://eslint.org/docs/rules/no-unused-vars
43
+ "vars": "local",
44
+ "args": "after-used"
45
+ }],
46
+ "no-use-before-define": 2, // http://eslint.org/docs/rules/no-use-before-define
47
+
48
+ /**
49
+ * Possible errors
50
+ */
51
+ "comma-dangle": [2, "never"], // http://eslint.org/docs/rules/comma-dangle
52
+ "no-cond-assign": [2, "always"], // http://eslint.org/docs/rules/no-cond-assign
53
+ "no-console": 0, // http://eslint.org/docs/rules/no-console
54
+ "no-debugger": 1, // http://eslint.org/docs/rules/no-debugger
55
+ "no-alert": 1, // http://eslint.org/docs/rules/no-alert
56
+ "no-constant-condition": 1, // http://eslint.org/docs/rules/no-constant-condition
57
+ "no-dupe-keys": 2, // http://eslint.org/docs/rules/no-dupe-keys
58
+ "no-duplicate-case": 2, // http://eslint.org/docs/rules/no-duplicate-case
59
+ "no-empty": 2, // http://eslint.org/docs/rules/no-empty
60
+ "no-ex-assign": 2, // http://eslint.org/docs/rules/no-ex-assign
61
+ "no-extra-boolean-cast": 0, // http://eslint.org/docs/rules/no-extra-boolean-cast
62
+ "no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi
63
+ "no-func-assign": 2, // http://eslint.org/docs/rules/no-func-assign
64
+ "no-inner-declarations": 2, // http://eslint.org/docs/rules/no-inner-declarations
65
+ "no-invalid-regexp": 2, // http://eslint.org/docs/rules/no-invalid-regexp
66
+ "no-irregular-whitespace": 2, // http://eslint.org/docs/rules/no-irregular-whitespace
67
+ "no-obj-calls": 2, // http://eslint.org/docs/rules/no-obj-calls
68
+ "no-reserved-keys": 2, // http://eslint.org/docs/rules/no-reserved-keys
69
+ "no-sparse-arrays": 2, // http://eslint.org/docs/rules/no-sparse-arrays
70
+ "no-unreachable": 2, // http://eslint.org/docs/rules/no-unreachable
71
+ "use-isnan": 2, // http://eslint.org/docs/rules/use-isnan
72
+ "block-scoped-var": 2, // http://eslint.org/docs/rules/block-scoped-var
73
+ "no-path-concat": 0, // http://eslint.org/docs/rules/no-path-concat
74
+
75
+ /**
76
+ * Best practices
77
+ */
78
+ "consistent-return": 2, // http://eslint.org/docs/rules/consistent-return
79
+ "curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly
80
+ "default-case": 2, // http://eslint.org/docs/rules/default-case
81
+ "dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation
82
+ "allowKeywords": true
83
+ }],
84
+ "eqeqeq": 2, // http://eslint.org/docs/rules/eqeqeq
85
+ "guard-for-in": 2, // http://eslint.org/docs/rules/guard-for-in
86
+ "no-caller": 2, // http://eslint.org/docs/rules/no-caller
87
+ "no-else-return": 2, // http://eslint.org/docs/rules/no-else-return
88
+ "no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null
89
+ "no-eval": 2, // http://eslint.org/docs/rules/no-eval
90
+ "no-extend-native": 2, // http://eslint.org/docs/rules/no-extend-native
91
+ "no-extra-bind": 2, // http://eslint.org/docs/rules/no-extra-bind
92
+ "no-fallthrough": 2, // http://eslint.org/docs/rules/no-fallthrough
93
+ "no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal
94
+ "no-implied-eval": 2, // http://eslint.org/docs/rules/no-implied-eval
95
+ "no-lone-blocks": 2, // http://eslint.org/docs/rules/no-lone-blocks
96
+ "no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func
97
+ "no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str
98
+ "no-native-reassign": 2, // http://eslint.org/docs/rules/no-native-reassign
99
+ "no-new": 2, // http://eslint.org/docs/rules/no-new
100
+ "no-new-func": 2, // http://eslint.org/docs/rules/no-new-func
101
+ "no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers
102
+ "no-octal": 2, // http://eslint.org/docs/rules/no-octal
103
+ "no-octal-escape": 2, // http://eslint.org/docs/rules/no-octal-escape
104
+ "no-param-reassign": 2, // http://eslint.org/docs/rules/no-param-reassign
105
+ "no-proto": 2, // http://eslint.org/docs/rules/no-proto
106
+ "no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare
107
+ "no-return-assign": 2, // http://eslint.org/docs/rules/no-return-assign
108
+ "no-script-url": 2, // http://eslint.org/docs/rules/no-script-url
109
+ "no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare
110
+ "no-sequences": 2, // http://eslint.org/docs/rules/no-sequences
111
+ "no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal
112
+ "no-with": 2, // http://eslint.org/docs/rules/no-with
113
+ "radix": 2, // http://eslint.org/docs/rules/radix
114
+ "vars-on-top": 0, // http://eslint.org/docs/rules/vars-on-top
115
+ "wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife
116
+ "yoda": 2, // http://eslint.org/docs/rules/yoda
117
+
118
+ /**
119
+ * Style
120
+ */
121
+ "max-len": [2, 79, 2], // http://eslint.org/docs/rules/max-len
122
+ "indent": [2, 2], // http://eslint.org/docs/rules/
123
+ "brace-style": [2, // http://eslint.org/docs/rules/brace-style
124
+ "1tbs", {
125
+ "allowSingleLine": true
126
+ }],
127
+ "quotes": [
128
+ 2, "single", "avoid-escape" // http://eslint.org/docs/rules/quotes
129
+ ],
130
+ "camelcase": [2, { // http://eslint.org/docs/rules/camelcase
131
+ "properties": "never"
132
+ }],
133
+ "comma-spacing": [2, { // http://eslint.org/docs/rules/comma-spacing
134
+ "before": false,
135
+ "after": true
136
+ }],
137
+ "comma-style": [2, "last"], // http://eslint.org/docs/rules/comma-style
138
+ "eol-last": 2, // http://eslint.org/docs/rules/eol-last
139
+ "func-names": 0, // http://eslint.org/docs/rules/func-names
140
+ "key-spacing": [2, { // http://eslint.org/docs/rules/key-spacing
141
+ "beforeColon": false,
142
+ "afterColon": true
143
+ }],
144
+ "new-cap": [2, { // http://eslint.org/docs/rules/new-cap
145
+ "newIsCap": true
146
+ }],
147
+ "no-multiple-empty-lines": [2, { // http://eslint.org/docs/rules/no-multiple-empty-lines
148
+ "max": 2
149
+ }],
150
+ "no-nested-ternary": 2, // http://eslint.org/docs/rules/no-nested-ternary
151
+ "no-new-object": 2, // http://eslint.org/docs/rules/no-new-object
152
+ "no-spaced-func": 2, // http://eslint.org/docs/rules/no-spaced-func
153
+ "no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces
154
+ "no-wrap-func": 2, // http://eslint.org/docs/rules/no-wrap-func
155
+ "no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle
156
+ "one-var": [2, "never"], // http://eslint.org/docs/rules/one-var
157
+ "padded-blocks": [2, "never"], // http://eslint.org/docs/rules/padded-blocks
158
+ "semi": [2, "always"], // http://eslint.org/docs/rules/semi
159
+ "semi-spacing": [2, { // http://eslint.org/docs/rules/semi-spacing
160
+ "before": false,
161
+ "after": true
162
+ }],
163
+ "space-after-keywords": 2, // http://eslint.org/docs/rules/space-after-keywords
164
+ "space-before-blocks": 2, // http://eslint.org/docs/rules/space-before-blocks
165
+ "space-before-function-paren": [2, "never"], // http://eslint.org/docs/rules/space-before-function-paren
166
+ "space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops
167
+ "space-return-throw-case": 2, // http://eslint.org/docs/rules/space-return-throw-case
168
+ "spaced-line-comment": 2 // http://eslint.org/docs/rules/spaced-line-comment
169
+ }
170
+ }
0 commit comments