|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:prettier/recommended"], |
| 4 | + "env": { |
| 5 | + "es6": true, |
| 6 | + "node": true |
| 7 | + }, |
| 8 | + "rules": { |
| 9 | + "prefer-spread": "off", |
| 10 | + "eqeqeq": "error" |
| 11 | + }, |
| 12 | + "ignorePatterns": ["examples/**", "dist/**"], |
| 13 | + "overrides": [ |
| 14 | + { |
| 15 | + "files": ["**/*.ts"], |
| 16 | + "parser": "@typescript-eslint/parser", |
| 17 | + "parserOptions": { |
| 18 | + "project": ["./tsconfig.build.json", "./tsconfig.spec.json"] |
| 19 | + }, |
| 20 | + "plugins": ["@typescript-eslint", "prettier"], |
| 21 | + "rules": { |
| 22 | + "@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_" }], |
| 23 | + "@typescript-eslint/naming-convention": "error", |
| 24 | + "@typescript-eslint/no-floating-promises": "error", |
| 25 | + "@typescript-eslint/no-unnecessary-type-arguments": "error", |
| 26 | + "@typescript-eslint/no-non-null-assertion": "error", |
| 27 | + "@typescript-eslint/no-empty-interface": "error", |
| 28 | + "@typescript-eslint/restrict-plus-operands": "error", |
| 29 | + "@typescript-eslint/no-extra-non-null-assertion": "error", |
| 30 | + "@typescript-eslint/prefer-nullish-coalescing": "error", |
| 31 | + "@typescript-eslint/prefer-optional-chain": "error", |
| 32 | + "@typescript-eslint/ban-ts-comment": "error", |
| 33 | + "@typescript-eslint/prefer-includes": "error", |
| 34 | + "@typescript-eslint/prefer-for-of": "error", |
| 35 | + "@typescript-eslint/prefer-string-starts-ends-with": "error", |
| 36 | + "@typescript-eslint/prefer-readonly": "error", |
| 37 | + "@typescript-eslint/no-non-null-asserted-optional-chain": "error", |
| 38 | + "@typescript-eslint/await-thenable": "error", |
| 39 | + "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error", |
| 40 | + "@typescript-eslint/switch-exhaustiveness-check": "error" |
| 41 | + } |
| 42 | + }, |
| 43 | + { |
| 44 | + "files": ["test/*.ts"], |
| 45 | + "plugins": ["jest"], |
| 46 | + "env": { |
| 47 | + "jest/globals": true |
| 48 | + }, |
| 49 | + "rules": { |
| 50 | + "@typescript-eslint/no-explicit-any": "off", |
| 51 | + "@typescript-eslint/no-var-requires": "off", |
| 52 | + "@typescript-eslint/ban-ts-comment": "warn", |
| 53 | + "@typescript-eslint/naming-convention": "off" |
| 54 | + } |
| 55 | + }, |
| 56 | + { |
| 57 | + "files": ["**/*.js"], |
| 58 | + "env": { |
| 59 | + "browser": true |
| 60 | + }, |
| 61 | + "rules": {} |
| 62 | + } |
| 63 | + ] |
| 64 | +} |
0 commit comments