|
| 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-requiring-type-checking", |
| 10 | + "plugin:@typescript-eslint/recommended" |
| 11 | + ], |
| 12 | + "parser": "@typescript-eslint/parser", |
| 13 | + "parserOptions": { |
| 14 | + "ecmaVersion": 6, |
| 15 | + "project": "./tsconfig.json", |
| 16 | + "sourceType": "module" |
| 17 | + }, |
| 18 | + "plugins": [ |
| 19 | + "eslint-plugin-deprecation", |
| 20 | + "eslint-plugin-no-null", |
| 21 | + "@typescript-eslint" |
| 22 | + ], |
| 23 | + "root": true, |
| 24 | + "rules": { |
| 25 | + // Configure additional checks |
| 26 | + "comma-spacing": "error", |
| 27 | + "deprecation/deprecation": "error", |
| 28 | + "no-null/no-null": "error", |
| 29 | + "eol-last": "error", |
| 30 | + "indent": ["error", "tab", {"SwitchCase": 1}], |
| 31 | + "no-console": "error", |
| 32 | + "no-trailing-spaces": "error", |
| 33 | + "prefer-const": ["error", {"ignoreReadBeforeAssign": true}], |
| 34 | + "semi": "error", |
| 35 | + "space-infix-ops": "error", |
| 36 | + "@typescript-eslint/ban-tslint-comment": "error", |
| 37 | + |
| 38 | + // Disable some recommended checks (until we can address them) |
| 39 | + "no-cond-assign": "off", |
| 40 | + "no-fallthrough": "off", |
| 41 | + "no-prototype-builtins": "off", |
| 42 | + "no-useless-escape": "off", |
| 43 | + "prefer-spread": "off", |
| 44 | + "@typescript-eslint/ban-types": "off", |
| 45 | + "@typescript-eslint/no-explicit-any": "off", |
| 46 | + "@typescript-eslint/no-inferrable-types": "off", |
| 47 | + "@typescript-eslint/no-unused-vars": "off" |
| 48 | + } |
| 49 | + } |
0 commit comments