|
1 | 1 | { |
2 | | - "extends": "eslint-config-airbnb", |
| 2 | + "extends": "airbnb", |
3 | 3 | "env": { |
4 | 4 | "browser": true, |
5 | 5 | "node": true, |
6 | | - "mocha": true, |
| 6 | + "jest": true, |
7 | 7 | "es6": true |
8 | 8 | }, |
9 | 9 | "rules": { |
10 | | - "react/no-multi-comp": "warn", |
11 | | - "react/jsx-first-prop-new-line": ["warn", "multiline"], |
12 | | - "react/prefer-stateless-function": "off", |
13 | | - "react/jsx-closing-bracket-location": "off", |
| 10 | + "arrow-parens": ["error", "as-needed"], |
| 11 | + "comma-dangle": ["error", "only-multiline"], |
| 12 | + "consistent-return": "off", |
| 13 | + "global-require": "off", |
| 14 | + "indent": ["error", 2, {"SwitchCase": 1}], |
| 15 | + "max-len": ["warn", 120], |
| 16 | + "no-alert": "off", |
| 17 | + "no-confusing-arrow": "off", |
| 18 | + "no-console": "off", |
| 19 | + "no-param-reassign": "off", |
| 20 | + "no-underscore-dangle": "off", |
| 21 | + "prefer-promise-reject-errors": "warn", |
| 22 | + "prefer-template": "warn", |
| 23 | + "react/forbid-prop-types": "warn", |
| 24 | + "react/jsx-closing-tag-location": "off", |
14 | 25 | "react/jsx-filename-extension": "off", |
15 | | - "react/self-closing-comp": "off", |
16 | 26 | "react/jsx-no-target-blank": "warn", |
17 | | - "react/no-find-dom-node": "warn", |
18 | | - "react/forbid-prop-types": "off", |
| 27 | + "react/jsx-one-expression-per-line": "off", |
| 28 | + "react/no-multi-comp": ["error", {"ignoreStateless": true}], |
19 | 29 | "react/no-unescaped-entities": "off", |
| 30 | + "react/prefer-stateless-function": "warn", |
| 31 | + "jsx-a11y/label-has-for": ["error", {"allowChildren": true}], |
| 32 | + "jsx-a11y/anchor-is-valid": [ |
| 33 | + "error", |
| 34 | + { |
| 35 | + "components": ["Link"], |
| 36 | + "specialLink": ["to"], |
| 37 | + "aspects": ["noHref", "invalidHref", "preferButton"] |
| 38 | + } |
| 39 | + ], |
20 | 40 | "import/default": "off", |
21 | | - "import/extensions": ["off"], |
22 | | - "import/no-duplicates": "off", |
23 | | - "import/named": "off", |
24 | | - "import/namespace": "off", |
25 | | - "import/no-unresolved": "off", |
26 | | - "import/no-named-as-default": "error", |
27 | | - "import/imports-first": "off", |
28 | | - "import/prefer-default-export": "off", |
| 41 | + "import/extensions": "off", |
29 | 42 | "import/no-extraneous-dependencies": "off", |
30 | | - "import/newline-after-import": "off", |
31 | | - "comma-dangle": "off", // not sure why airbnb turned this on. gross! |
32 | | - "consistent-return": "off", |
33 | | - "no-param-reassign": "off", |
34 | | - "prefer-template": "warn", |
35 | | - "global-require": "off", |
36 | | - "no-case-declarations": "off", |
37 | | - "no-underscore-dangle": "off", |
38 | | - "arrow-parens": "off", |
39 | | - "class-methods-use-this": "off", |
40 | | - "no-bitwise": "off", |
41 | | - "no-plusplus": "off", |
42 | | - "no-console": "off", |
43 | | - "no-alert": "off", |
44 | | - "max-len": ["error", 120], |
45 | | - "indent": ["error", 2, {"SwitchCase": 1}] |
| 43 | + "import/no-named-as-default": "error", |
| 44 | + "import/no-unresolved": "off" |
46 | 45 | }, |
47 | 46 | "plugins": [ |
48 | 47 | "react", |
|
52 | 51 | "import/resolve": { |
53 | 52 | "moduleDirectory": [ |
54 | 53 | "node_modules", |
55 | | - "src" |
| 54 | + "src", |
| 55 | + "api" |
56 | 56 | ] |
57 | 57 | } |
58 | 58 | }, |
|
67 | 67 | "__DISABLE_SSR__": true, |
68 | 68 | "__DEVTOOLS__": true, |
69 | 69 | "__DLLS__": true, |
70 | | - "socket": true, |
71 | 70 | "webpackIsomorphicTools": true |
72 | 71 | } |
73 | 72 | } |
0 commit comments