|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "parserOptions": { |
| 4 | + "ecmaVersion": 2022, |
| 5 | + "sourceType": "module", |
| 6 | + "project": "./tsconfig.eslint.json" |
| 7 | + }, |
| 8 | + "plugins": ["@typescript-eslint", "prettier"], |
| 9 | + "extends": [ |
| 10 | + "eslint:recommended", |
| 11 | + "plugin:@typescript-eslint/recommended", |
| 12 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 13 | + "plugin:@typescript-eslint/strict", |
| 14 | + "prettier" |
| 15 | + ], |
| 16 | + "rules": { |
| 17 | + "prettier/prettier": "error", |
| 18 | + "@typescript-eslint/explicit-function-return-type": "error", |
| 19 | + "@typescript-eslint/no-explicit-any": "error", |
| 20 | + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], |
| 21 | + "@typescript-eslint/strict-boolean-expressions": "error", |
| 22 | + "@typescript-eslint/no-floating-promises": "error", |
| 23 | + "@typescript-eslint/no-misused-promises": "error", |
| 24 | + "@typescript-eslint/await-thenable": "error", |
| 25 | + "@typescript-eslint/no-unnecessary-condition": "error", |
| 26 | + "@typescript-eslint/prefer-nullish-coalescing": "error", |
| 27 | + "@typescript-eslint/prefer-optional-chain": "error", |
| 28 | + "@typescript-eslint/consistent-type-definitions": ["error", "interface"], |
| 29 | + "@typescript-eslint/consistent-type-imports": "error", |
| 30 | + "no-console": ["warn", { "allow": ["warn", "error"] }], |
| 31 | + "eqeqeq": ["error", "always"], |
| 32 | + "no-var": "error", |
| 33 | + "prefer-const": "error", |
| 34 | + "prefer-arrow-callback": "error" |
| 35 | + }, |
| 36 | + "overrides": [ |
| 37 | + { |
| 38 | + "files": ["**/*.test.ts", "**/*.spec.ts"], |
| 39 | + "rules": { |
| 40 | + "@typescript-eslint/no-unsafe-assignment": "off", |
| 41 | + "@typescript-eslint/no-unsafe-member-access": "off", |
| 42 | + "@typescript-eslint/no-unsafe-call": "off", |
| 43 | + "@typescript-eslint/no-unsafe-return": "off", |
| 44 | + "@typescript-eslint/no-unsafe-argument": "off", |
| 45 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 46 | + "@typescript-eslint/no-explicit-any": "off" |
| 47 | + } |
| 48 | + } |
| 49 | + ], |
| 50 | + "ignorePatterns": ["dist", "node_modules", "*.js"] |
| 51 | +} |
0 commit comments