|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "es6": true, |
| 4 | + "node": true |
| 5 | + }, |
| 6 | + "extends": [ |
| 7 | + "eslint:recommended", |
| 8 | + "plugin:@typescript-eslint/eslint-recommended", |
| 9 | + "plugin:@typescript-eslint/recommended", |
| 10 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 11 | + "prettier", |
| 12 | + "prettier/@typescript-eslint" |
| 13 | + ], |
| 14 | + "parserOptions": { |
| 15 | + "createDefaultProgram": true, |
| 16 | + "project": "./tsconfig.json" |
| 17 | + }, |
| 18 | + "rules": { |
| 19 | + "@typescript-eslint/consistent-type-definitions": ["error", "interface"], |
| 20 | + "@typescript-eslint/member-ordering": "error", |
| 21 | + "@typescript-eslint/no-floating-promises": "error", |
| 22 | + "@typescript-eslint/no-use-before-define": "off", |
| 23 | + "@typescript-eslint/prefer-readonly": "error", |
| 24 | + "@typescript-eslint/promise-function-async": "error", |
| 25 | + "@typescript-eslint/restrict-plus-operands": "error", |
| 26 | + "@typescript-eslint/strict-boolean-expressions": [ |
| 27 | + "error", |
| 28 | + { "ignoreRhs": true } |
| 29 | + ], |
| 30 | + "eqeqeq": ["error", "smart"], |
| 31 | + "func-style": ["error", "declaration"], |
| 32 | + "id-length": "error", |
| 33 | + "no-else-return": "error", |
| 34 | + "no-extra-boolean-cast": "off", |
| 35 | + "no-implicit-coercion": "error", |
| 36 | + "no-nested-ternary": "error", |
| 37 | + "no-var": "error", |
| 38 | + "prefer-const": "error", |
| 39 | + "require-unicode-regexp": "error", |
| 40 | + "yoda": "error" |
| 41 | + } |
| 42 | +} |
0 commit comments