|
4 | 4 | "project": "./tsconfig.json", |
5 | 5 | "tsconfigRootDir": "./" |
6 | 6 | }, |
7 | | - "plugins": ["@typescript-eslint"], |
| 7 | + "plugins": ["@typescript-eslint", "prettier"], |
8 | 8 | "extends": [ |
9 | 9 | "eslint:recommended", |
10 | 10 | "plugin:@typescript-eslint/eslint-recommended", |
11 | 11 | "plugin:@typescript-eslint/recommended", |
12 | 12 | "plugin:@typescript-eslint/recommended-requiring-type-checking", |
13 | | - // the following two lines *dis*able rules in eslint that conflict with prettier: |
14 | | - "prettier", |
15 | | - "prettier/@typescript-eslint" |
| 13 | + "prettier" |
16 | 14 | ], |
17 | 15 | "env": { |
18 | 16 | "node": true, |
19 | 17 | "es6": true |
20 | 18 | }, |
21 | 19 | "rules": { |
22 | 20 | // more accurate and less maintenance to let the type be deduced by TypeScript |
23 | | - "@typescript-eslint/explicit-function-return-type": 0, |
| 21 | + "@typescript-eslint/explicit-function-return-type": "off", |
24 | 22 | // “hoisting” is not an issue with ES6 |
25 | | - "@typescript-eslint/no-use-before-define": 0, |
| 23 | + "@typescript-eslint/no-use-before-define": "off", |
26 | 24 | // database model properties are never camelcase |
27 | | - "@typescript-eslint/camelcase": 0, |
| 25 | + "@typescript-eslint/camelcase": "off", |
28 | 26 | // false positives in idiomatic code https://github.com/eslint/eslint/issues/11899 |
29 | | - "require-atomic-updates": 0, |
| 27 | + "require-atomic-updates": "off", |
30 | 28 | // makes code less clear, no evidence it’s faster: https://bit.ly/2kAohRM |
31 | | - "@typescript-eslint/prefer-regexp-exec": 0, |
| 29 | + "@typescript-eslint/prefer-regexp-exec": "off", |
32 | 30 | // for this specific use case, we don’t prefer includes |
33 | | - "@typescript-eslint/prefer-includes": 0 |
| 31 | + "@typescript-eslint/prefer-includes": "off" |
34 | 32 | } |
35 | 33 | } |
0 commit comments