|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint:recommended", |
| 4 | + "plugin:import/errors", |
| 5 | + "plugin:import/warnings", |
| 6 | + "airbnb" |
| 7 | + ], |
| 8 | + "plugins": [ |
| 9 | + "react", |
| 10 | + "react-hooks" |
| 11 | + ], |
| 12 | + "parser": "babel-eslint", |
| 13 | + "parserOptions": { |
| 14 | + "ecmaVersion": 6, |
| 15 | + "sourceType": "module", |
| 16 | + "ecmaFeatures": { |
| 17 | + "jsx": true, |
| 18 | + "experimentalObjectRestSpread": true |
| 19 | + } |
| 20 | + }, |
| 21 | + "env": { |
| 22 | + "es6": true, |
| 23 | + "browser": true, |
| 24 | + "node": true, |
| 25 | + "jquery": true, |
| 26 | + "jest": true |
| 27 | + }, |
| 28 | + "rules": { |
| 29 | + "object-curly-newline": 0, |
| 30 | + "no-class-assign": 0, |
| 31 | + "no-param-reassign": 0, |
| 32 | + "class-methods-use-this": 0, |
| 33 | + "consistent-return": 0, |
| 34 | + "no-shadow": 0, |
| 35 | + "global-require": 0, |
| 36 | + "eqeqeq": 0, |
| 37 | + "no-unused-expressions": [1, { "allowShortCircuit": true, "allowTernary": true }], |
| 38 | + "array-callback-return": 0, |
| 39 | + "no-console": [1, { "allow": ["warn", "error"] }], |
| 40 | + "no-debugger": 1, |
| 41 | + "no-var": 1, |
| 42 | + "semi": [1, "always"], |
| 43 | + "no-trailing-spaces": 1, |
| 44 | + "eol-last": 1, |
| 45 | + "no-underscore-dangle": 0, |
| 46 | + "no-alert": 0, |
| 47 | + "no-lone-blocks": 0, |
| 48 | + "jsx-quotes": 1, |
| 49 | + "no-multi-spaces": 1, |
| 50 | + "block-spacing": 1, |
| 51 | + "brace-style": 1, |
| 52 | + "comma-dangle": 0, |
| 53 | + "comma-spacing": [1, { "before": false, "after": true }], |
| 54 | + "comma-style": 1, |
| 55 | + "key-spacing": 1, |
| 56 | + "no-empty": [1, { "allowEmptyCatch": true }], |
| 57 | + "no-multiple-empty-lines": [1, { "max": 1 }], |
| 58 | + "arrow-spacing": 1, |
| 59 | + "no-const-assign": 1, |
| 60 | + "object-curly-spacing": [1, "always"], |
| 61 | + "space-before-blocks" : [1, "always"], |
| 62 | + "keyword-spacing": 1, |
| 63 | + "indent": [1, 2, { "SwitchCase": 1 }], |
| 64 | + "max-len": 0, |
| 65 | + "jsx-a11y/click-events-have-key-events": 0, |
| 66 | + "jsx-a11y/label-has-for": 0, |
| 67 | + "jsx-a11y/no-static-element-interactions": 0, |
| 68 | + "jsx-a11y/anchor-is-valid": 0, |
| 69 | + "react/display-name": [ 1, { "ignoreTranspilerName": false }], |
| 70 | + "react/forbid-prop-types": [1, { "forbid": ["any"] }], |
| 71 | + "react/jsx-curly-spacing": 1, |
| 72 | + "react/jsx-filename-extension": 0, |
| 73 | + "react/jsx-indent-props": 0, |
| 74 | + "react/jsx-key": 1, |
| 75 | + "react/jsx-max-props-per-line": 0, |
| 76 | + "react/jsx-no-duplicate-props": 1, |
| 77 | + "react/jsx-no-literals": 0, |
| 78 | + "react/jsx-no-undef": 1, |
| 79 | + "react/jsx-pascal-case": 1, |
| 80 | + "react/jsx-sort-prop-types": 0, |
| 81 | + "react/jsx-sort-props": 0, |
| 82 | + "react/jsx-uses-react": 1, |
| 83 | + "react/jsx-uses-vars": 1, |
| 84 | + "react/no-danger": 1, |
| 85 | + "react/no-did-mount-set-state": 1, |
| 86 | + "react/no-did-update-set-state": 1, |
| 87 | + "react/no-direct-mutation-state": 1, |
| 88 | + "react/no-multi-comp": 1, |
| 89 | + "react/no-set-state": 0, |
| 90 | + "react/no-unknown-property": 1, |
| 91 | + "react/prefer-es6-class": 1, |
| 92 | + "react/prop-types": 1, |
| 93 | + "react/react-in-jsx-scope": 1, |
| 94 | + "react/require-default-props": 0, |
| 95 | + "react/self-closing-comp": 1, |
| 96 | + "react/sort-comp": 1, |
| 97 | + "react/jsx-wrap-multilines": 0, |
| 98 | + "react/no-array-index-key": 0, |
| 99 | + "import/extensions": 1, |
| 100 | + "import/prefer-default-export": 0, |
| 101 | + "import/no-extraneous-dependencies": 0, |
| 102 | + "import/no-named-as-default": 0, |
| 103 | + "react-hooks/rules-of-hooks": "error" |
| 104 | + }, |
| 105 | + "settings": { |
| 106 | + "import/resolver": { |
| 107 | + "node": { |
| 108 | + "paths": ["src"] |
| 109 | + } |
| 110 | + } |
| 111 | + } |
| 112 | +} |
0 commit comments