|
| 1 | +{ |
| 2 | + "$schema": "https://json.schemastore.org/eslintrc.json", |
| 3 | + "env": { |
| 4 | + "browser": false, |
| 5 | + "es2021": true, |
| 6 | + "node": true |
| 7 | + }, |
| 8 | + "extends": [ |
| 9 | + "plugin:react/recommended", |
| 10 | + "plugin:prettier/recommended", |
| 11 | + "plugin:react-hooks/recommended", |
| 12 | + "plugin:jsx-a11y/recommended" |
| 13 | + ], |
| 14 | + "plugins": ["react", "unused-imports", "import", "@typescript-eslint", "jsx-a11y", "prettier"], |
| 15 | + "parser": "@typescript-eslint/parser", |
| 16 | + "parserOptions": { |
| 17 | + "ecmaFeatures": { |
| 18 | + "jsx": true |
| 19 | + }, |
| 20 | + "ecmaVersion": 12, |
| 21 | + "sourceType": "module" |
| 22 | + }, |
| 23 | + "settings": { |
| 24 | + "react": { |
| 25 | + "version": "detect" |
| 26 | + } |
| 27 | + }, |
| 28 | + "rules": { |
| 29 | + "no-console": "warn", |
| 30 | + "react/prop-types": "off", |
| 31 | + "react/jsx-uses-react": "off", |
| 32 | + "react/react-in-jsx-scope": "off", |
| 33 | + "react-hooks/exhaustive-deps": "off", |
| 34 | + "jsx-a11y/click-events-have-key-events": "warn", |
| 35 | + "jsx-a11y/interactive-supports-focus": "warn", |
| 36 | + "prettier/prettier": "warn", |
| 37 | + "no-unused-vars": "off", |
| 38 | + "unused-imports/no-unused-vars": "off", |
| 39 | + "unused-imports/no-unused-imports": "warn", |
| 40 | + "@typescript-eslint/no-unused-vars": [ |
| 41 | + "warn", |
| 42 | + { |
| 43 | + "args": "after-used", |
| 44 | + "ignoreRestSiblings": false, |
| 45 | + "argsIgnorePattern": "^_.*?$" |
| 46 | + } |
| 47 | + ], |
| 48 | + "import/order": [ |
| 49 | + "warn", |
| 50 | + { |
| 51 | + "groups": [ |
| 52 | + "type", |
| 53 | + "builtin", |
| 54 | + "object", |
| 55 | + "external", |
| 56 | + "internal", |
| 57 | + "parent", |
| 58 | + "sibling", |
| 59 | + "index" |
| 60 | + ], |
| 61 | + "pathGroups": [ |
| 62 | + { |
| 63 | + "pattern": "~/**", |
| 64 | + "group": "external", |
| 65 | + "position": "after" |
| 66 | + } |
| 67 | + ], |
| 68 | + "newlines-between": "always" |
| 69 | + } |
| 70 | + ], |
| 71 | + "react/self-closing-comp": "warn", |
| 72 | + "react/jsx-sort-props": [ |
| 73 | + "warn", |
| 74 | + { |
| 75 | + "callbacksLast": true, |
| 76 | + "shorthandFirst": true, |
| 77 | + "noSortAlphabetically": false, |
| 78 | + "reservedFirst": true |
| 79 | + } |
| 80 | + ], |
| 81 | + "padding-line-between-statements": [ |
| 82 | + "warn", |
| 83 | + {"blankLine": "always", "prev": "*", "next": "return"}, |
| 84 | + {"blankLine": "always", "prev": ["const", "let", "var"], "next": "*"}, |
| 85 | + { |
| 86 | + "blankLine": "any", |
| 87 | + "prev": ["const", "let", "var"], |
| 88 | + "next": ["const", "let", "var"] |
| 89 | + } |
| 90 | + ] |
| 91 | + } |
| 92 | +} |
0 commit comments