|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es2022": true, |
| 5 | + "node": true |
| 6 | + }, |
| 7 | + "settings": { |
| 8 | + "import/parsers": { |
| 9 | + "@typescript-eslint/parser": [".ts", ".tsx"] |
| 10 | + }, |
| 11 | + "import/resolver": { |
| 12 | + "node": { |
| 13 | + "extensions": [".js", ".jsx", ".ts", ".tsx"] |
| 14 | + }, |
| 15 | + "typescript": {} |
| 16 | + }, |
| 17 | + "react": { |
| 18 | + "version": "detect" |
| 19 | + } |
| 20 | + }, |
| 21 | + "overrides": [ |
| 22 | + { |
| 23 | + "files": ["**/*.test.ts", "**/*.test.tsx"], |
| 24 | + "env": { |
| 25 | + "jest": true |
| 26 | + } |
| 27 | + } |
| 28 | + ], |
| 29 | + "parser": "@typescript-eslint/parser", |
| 30 | + "parserOptions": { |
| 31 | + "ecmaVersion": "latest", |
| 32 | + "sourceType": "module", |
| 33 | + "project": ["./tsconfig.json", "./tsconfig.node.json"], |
| 34 | + "tsconfigRootDir": "./" |
| 35 | + }, |
| 36 | + "ignorePatterns": ["dist", ".eslintrc"], |
| 37 | + "plugins": [ |
| 38 | + "@typescript-eslint", |
| 39 | + "react", |
| 40 | + "prettier", |
| 41 | + "tailwindcss", |
| 42 | + "react-hooks", |
| 43 | + "jsx-a11y", |
| 44 | + "promise", |
| 45 | + "import", |
| 46 | + "unicorn", |
| 47 | + "testing-library", |
| 48 | + "react-refresh" |
| 49 | + ], |
| 50 | + "extends": [ |
| 51 | + "eslint:recommended", |
| 52 | + "plugin:prettier/recommended", |
| 53 | + "plugin:@typescript-eslint/recommended-type-checked", |
| 54 | + "plugin:react/recommended", |
| 55 | + "plugin:react/jsx-runtime", |
| 56 | + "plugin:jsx-a11y/recommended", |
| 57 | + "plugin:unicorn/recommended", |
| 58 | + "plugin:react-hooks/recommended", |
| 59 | + "plugin:security/recommended", |
| 60 | + "plugin:promise/recommended", |
| 61 | + "plugin:import/recommended", |
| 62 | + "plugin:n/recommended", |
| 63 | + "plugin:tailwindcss/recommended", |
| 64 | + "prettier" |
| 65 | + ], |
| 66 | + "rules": { |
| 67 | + "@typescript-eslint/no-unsafe-assignment": "warn", |
| 68 | + "@typescript-eslint/no-unsafe-member-access": "warn", |
| 69 | + "@typescript-eslint/no-unsafe-return": "warn", |
| 70 | + "@typescript-eslint/no-unused-vars": "off", |
| 71 | + "@typescript-eslint/no-misused-promises": [ |
| 72 | + 2, |
| 73 | + { |
| 74 | + "checksVoidReturn": { |
| 75 | + "attributes": false |
| 76 | + } |
| 77 | + } |
| 78 | + ], |
| 79 | + "n/no-missing-import": "off", |
| 80 | + "no-unused-vars": "off", |
| 81 | + "no-unused-expressions": [ |
| 82 | + "error", |
| 83 | + { |
| 84 | + "allowTernary": true |
| 85 | + } |
| 86 | + ], |
| 87 | + |
| 88 | + "jsx-a11y/anchor-is-valid": "warn", |
| 89 | + "prettier/prettier": "warn", |
| 90 | + "promise/catch-or-return": "error", |
| 91 | + "promise/no-new-statics": "error", |
| 92 | + "promise/no-return-wrap": "error", |
| 93 | + "promise/param-names": "error", |
| 94 | + "promise/avoid-new": "warn", |
| 95 | + "promise/no-callback-in-promise": "warn", |
| 96 | + "promise/no-nesting": "warn", |
| 97 | + "promise/no-promise-in-callback": "warn", |
| 98 | + "promise/no-return-in-finally": "warn", |
| 99 | + "promise/valid-params": "warn", |
| 100 | + "promise/always-return": "off", |
| 101 | + "promise/no-native": "off", |
| 102 | + "react/prop-types": "off", |
| 103 | + "react/react-in-jsx-scope": "off", |
| 104 | + "react-hooks/rules-of-hooks": "error", |
| 105 | + "react-hooks/exhaustive-deps": "warn", |
| 106 | + "react-refresh/only-export-components": [ |
| 107 | + "warn", |
| 108 | + { "allowConstantExport": true } |
| 109 | + ], |
| 110 | + "unicorn/expiring-todo-comments": "off", |
| 111 | + "unicorn/filename-case": "off", |
| 112 | + "unicorn/no-useless-undefined": "warn", |
| 113 | + "unicorn/prevent-abbreviations": "warn" |
| 114 | + } |
| 115 | +} |
0 commit comments