|
| 1 | +{ |
| 2 | + "parserOptions": { |
| 3 | + "ecmaVersion": 6, |
| 4 | + "sourceType": "module", |
| 5 | + "ecmaFeatures": { |
| 6 | + "jsx": true |
| 7 | + } |
| 8 | + }, |
| 9 | + "plugins": [ |
| 10 | + "react", |
| 11 | + "import" |
| 12 | + ], |
| 13 | + "extends" : [ |
| 14 | + "eslint:recommended", |
| 15 | + "plugin:react/recommended" |
| 16 | + ], |
| 17 | + "rules": { |
| 18 | + "indent": ["error", 2, { "SwitchCase": 1 }], |
| 19 | + "semi": 2, |
| 20 | + "quotes": [2, "single", "avoid-escape"], |
| 21 | + "prefer-destructuring": [2, {"object": true, "array": false}], |
| 22 | + "no-duplicate-imports": [2, { "includeExports": true }], |
| 23 | + "nonblock-statement-body-position": 2, |
| 24 | + "object-curly-spacing": [2, "always", { "objectsInObjects": true }], |
| 25 | + "space-before-blocks": 2, |
| 26 | + "comma-style": [2, "last"], |
| 27 | + "camelcase": [2, {"properties": "always"}], |
| 28 | + "id-length": [2, { "min": 2, "exceptions": ["r", "x", "y"] }], |
| 29 | + "space-infix-ops": 2, |
| 30 | + "no-console": [2, { "allow": ["warn", "error"] }], |
| 31 | + "no-undef": 1, |
| 32 | + "no-unused-vars": [2, { "args": "none" }], |
| 33 | + "import/extensions": 2, |
| 34 | + "import/no-absolute-path": 2, |
| 35 | + "import/no-dynamic-require": 2, |
| 36 | + "import/no-duplicates": 2, |
| 37 | + "import/newline-after-import": 2, |
| 38 | + "import/no-unassigned-import": 2, |
| 39 | + "import/no-unresolved": [2, { "commonjs": true, "amd": true }], |
| 40 | + "react/no-access-state-in-setstate": 2, |
| 41 | + "react/no-did-update-set-state": 2, |
| 42 | + "react/no-did-mount-set-state": 2, |
| 43 | + "react/no-is-mounted": 2, |
| 44 | + "react/no-will-update-set-state": 2, |
| 45 | + "react/style-prop-object": 2, |
| 46 | + "react/no-string-refs": 2, |
| 47 | + "react/self-closing-comp": 2, |
| 48 | + "react/jsx-closing-bracket-location": 2, |
| 49 | + "react/jsx-boolean-value": 2, |
| 50 | + "react/no-deprecated": 2, |
| 51 | + "react/forbid-prop-types": 0, |
| 52 | + "react/prefer-stateless-function": 2, |
| 53 | + "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], |
| 54 | + "react/jsx-no-duplicate-props": 2, |
| 55 | + "react/prop-types": [1, { "skipUndeclared": true }] |
| 56 | + } |
| 57 | +} |
0 commit comments