|
| 1 | +{ |
| 2 | + "extends": ["react-app", "plugin:jsx-a11y/recommended", "prettier", "prettier/react"], |
| 3 | + "plugins": ["jsx-a11y", "prettier"], |
| 4 | + "parser": "@typescript-eslint/parser", |
| 5 | + "settings": { |
| 6 | + "import/resolver": "webpack" |
| 7 | + }, |
| 8 | + "rules": { |
| 9 | + "quotes": [ |
| 10 | + 2, |
| 11 | + "single", |
| 12 | + { |
| 13 | + "avoidEscape": true |
| 14 | + } |
| 15 | + ], |
| 16 | + "import/no-unresolved": [ |
| 17 | + 2, |
| 18 | + { |
| 19 | + "caseSensitive": false |
| 20 | + } |
| 21 | + ], |
| 22 | + "jsx-quotes": ["error", "prefer-single"], |
| 23 | + "jsx-a11y/label-has-for": "off", |
| 24 | + "jsx-a11y/no-static-element-interactions": "off", |
| 25 | + "jsx-a11y/click-events-have-key-events": "off", |
| 26 | + "jsx-a11y/label-has-associated-control": "off", |
| 27 | + "jsx-a11y/no-autofocus": "off", |
| 28 | + "jsx-a11y/media-has-caption": "off", |
| 29 | + "jsx-a11y/no-noninteractive-element-interactions": "off", |
| 30 | + "jsx-a11y/no-onchange": "off", |
| 31 | + "react/jsx-filename-extension": [ |
| 32 | + 1, |
| 33 | + { |
| 34 | + "extensions": [".js", ".jsx", ".d.ts"] |
| 35 | + } |
| 36 | + ], |
| 37 | + "react/destructuring-assignment": [ |
| 38 | + "error", |
| 39 | + "always", |
| 40 | + { |
| 41 | + "ignoreClassFields": true |
| 42 | + } |
| 43 | + ], |
| 44 | + "react/state-in-constructor": ["error", "never"], |
| 45 | + "react/require-default-props": [ |
| 46 | + 0, |
| 47 | + { |
| 48 | + "forbidDefaultForRequired": true |
| 49 | + } |
| 50 | + ], |
| 51 | + "react/sort-prop-types": [ |
| 52 | + 1, |
| 53 | + { |
| 54 | + "callbacksLast": false, |
| 55 | + "ignoreCase": true, |
| 56 | + "requiredFirst": true, |
| 57 | + "sortShapeProp": true, |
| 58 | + "noSortAlphabetically": false |
| 59 | + } |
| 60 | + ], |
| 61 | + "react/jsx-props-no-spreading": [ |
| 62 | + 0, |
| 63 | + { |
| 64 | + "html": true, |
| 65 | + "custom": true |
| 66 | + } |
| 67 | + ], |
| 68 | + "react/self-closing-comp": [ |
| 69 | + "error", |
| 70 | + { |
| 71 | + "component": true, |
| 72 | + "html": false |
| 73 | + } |
| 74 | + ], |
| 75 | + "curly": "warn" |
| 76 | + } |
| 77 | +} |
0 commit comments