|
1 | 1 | {
|
2 | 2 | "root": true,
|
3 | 3 | "parser": "@typescript-eslint/parser",
|
4 |
| - "plugins": ["@typescript-eslint", "prettier"], |
| 4 | + "plugins": ["@typescript-eslint", "prettier", "unicorn"], |
| 5 | + "parserOptions": { |
| 6 | + "project": "./tsconfig.json" |
| 7 | + }, |
5 | 8 | "extends": [
|
6 | 9 | "eslint:recommended",
|
| 10 | + "plugin:import/recommended", |
| 11 | + "plugin:import/typescript", |
7 | 12 | "plugin:@typescript-eslint/eslint-recommended",
|
8 | 13 | "plugin:@typescript-eslint/recommended",
|
9 | 14 | "prettier",
|
10 |
| - "plugin:unicorn/recommended" |
| 15 | + "plugin:unicorn/recommended", |
| 16 | + "plugin:n/recommended", |
| 17 | + "plugin:promise/recommended", |
| 18 | + "plugin:ava/recommended", |
| 19 | + "plugin:you-dont-need-lodash-underscore/all" |
11 | 20 | ],
|
12 | 21 | "rules": {
|
13 | 22 | "no-console": "error",
|
14 |
| - "@typescript-eslint/no-unused-vars": 0 |
| 23 | + "@typescript-eslint/no-unused-vars": 0, |
| 24 | + "require-await": "off", |
| 25 | + "@typescript-eslint/require-await": "error", |
| 26 | + "import/order": [ |
| 27 | + 2, |
| 28 | + { |
| 29 | + "newlines-between": "always", |
| 30 | + "alphabetize": { |
| 31 | + "order": "asc", |
| 32 | + "caseInsensitive": true |
| 33 | + } |
| 34 | + } |
| 35 | + ] |
15 | 36 | },
|
16 | 37 | "overrides": [
|
17 | 38 | {
|
|
26 | 47 | "unicorn/no-array-for-each": 0
|
27 | 48 | }
|
28 | 49 | }
|
29 |
| - ] |
| 50 | + ], |
| 51 | + "settings": { |
| 52 | + "import/resolver": { |
| 53 | + "typescript": true, |
| 54 | + "node": true |
| 55 | + } |
| 56 | + } |
30 | 57 | }
|
0 commit comments