|
| 1 | +{ |
| 2 | + "plugins": [ |
| 3 | + "jest", |
| 4 | + "@typescript-eslint" |
| 5 | + ], |
| 6 | + "extends": [ |
| 7 | + "plugin:github/recommended" |
| 8 | + ], |
| 9 | + "parser": "@typescript-eslint/parser", |
| 10 | + "parserOptions": { |
| 11 | + "ecmaVersion": 9, |
| 12 | + "sourceType": "module", |
| 13 | + "project": "./tsconfig.json" |
| 14 | + }, |
| 15 | + "rules": { |
| 16 | + "indent": [ |
| 17 | + "error", |
| 18 | + 4 |
| 19 | + ], |
| 20 | + "linebreak-style": [ |
| 21 | + "error", |
| 22 | + "unix" |
| 23 | + ], |
| 24 | + "jsx-quotes": [ |
| 25 | + "error", |
| 26 | + "prefer-double" |
| 27 | + ], |
| 28 | + "quotes": [ |
| 29 | + "error", |
| 30 | + "single" |
| 31 | + ], |
| 32 | + "comma-dangle": [ |
| 33 | + "error", |
| 34 | + "only-multiline" |
| 35 | + ], |
| 36 | + "no-case-declarations": "off", |
| 37 | + "eqeqeq": "warn", |
| 38 | + "quote-props": [ |
| 39 | + "warn", |
| 40 | + "consistent-as-needed" |
| 41 | + ], |
| 42 | + "no-console": "off", |
| 43 | + "no-shadow": "off", |
| 44 | + "keyword-spacing": "error", |
| 45 | + "eslint-comments/no-use": "off", |
| 46 | + "import/no-namespace": "off", |
| 47 | + "no-unused-vars": "off", |
| 48 | + "camelcase": "off", |
| 49 | + "no-angle-bracket-type-assertion": "off", |
| 50 | + "@typescript-eslint/no-unused-vars": "error", |
| 51 | + "@typescript-eslint/explicit-member-accessibility": [ |
| 52 | + "error", |
| 53 | + { |
| 54 | + "accessibility": "no-public" |
| 55 | + } |
| 56 | + ], |
| 57 | + "@typescript-eslint/no-require-imports": "error", |
| 58 | + "@typescript-eslint/array-type": "error", |
| 59 | + "@typescript-eslint/await-thenable": "error", |
| 60 | + "@typescript-eslint/ban-ts-comment": "error", |
| 61 | + "@typescript-eslint/consistent-type-assertions": "error", |
| 62 | + "@typescript-eslint/explicit-function-return-type": [ |
| 63 | + "error", |
| 64 | + { |
| 65 | + "allowExpressions": true |
| 66 | + } |
| 67 | + ], |
| 68 | + "@typescript-eslint/func-call-spacing": [ |
| 69 | + "error", |
| 70 | + "never" |
| 71 | + ], |
| 72 | + "@typescript-eslint/no-array-constructor": "error", |
| 73 | + "@typescript-eslint/no-empty-interface": "error", |
| 74 | + "@typescript-eslint/no-explicit-any": "error", |
| 75 | + "@typescript-eslint/no-extraneous-class": "error", |
| 76 | + "@typescript-eslint/no-for-in-array": "error", |
| 77 | + "@typescript-eslint/no-inferrable-types": "error", |
| 78 | + "@typescript-eslint/no-misused-new": "error", |
| 79 | + "@typescript-eslint/no-namespace": "error", |
| 80 | + "@typescript-eslint/no-non-null-assertion": "warn", |
| 81 | + "@typescript-eslint/no-unnecessary-qualifier": "error", |
| 82 | + "@typescript-eslint/no-unnecessary-type-assertion": "error", |
| 83 | + "@typescript-eslint/no-useless-constructor": "error", |
| 84 | + "@typescript-eslint/no-var-requires": "error", |
| 85 | + "@typescript-eslint/prefer-for-of": "warn", |
| 86 | + "@typescript-eslint/prefer-function-type": "warn", |
| 87 | + "@typescript-eslint/prefer-includes": "error", |
| 88 | + "@typescript-eslint/prefer-string-starts-ends-with": "error", |
| 89 | + "@typescript-eslint/promise-function-async": "error", |
| 90 | + "@typescript-eslint/require-array-sort-compare": "error", |
| 91 | + "@typescript-eslint/restrict-plus-operands": "error", |
| 92 | + "semi": "off", |
| 93 | + "@typescript-eslint/semi": [ |
| 94 | + "error", |
| 95 | + "never" |
| 96 | + ], |
| 97 | + "@typescript-eslint/type-annotation-spacing": "error", |
| 98 | + "@typescript-eslint/unbound-method": "error", |
| 99 | + "@typescript-eslint/member-ordering": "off", |
| 100 | + "@typescript-eslint/no-use-before-define": "off", |
| 101 | + "@typescript-eslint/no-floating-promises": "warn", |
| 102 | + "@typescript-eslint/no-empty-function": "warn", |
| 103 | + "@typescript-eslint/no-this-alias": "warn", |
| 104 | + "@typescript-eslint/ban-types": "warn", |
| 105 | + "@typescript-eslint/quotes": "off" |
| 106 | + }, |
| 107 | + "env": { |
| 108 | + "node": true, |
| 109 | + "es6": true, |
| 110 | + "jest/globals": true |
| 111 | + } |
| 112 | +} |
0 commit comments