|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "parserOptions": { |
| 5 | + "ecmaVersion": 11, |
| 6 | + "ecmaFeatures": { |
| 7 | + "jsx": true |
| 8 | + }, |
| 9 | + "project": "./tsconfig.json" |
| 10 | + }, |
| 11 | + "settings": { |
| 12 | + "import/resolver": { |
| 13 | + "node": { |
| 14 | + "moduleDirectory": ["node_modules", "src/"] |
| 15 | + } |
| 16 | + }, |
| 17 | + "react": { |
| 18 | + "pragma": "React", |
| 19 | + "version": "detect" |
| 20 | + } |
| 21 | + }, |
| 22 | + "plugins": ["react", "react-hooks"], |
| 23 | + "extends": [ |
| 24 | + "eslint:recommended", |
| 25 | + "plugin:react-hooks/recommended", |
| 26 | + "prettier", |
| 27 | + "plugin:react/recommended", |
| 28 | + "plugin:@typescript-eslint/recommended", |
| 29 | + "plugin:import/typescript", |
| 30 | + "airbnb", |
| 31 | + "airbnb-typescript", |
| 32 | + "plugin:prettier/recommended" |
| 33 | + ], |
| 34 | + "rules": { |
| 35 | + "react-hooks/rules-of-hooks": "error", |
| 36 | + "react-hooks/exhaustive-deps": "warn", |
| 37 | + "react/prop-types": "off", |
| 38 | + "react/jsx-uses-react": "error", |
| 39 | + "react/jsx-uses-vars": "error", |
| 40 | + "no-console": ["error", { "allow": ["warn", "error"] }], |
| 41 | + "react/react-in-jsx-scope": "off", |
| 42 | + "react/display-name": 0, |
| 43 | + "import/no-extraneous-dependencies": 0, |
| 44 | + "import/prefer-default-export": 0, |
| 45 | + "import/no-cycle": 0, |
| 46 | + "@typescript-eslint/no-explicit-any": 0, |
| 47 | + "@typescript-eslint/lines-between-class-members": "off", |
| 48 | + "prettier/prettier": ["error"], |
| 49 | + "consistent-return": 0, |
| 50 | + "@typescript-eslint/no-throw-literal": 0, |
| 51 | + "no-underscore-dangle": 0, |
| 52 | + "react/function-component-definition": 0, |
| 53 | + "testing-library/render-result-naming-convention": "off", |
| 54 | + "import/order": [ |
| 55 | + "error", |
| 56 | + { |
| 57 | + "groups": [ |
| 58 | + ["builtin", "external"], |
| 59 | + ["internal", "parent", "sibling", "index"] |
| 60 | + ], |
| 61 | + "pathGroups": [ |
| 62 | + { "pattern": "assets/**", "group": "sibling", "position": "after" }, |
| 63 | + { |
| 64 | + "pattern": "@external/**/*.css", |
| 65 | + "group": "sibling", |
| 66 | + "position": "after" |
| 67 | + }, |
| 68 | + { |
| 69 | + "pattern": "*.css", |
| 70 | + "group": "index", |
| 71 | + "patternOptions": { "matchBase": true }, |
| 72 | + "position": "after" |
| 73 | + } |
| 74 | + ], |
| 75 | + "warnOnUnassignedImports": true, |
| 76 | + "pathGroupsExcludedImportTypes": ["css"], |
| 77 | + "newlines-between": "always" |
| 78 | + } |
| 79 | + ] |
| 80 | + }, |
| 81 | + "overrides": [ |
| 82 | + { |
| 83 | + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], |
| 84 | + "rules": { |
| 85 | + "testing-library/render-result-naming-convention": "off" |
| 86 | + } |
| 87 | + } |
| 88 | + ] |
| 89 | +} |
0 commit comments