|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "eslint:recommended", |
| 4 | + "standard", |
| 5 | + "plugin:@typescript-eslint/recommended", |
| 6 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 7 | + "prettier" |
| 8 | + ], |
| 9 | + "overrides": [ |
| 10 | + { |
| 11 | + "files": ["**.test.ts"], |
| 12 | + "rules": { |
| 13 | + "@typescript-eslint/no-unsafe-member-access": "off", |
| 14 | + "@typescript-eslint/no-unused-expressions": "off", |
| 15 | + "@typescript-eslint/no-unsafe-assignment": "off", |
| 16 | + "@typescript-eslint/unbound-method": "off", |
| 17 | + "no-unused-expressions": "off" |
| 18 | + } |
| 19 | + } |
| 20 | + ], |
| 21 | + "parser": "@typescript-eslint/parser", |
| 22 | + "parserOptions": { |
| 23 | + "project": ["./tsconfig.json"], |
| 24 | + "sourceType": "module", |
| 25 | + "tsconfigRootDir": "." |
| 26 | + }, |
| 27 | + "rules": { |
| 28 | + "@typescript-eslint/array-type": ["error", { "default": "array" }], |
| 29 | + "@typescript-eslint/ban-ts-comment": [ |
| 30 | + "error", |
| 31 | + { |
| 32 | + "minimumDescriptionLength": 5, |
| 33 | + "ts-expect-error": "allow-with-description", |
| 34 | + "ts-ignore": true, |
| 35 | + "ts-nocheck": false, |
| 36 | + "ts-check": true |
| 37 | + } |
| 38 | + ], |
| 39 | + "@typescript-eslint/ban-types": "warn", |
| 40 | + "@typescript-eslint/brace-style": ["error", "1tbs", { "allowSingleLine": true }], |
| 41 | + "@typescript-eslint/consistent-type-assertions": ["warn", { "assertionStyle": "as" }], |
| 42 | + "@typescript-eslint/explicit-function-return-type": [ |
| 43 | + "warn", |
| 44 | + { |
| 45 | + "allowExpressions": true, |
| 46 | + "allowTypedFunctionExpressions": true, |
| 47 | + "allowHigherOrderFunctions": true |
| 48 | + } |
| 49 | + ], |
| 50 | + "@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "no-public" }], |
| 51 | + "@typescript-eslint/explicit-module-boundary-types": "warn", |
| 52 | + "@typescript-eslint/member-delimiter-style": "warn", |
| 53 | + "@typescript-eslint/method-signature-style": "error", |
| 54 | + "@typescript-eslint/member-ordering": "error", |
| 55 | + "@typescript-eslint/no-dynamic-delete": "warn", |
| 56 | + "@typescript-eslint/no-empty-interface": "off", |
| 57 | + "@typescript-eslint/no-extraneous-class": "error", |
| 58 | + "@typescript-eslint/no-extra-parens": ["error", "functions"], |
| 59 | + "@typescript-eslint/no-extra-semi": "error", |
| 60 | + "@typescript-eslint/no-parameter-properties": "error", |
| 61 | + "@typescript-eslint/no-unused-expressions": "error", |
| 62 | + "@typescript-eslint/no-unused-vars": [ |
| 63 | + "warn", |
| 64 | + { |
| 65 | + "vars": "all", |
| 66 | + "args": "none", |
| 67 | + "argsIgnorePattern": "^_", |
| 68 | + "ignoreRestSiblings": true |
| 69 | + } |
| 70 | + ], |
| 71 | + "@typescript-eslint/no-unnecessary-type-constraint": "error", |
| 72 | + "@typescript-eslint/no-useless-constructor": "warn", |
| 73 | + "@typescript-eslint/object-curly-spacing": ["error", "always"], |
| 74 | + "@typescript-eslint/prefer-for-of": "error", |
| 75 | + "@typescript-eslint/prefer-optional-chain": "error", |
| 76 | + "@typescript-eslint/prefer-ts-expect-error": "error", |
| 77 | + "@typescript-eslint/quotes": ["error", "single", { "allowTemplateLiterals": true }], |
| 78 | + "@typescript-eslint/semi": "error", |
| 79 | + "@typescript-eslint/type-annotation-spacing": "error", |
| 80 | + "@typescript-eslint/unified-signatures": "error", |
| 81 | + "indent": "off", |
| 82 | + "sort-keys": "warn" |
| 83 | + } |
| 84 | +} |
0 commit comments