|
| 1 | +{ |
| 2 | + "plugins": ["jest", "@typescript-eslint"], |
| 3 | + "extends": ["plugin:github/recommended"], |
| 4 | + "parser": "@typescript-eslint/parser", |
| 5 | + "parserOptions": { |
| 6 | + "ecmaVersion": 9, |
| 7 | + "sourceType": "module", |
| 8 | + "project": "./tsconfig.json" |
| 9 | + }, |
| 10 | + "rules": { |
| 11 | + "eslint-comments/no-use": "off", |
| 12 | + "import/no-namespace": "off", |
| 13 | + "no-unused-vars": "off", |
| 14 | + "@typescript-eslint/no-unused-vars": "error", |
| 15 | + "@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}], |
| 16 | + "@typescript-eslint/no-require-imports": "error", |
| 17 | + "@typescript-eslint/array-type": "error", |
| 18 | + "@typescript-eslint/await-thenable": "error", |
| 19 | + "@typescript-eslint/ban-ts-comment": "error", |
| 20 | + "camelcase": "off", |
| 21 | + "@typescript-eslint/consistent-type-assertions": "error", |
| 22 | + "@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}], |
| 23 | + "@typescript-eslint/func-call-spacing": ["error", "never"], |
| 24 | + "@typescript-eslint/no-array-constructor": "error", |
| 25 | + "@typescript-eslint/no-empty-interface": "error", |
| 26 | + "@typescript-eslint/no-explicit-any": "error", |
| 27 | + "@typescript-eslint/no-extraneous-class": "error", |
| 28 | + "@typescript-eslint/no-for-in-array": "error", |
| 29 | + "@typescript-eslint/no-inferrable-types": "error", |
| 30 | + "@typescript-eslint/no-misused-new": "error", |
| 31 | + "@typescript-eslint/no-namespace": "error", |
| 32 | + "@typescript-eslint/no-non-null-assertion": "warn", |
| 33 | + "@typescript-eslint/no-unnecessary-qualifier": "error", |
| 34 | + "@typescript-eslint/no-unnecessary-type-assertion": "error", |
| 35 | + "@typescript-eslint/no-useless-constructor": "error", |
| 36 | + "@typescript-eslint/no-var-requires": "error", |
| 37 | + "@typescript-eslint/prefer-for-of": "warn", |
| 38 | + "@typescript-eslint/prefer-function-type": "warn", |
| 39 | + "@typescript-eslint/prefer-includes": "error", |
| 40 | + "@typescript-eslint/prefer-string-starts-ends-with": "error", |
| 41 | + "@typescript-eslint/promise-function-async": "error", |
| 42 | + "@typescript-eslint/require-array-sort-compare": "error", |
| 43 | + "@typescript-eslint/restrict-plus-operands": "error", |
| 44 | + "semi": "off", |
| 45 | + "@typescript-eslint/semi": ["error", "never"], |
| 46 | + "@typescript-eslint/type-annotation-spacing": "error", |
| 47 | + "@typescript-eslint/unbound-method": "error" |
| 48 | + }, |
| 49 | + "env": { |
| 50 | + "node": true, |
| 51 | + "es6": true, |
| 52 | + "jest/globals": true |
| 53 | + }, |
| 54 | + "ignorePatterns": [ |
| 55 | + "dist/", |
| 56 | + "lib/", |
| 57 | + "node_modules/", |
| 58 | + "jest.config.js" |
| 59 | + ] |
| 60 | +} |
0 commit comments