|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "parserOptions": { |
| 4 | + "ecmaVersion": 2022, |
| 5 | + "sourceType": "module", |
| 6 | + "project": "./tsconfig.json" |
| 7 | + }, |
| 8 | + "ignorePatterns": ["node_modules"], |
| 9 | + "plugins": ["@typescript-eslint", "prettier", "jest", "import"], |
| 10 | + "extends": [ |
| 11 | + "eslint:recommended", |
| 12 | + "plugin:@typescript-eslint/recommended", |
| 13 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 14 | + "plugin:prettier/recommended", |
| 15 | + "plugin:jest/recommended", |
| 16 | + "plugin:jest/style", |
| 17 | + "plugin:import/recommended", |
| 18 | + "plugin:import/typescript" |
| 19 | + ], |
| 20 | + "rules": { |
| 21 | + "prettier/prettier": "error", |
| 22 | + "@typescript-eslint/no-empty-interface": "warn", |
| 23 | + "@typescript-eslint/ban-ts-comment": "off", |
| 24 | + "@typescript-eslint/no-use-before-define": "off", |
| 25 | + "@typescript-eslint/no-non-null-assertion": "warn", |
| 26 | + "@typescript-eslint/no-var-requires": "off", |
| 27 | + "@typescript-eslint/indent": "off", |
| 28 | + "@typescript-eslint/no-explicit-any": "warn", |
| 29 | + "@typescript-eslint/no-unsafe-member-access": "warn", |
| 30 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 31 | + "@typescript-eslint/consistent-type-imports": "warn", |
| 32 | + "@typescript-eslint/no-unused-vars": [ |
| 33 | + "warn", // or "error" |
| 34 | + { |
| 35 | + "argsIgnorePattern": "^_", |
| 36 | + "varsIgnorePattern": "^_", |
| 37 | + "caughtErrorsIgnorePattern": "^_" |
| 38 | + } |
| 39 | + ], |
| 40 | + "@typescript-eslint/member-delimiter-style": [ |
| 41 | + "error", |
| 42 | + { |
| 43 | + "multiline": { |
| 44 | + "delimiter": "none", |
| 45 | + "requireLast": false |
| 46 | + }, |
| 47 | + "singleline": { |
| 48 | + "delimiter": "comma", |
| 49 | + "requireLast": false |
| 50 | + } |
| 51 | + } |
| 52 | + ], |
| 53 | + "import/order": [ |
| 54 | + "warn", |
| 55 | + { |
| 56 | + "alphabetize": { "order": "asc" }, |
| 57 | + "newlines-between": "always" |
| 58 | + } |
| 59 | + ] |
| 60 | + }, |
| 61 | + "overrides": [ |
| 62 | + { |
| 63 | + "files": ["*.test.ts", "*.spec.ts"], |
| 64 | + "rules": { |
| 65 | + "@typescript-eslint/no-non-null-assertion": "off" |
| 66 | + } |
| 67 | + } |
| 68 | + ] |
| 69 | +} |
0 commit comments