|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "es2022": true, |
| 4 | + "node": true |
| 5 | + }, |
| 6 | + "extends": [ |
| 7 | + "eslint:recommended", |
| 8 | + "plugin:@typescript-eslint/recommended", |
| 9 | + "plugin:import/errors", |
| 10 | + "plugin:import/warnings", |
| 11 | + "plugin:import/typescript", |
| 12 | + "prettier" |
| 13 | + ], |
| 14 | + "parser": "@typescript-eslint/parser", |
| 15 | + "parserOptions": { |
| 16 | + "project": ["./tsconfig.json", "./tsconfig.spec.json"], |
| 17 | + "ecmaVersion": "latest", |
| 18 | + "sourceType": "module" |
| 19 | + }, |
| 20 | + "plugins": ["@typescript-eslint", "simple-import-sort", "import"], |
| 21 | + "settings": { |
| 22 | + "import/resolver": { |
| 23 | + "typescript": {} |
| 24 | + } |
| 25 | + }, |
| 26 | + "rules": { |
| 27 | + "@typescript-eslint/no-explicit-any": "error", |
| 28 | + "@typescript-eslint/explicit-function-return-type": "error", |
| 29 | + "@typescript-eslint/strict-boolean-expressions": "off", |
| 30 | + "@typescript-eslint/no-unused-vars": [ |
| 31 | + "error", |
| 32 | + { |
| 33 | + "argsIgnorePattern": "^_", |
| 34 | + "varsIgnorePattern": "^_" |
| 35 | + } |
| 36 | + ], |
| 37 | + "simple-import-sort/imports": "error", |
| 38 | + "simple-import-sort/exports": "error", |
| 39 | + "import/no-unused-modules": ["error", { "unusedExports": true }], |
| 40 | + "no-console": ["error", { "allow": ["warn", "error"] }] |
| 41 | + } |
| 42 | +} |
0 commit comments