|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "es6": true, |
| 4 | + "node": true |
| 5 | + }, |
| 6 | + "extends": [ |
| 7 | + "eslint:recommended", |
| 8 | + "plugin:@typescript-eslint/recommended", |
| 9 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 10 | + "prettier", |
| 11 | + "prettier/@typescript-eslint" |
| 12 | + ], |
| 13 | + "parser": "@typescript-eslint/parser", |
| 14 | + "parserOptions": { |
| 15 | + "project": "tsconfig.json", |
| 16 | + "sourceType": "module" |
| 17 | + }, |
| 18 | + "plugins": ["@typescript-eslint"], |
| 19 | + "rules": { |
| 20 | + "@typescript-eslint/no-unused-vars": [ |
| 21 | + "error", |
| 22 | + { |
| 23 | + "argsIgnorePattern": "^_" |
| 24 | + } |
| 25 | + ], |
| 26 | + "eqeqeq": ["error", "always", { "null": "ignore" }], |
| 27 | + "prefer-const": "error", |
| 28 | + "@typescript-eslint/member-delimiter-style": [ |
| 29 | + "error", |
| 30 | + { |
| 31 | + "multiline": { |
| 32 | + "delimiter": "semi", |
| 33 | + "requireLast": true |
| 34 | + }, |
| 35 | + "singleline": { |
| 36 | + "delimiter": "semi", |
| 37 | + "requireLast": false |
| 38 | + } |
| 39 | + } |
| 40 | + ], |
| 41 | + "@typescript-eslint/semi": [ |
| 42 | + "error", |
| 43 | + "always" |
| 44 | + ], |
| 45 | + // TODO: Silenced during TSLint -> ESLint conversion; consider enabling them |
| 46 | + "no-useless-escape": "off", |
| 47 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 48 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 49 | + "@typescript-eslint/no-floating-promises": "off", |
| 50 | + "@typescript-eslint/restrict-template-expressions": "off", |
| 51 | + "@typescript-eslint/no-unsafe-member-access": "off", |
| 52 | + "@typescript-eslint/no-unsafe-assignment": "off", |
| 53 | + "@typescript-eslint/require-await": "off" |
| 54 | + } |
| 55 | +} |
0 commit comments