|
| 1 | +{ |
| 2 | + "parser": "babel-eslint", |
| 3 | + "extends": "eslint:recommended", |
| 4 | + "plugins": [ |
| 5 | + "react", |
| 6 | + "jest" |
| 7 | + ], |
| 8 | + "env": { |
| 9 | + "browser": true, |
| 10 | + "node": true, |
| 11 | + "mocha": true, |
| 12 | + "es6": true, |
| 13 | + "jest/globals": true |
| 14 | + }, |
| 15 | + "parserOptions": { |
| 16 | + "ecmaFeatures": { |
| 17 | + "modules": true, |
| 18 | + "jsx": true |
| 19 | + } |
| 20 | + }, |
| 21 | + "settings": { |
| 22 | + "react": { |
| 23 | + "pragma": "h" |
| 24 | + } |
| 25 | + }, |
| 26 | + "globals": { |
| 27 | + "sleep": 1 |
| 28 | + }, |
| 29 | + "rules": { |
| 30 | + "react/jsx-no-bind": [2, { "ignoreRefs": true }], |
| 31 | + "react/jsx-no-duplicate-props": 2, |
| 32 | + "react/self-closing-comp": 2, |
| 33 | + "react/prefer-es6-class": 2, |
| 34 | + "react/no-string-refs": 2, |
| 35 | + "react/require-render-return": 2, |
| 36 | + "react/no-find-dom-node": 2, |
| 37 | + "react/no-is-mounted": 2, |
| 38 | + "react/jsx-no-comment-textnodes": 2, |
| 39 | + "react/jsx-curly-spacing": 2, |
| 40 | + "react/jsx-no-undef": 2, |
| 41 | + "react/jsx-uses-react": 2, |
| 42 | + "react/jsx-uses-vars": 2, |
| 43 | + "jest/no-disabled-tests": 1, |
| 44 | + "jest/no-focused-tests": 1, |
| 45 | + "jest/no-identical-title": 2, |
| 46 | + "no-empty": 0, |
| 47 | + "no-console": 0, |
| 48 | + "no-empty-pattern": 0, |
| 49 | + "no-cond-assign": 1, |
| 50 | + "semi": 2, |
| 51 | + "camelcase": 0, |
| 52 | + "comma-style": 2, |
| 53 | + "comma-dangle": 0, |
| 54 | + "indent": [2, "tab", {"SwitchCase": 1}], |
| 55 | + "no-mixed-spaces-and-tabs": [2, "smart-tabs"], |
| 56 | + "no-trailing-spaces": [2, { "skipBlankLines": true }], |
| 57 | + "max-nested-callbacks": [2, 3], |
| 58 | + "no-eval": 2, |
| 59 | + "no-implied-eval": 2, |
| 60 | + "no-new-func": 2, |
| 61 | + "guard-for-in": 2, |
| 62 | + "eqeqeq": 1, |
| 63 | + "no-else-return": 2, |
| 64 | + "no-redeclare": 2, |
| 65 | + "no-dupe-keys": 2, |
| 66 | + "radix": 2, |
| 67 | + "strict": [2, "never"], |
| 68 | + "no-shadow": 0, |
| 69 | + "no-delete-var": 2, |
| 70 | + "no-undef-init": 2, |
| 71 | + "no-shadow-restricted-names": 2, |
| 72 | + "handle-callback-err": 0, |
| 73 | + "no-lonely-if": 2, |
| 74 | + "keyword-spacing": 2, |
| 75 | + "constructor-super": 2, |
| 76 | + "no-this-before-super": 2, |
| 77 | + "no-dupe-class-members": 2, |
| 78 | + "no-const-assign": 2, |
| 79 | + "prefer-spread": 2, |
| 80 | + "no-useless-concat": 2, |
| 81 | + "no-var": 2, |
| 82 | + "object-shorthand": 2, |
| 83 | + "prefer-arrow-callback": 2 |
| 84 | + } |
| 85 | +} |
0 commit comments