|
| 1 | +module.exports = { |
| 2 | + extends: [ |
| 3 | + "react-app", |
| 4 | + "react-app/jest", |
| 5 | + ], |
| 6 | + settings: { |
| 7 | + react: { |
| 8 | + version: "detect", |
| 9 | + }, |
| 10 | + }, |
| 11 | + env: { |
| 12 | + browser: true, |
| 13 | + jest: true, |
| 14 | + }, |
| 15 | + rules: { |
| 16 | + "semi": [2, "always"], |
| 17 | + "comma-dangle": [ |
| 18 | + "error", |
| 19 | + { |
| 20 | + "arrays": "always-multiline", |
| 21 | + "objects": "always-multiline", |
| 22 | + "imports": "always-multiline", |
| 23 | + "exports": "always-multiline", |
| 24 | + "functions": "never", |
| 25 | + }, |
| 26 | + ], |
| 27 | + "no-unused-expressions": "off", |
| 28 | + "no-unused-vars": "off", |
| 29 | + "dot-notation": "off", |
| 30 | + "camelcase": "off", |
| 31 | + "@typescript-eslint/no-unused-expressions": [ |
| 32 | + "error", |
| 33 | + { |
| 34 | + "allowShortCircuit": true, |
| 35 | + "allowTernary": true, |
| 36 | + "allowTaggedTemplates": true, |
| 37 | + }, |
| 38 | + ], |
| 39 | + "@typescript-eslint/no-unused-vars": ["warn", { |
| 40 | + "ignoreRestSiblings": true, |
| 41 | + "argsIgnorePattern": "^_", |
| 42 | + }], |
| 43 | + "react/prop-types": "off", |
| 44 | + "react/display-name": "off", |
| 45 | + "react-hooks/rules-of-hooks": "error", |
| 46 | + "react-hooks/exhaustive-deps": "warn", |
| 47 | + "import/order": ["error", { |
| 48 | + "newlines-between": "always-and-inside-groups", |
| 49 | + "groups": ["builtin", "external", ["parent", "sibling"], "index"], |
| 50 | + "alphabetize": { |
| 51 | + "order": "asc", |
| 52 | + "caseInsensitive": true, |
| 53 | + }, |
| 54 | + }], |
| 55 | + "import/no-default-export": "error", |
| 56 | + }, |
| 57 | +}; |
0 commit comments