|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "airbnb", |
| 4 | + "plugin:prettier/recommended", |
| 5 | + "prettier", |
| 6 | + "prettier/react", |
| 7 | + "react-app" |
| 8 | + ], |
| 9 | + "plugins": ["react", "prettier", "react-hooks"], |
| 10 | + "env": { |
| 11 | + "browser": true, |
| 12 | + "node": true, |
| 13 | + "es6": true, |
| 14 | + "jest": true |
| 15 | + }, |
| 16 | + "parserOptions": { |
| 17 | + "ecmaVersion": 6, |
| 18 | + "ecmaFeatures": { |
| 19 | + "jsx": true |
| 20 | + } |
| 21 | + }, |
| 22 | + "rules": { |
| 23 | + "react/jsx-filename-extension": [ |
| 24 | + 2, |
| 25 | + { |
| 26 | + "extensions": [".js", ".jsx"] |
| 27 | + } |
| 28 | + ], |
| 29 | + "linebreak-style": 0, |
| 30 | + "import/no-extraneous-dependencies": "warn", |
| 31 | + "import/no-unresolved": "off", |
| 32 | + "import/named": "warn", |
| 33 | + "import/prefer-default-export": "off", |
| 34 | + "jsx-a11y/aria-role": 1, |
| 35 | + "jsx-a11y/href-no-hash": "off", |
| 36 | + "jsx-a11y/label-has-for": 1, |
| 37 | + "jsx-a11y/no-autofocus": 1, |
| 38 | + "jsx-a11y/no-noninteractive-element-interactions": 1, |
| 39 | + "jsx-a11y/anchor-is-valid": 1, |
| 40 | + "prettier/prettier": "warn", |
| 41 | + "react/forbid-prop-types": 0, |
| 42 | + "react/jsx-closing-bracket-location": 0, |
| 43 | + "react/no-multi-comp": 0, |
| 44 | + "react/no-unused-prop-types": 1, |
| 45 | + "react/prop-types": 0, |
| 46 | + "react/no-unescaped-entities": 1, |
| 47 | + "react/jsx-closing-tag-location": 0, |
| 48 | + "react-hooks/rules-of-hooks": "error", |
| 49 | + "react-hooks/exhaustive-deps": "error" |
| 50 | + }, |
| 51 | + "settings": { |
| 52 | + "import/resolver": { |
| 53 | + "node": { |
| 54 | + "moduleDirectory": ["node_modules", "./src"] |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | +} |
0 commit comments