|
1 | 1 | { |
| 2 | + "parser": "babel-eslint", |
| 3 | + |
| 4 | + "ecmaFeatures": { |
| 5 | + "jsx": true |
| 6 | + }, |
| 7 | + |
2 | 8 | "env": { |
| 9 | + "es6": true, |
3 | 10 | "jasmine": true, |
4 | 11 | }, |
5 | 12 |
|
| 13 | + "plugins": [ |
| 14 | + "react" |
| 15 | + ], |
| 16 | + |
6 | 17 | // Map from global var to bool specifying if it can be redefined |
7 | 18 | "globals": { |
8 | 19 | "__DEV__": true, |
|
36 | 47 | }, |
37 | 48 |
|
38 | 49 | "rules": { |
| 50 | + "comma-dangle": 0, // disallow trailing commas in object literals |
39 | 51 | "no-cond-assign": 1, // disallow assignment in conditional expressions |
40 | 52 | "no-console": 0, // disallow use of console (off by default in the node environment) |
41 | 53 | "no-constant-condition": 0, // disallow use of constant expressions in conditions |
42 | | - "no-comma-dangle": 0, // disallow trailing commas in object literals |
43 | 54 | "no-control-regex": 1, // disallow control characters in regular expressions |
44 | 55 | "no-debugger": 1, // disallow use of debugger |
45 | 56 | "no-dupe-keys": 1, // disallow duplicate keys when creating object literals |
|
177 | 188 | "space-in-parens": 0, // require or disallow spaces inside parentheses (off by default) |
178 | 189 | "space-infix-ops": 1, // require spaces around operators |
179 | 190 | "space-return-throw-case": 1, // require a space after return, throw, and case |
180 | | - "space-unary-word-ops": 1, // require a space around word operators such as typeof (off by default) |
| 191 | + "space-unary-ops": [1, { "words": true, "nonwords": false }], // require or disallow spaces before/after unary operators (words on by default, nonwords off by default) |
181 | 192 | "max-nested-callbacks": 0, // specify the maximum depth callbacks can be nested (off by default) |
182 | 193 | "one-var": 0, // allow just one var statement per function (off by default) |
183 | 194 | "wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default) |
|
190 | 201 | "max-params": 0, // limits the number of parameters that can be used in the function declaration. (off by default) |
191 | 202 | "max-statements": 0, // specify the maximum number of statement allowed in a function (off by default) |
192 | 203 | "no-bitwise": 1, // disallow use of bitwise operators (off by default) |
193 | | - "no-plusplus": 0 // disallow use of unary operators, ++ and -- (off by default) |
| 204 | + "no-plusplus": 0, // disallow use of unary operators, ++ and -- (off by default) |
| 205 | + |
| 206 | + "react/display-name": 0, |
| 207 | + "react/jsx-boolean-value": 0, |
| 208 | + "react/jsx-quotes": [1, "double", "avoid-escape"], |
| 209 | + "react/jsx-no-undef": 1, |
| 210 | + "react/jsx-sort-props": 0, |
| 211 | + "react/jsx-uses-react": 0, |
| 212 | + "react/jsx-uses-vars": 1, |
| 213 | + "react/no-did-mount-set-state": [1, "allow-in-func"], |
| 214 | + "react/no-did-update-set-state": [1, "allow-in-func"], |
| 215 | + "react/no-multi-comp": 0, |
| 216 | + "react/no-unknown-property": 0, |
| 217 | + "react/prop-types": 0, |
| 218 | + "react/react-in-jsx-scope": 0, |
| 219 | + "react/self-closing-comp": 1, |
| 220 | + "react/wrap-multilines": 0 |
194 | 221 | } |
195 | 222 | } |
0 commit comments