UNPKG

5.07 kBPlain TextView Raw
1{
2 "ecmaFeatures": {
3 "globalReturn": true,
4 "jsx": true,
5 "modules": true
6 },
7
8 "env": {
9 "browser": true,
10 "es6": true,
11 "node": true
12 },
13
14 "globals": {
15 "document": false,
16 "escape": false,
17 "navigator": false,
18 "unescape": false,
19 "window": false,
20 "describe": true,
21 "before": true,
22 "it": true,
23 "expect": true,
24 "sinon": true,
25 "beforeEach": true,
26 "afterEach": true,
27 "shallow": true,
28 "mount": true,
29 "render": true,
30 "Enzyme": true
31 },
32
33 "parser": "babel-eslint",
34
35 "plugins": [
36 "react"
37 ],
38
39 "rules": {
40 "arrow-parens": [2, "as-needed"],
41 "block-scoped-var": 2,
42 "brace-style": [2, "1tbs", { "allowSingleLine": true }],
43 "camelcase": [2, { "properties": "never" }],
44 "comma-dangle": [2, "never"],
45 "comma-spacing": [2, { "before": false, "after": true }],
46 "comma-style": [2, "last"],
47 "complexity": 0,
48 "consistent-return": 2,
49 "consistent-this": 0,
50 "curly": [2, "multi-line"],
51 "default-case": 0,
52 "dot-location": [2, "property"],
53 "dot-notation": 0,
54 "eol-last": 2,
55 "eqeqeq": [2, "allow-null"],
56 "func-names": 0,
57 "func-style": 0,
58 "generator-star-spacing": [2, "both"],
59 "guard-for-in": 0,
60 "handle-callback-err": [2, "^(err|error|anySpecificError)$" ],
61 "indent": [2, 2, { "SwitchCase": 1 }],
62 "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
63 "keyword-spacing": [2, {"before": true, "after": true}],
64 "linebreak-style": 0,
65 "max-depth": 0,
66 "max-len": [2, 120, 4],
67 "max-nested-callbacks": 0,
68 "max-params": 0,
69 "max-statements": 0,
70 "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
71 "newline-after-var": [2, "always"],
72 "new-parens": 2,
73 "no-alert": 0,
74 "no-array-constructor": 2,
75 "no-bitwise": 0,
76 "no-caller": 2,
77 "no-catch-shadow": 0,
78 "no-cond-assign": 2,
79 "no-console": 0,
80 "no-constant-condition": 0,
81 "no-continue": 0,
82 "no-control-regex": 2,
83 "no-debugger": 2,
84 "no-delete-var": 2,
85 "no-div-regex": 0,
86 "no-dupe-args": 2,
87 "no-dupe-keys": 2,
88 "no-duplicate-case": 2,
89 "no-else-return": 2,
90 "no-empty": 0,
91 "no-empty-character-class": 2,
92 "no-eq-null": 0,
93 "no-eval": 2,
94 "no-ex-assign": 2,
95 "no-extend-native": 2,
96 "no-extra-bind": 2,
97 "no-extra-boolean-cast": 2,
98 "no-extra-parens": 0,
99 "no-extra-semi": 0,
100 "no-extra-strict": 0,
101 "no-fallthrough": 2,
102 "no-floating-decimal": 2,
103 "no-func-assign": 2,
104 "no-implied-eval": 2,
105 "no-inline-comments": 0,
106 "no-inner-declarations": [2, "functions"],
107 "no-invalid-regexp": 2,
108 "no-irregular-whitespace": 2,
109 "no-iterator": 2,
110 "no-label-var": 2,
111 "no-labels": 2,
112 "no-lone-blocks": 0,
113 "no-lonely-if": 0,
114 "no-loop-func": 0,
115 "no-mixed-requires": 0,
116 "no-mixed-spaces-and-tabs": [2, false],
117 "no-multi-spaces": 2,
118 "no-multi-str": 2,
119 "no-multiple-empty-lines": [2, { "max": 1 }],
120 "no-native-reassign": 2,
121 "no-negated-in-lhs": 2,
122 "no-nested-ternary": 0,
123 "no-new": 2,
124 "no-new-func": 2,
125 "no-new-object": 2,
126 "no-new-require": 2,
127 "no-new-wrappers": 2,
128 "no-obj-calls": 2,
129 "no-octal": 2,
130 "no-octal-escape": 2,
131 "no-path-concat": 0,
132 "no-plusplus": 0,
133 "no-process-env": 0,
134 "no-process-exit": 0,
135 "no-proto": 2,
136 "no-redeclare": 2,
137 "no-regex-spaces": 2,
138 "no-reserved-keys": 0,
139 "no-restricted-modules": 0,
140 "no-return-assign": 2,
141 "no-script-url": 0,
142 "no-self-compare": 2,
143 "no-sequences": 2,
144 "no-shadow": 0,
145 "no-shadow-restricted-names": 2,
146 "no-spaced-func": 2,
147 "no-sparse-arrays": 2,
148 "no-sync": 0,
149 "no-ternary": 0,
150 "no-throw-literal": 2,
151 "no-trailing-spaces": 2,
152 "no-undef": 2,
153 "no-undef-init": 2,
154 "no-undefined": 0,
155 "no-underscore-dangle": 0,
156 "no-unneeded-ternary": 2,
157 "no-unreachable": 2,
158 "no-unused-expressions": 0,
159 "no-unused-vars": [2, { "vars": "all", "args": "none" }],
160 "no-use-before-define": 2,
161 "no-var": 0,
162 "no-void": 0,
163 "no-warning-comments": 0,
164 "no-with": 2,
165 "one-var": 0,
166 "operator-assignment": 0,
167 "operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
168 "padded-blocks": 0,
169 "quote-props": 0,
170 "quotes": [2, "single", "avoid-escape"],
171 "radix": 2,
172 "react/jsx-uses-vars": 2,
173 "react/jsx-uses-react": 2,
174 "react/react-in-jsx-scope": 2,
175 "semi": [2, "never"],
176 "semi-spacing": 0,
177 "sort-vars": 0,
178 "space-before-blocks": [2, "always"],
179 "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
180 "space-in-brackets": 0,
181 "space-in-parens": [2, "never"],
182 "space-infix-ops": 2,
183 "space-unary-ops": [2, { "words": true, "nonwords": false }],
184 "spaced-comment": [2, "always"],
185 "strict": 0,
186 "use-isnan": 2,
187 "valid-jsdoc": 0,
188 "valid-typeof": 2,
189 "vars-on-top": 2,
190 "wrap-iife": [2, "any"],
191 "wrap-regex": 0,
192 "yoda": [2, "never"]
193 }
194}