|
1 | 1 | // @ts-check
|
2 | 2 | // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
|
3 |
| -const {defineConfig} = require("eslint-define-config"); |
| 3 | +const { defineConfig } = require("eslint-define-config"); |
4 | 4 |
|
5 | 5 | module.exports = defineConfig({
|
6 |
| - parser: "@typescript-eslint/parser", |
7 |
| - parserOptions: { |
8 |
| - project: "tsconfig.json", |
| 6 | + parser: "@typescript-eslint/parser", |
| 7 | + parserOptions: { |
| 8 | + project: "tsconfig.json", |
| 9 | + }, |
| 10 | + ignorePatterns: ["migrations", "src/generated", "**/*.spec.ts", "**/*.e2e.ts"], // optimize this |
| 11 | + extends: ["@rubiin/eslint-config-ts"], |
| 12 | + root: true, |
| 13 | + settings: { |
| 14 | + "import/resolver": { |
| 15 | + typescript: { |
| 16 | + alwaysTryTypes: true, |
| 17 | + project: "./tsconfig.json", |
| 18 | + }, |
9 | 19 | },
|
10 |
| - ignorePatterns: ["migrations", "src/generated", "**/*.spec.ts", "**/*.e2e.ts"], // optimize this |
11 |
| - extends: ["@rubiin/eslint-config-ts"], |
12 |
| - root: true, |
13 |
| - settings: { |
14 |
| - "import/resolver": { |
15 |
| - typescript: { |
16 |
| - alwaysTryTypes: true, |
17 |
| - project: "./tsconfig.json", |
18 |
| - }, |
19 |
| - }, |
20 |
| - }, |
21 |
| - rules: { |
22 |
| - "unicorn/prefer-module": "off", |
23 |
| - "@typescript-eslint/no-floating-promises": "off", |
24 |
| - "no-useless-constructor": "off", // optimize this |
25 |
| - "@typescript-eslint/require-await": "off", // optimize this |
26 |
| - "@typescript-eslint/no-unsafe-assignment": "off", // optimize this |
27 |
| - "@typescript-eslint/no-unsafe-member-access": "off", // optimize this |
28 |
| - "unicorn/prefer-top-level-await": "off", |
29 |
| - "max-nested-callbacks": "off", // rxjs is nested |
30 |
| - "@typescript-eslint/no-misused-promises": [ |
31 |
| - "error", |
32 |
| - { |
33 |
| - checksVoidReturn: false, |
34 |
| - }, |
35 |
| - ], |
36 |
| - "unicorn/prevent-abbreviations": [ |
37 |
| - "error", |
38 |
| - { |
39 |
| - ignore: [ |
40 |
| - "\\.e2e*", |
41 |
| - "\\.spec*", |
42 |
| - "\\.decorator*", |
43 |
| - "\\*idx*", |
44 |
| - ], |
45 |
| - allowList: { |
46 |
| - ProcessEnv: true, |
47 |
| - UUIDParam: true, |
48 |
| - }, |
49 |
| - }, |
| 20 | + }, |
| 21 | + rules: { |
| 22 | + "unicorn/prefer-module": "off", |
| 23 | + "@typescript-eslint/no-floating-promises": "off", |
| 24 | + "no-useless-constructor": "off", // optimize this |
| 25 | + "@typescript-eslint/require-await": "off", // optimize this |
| 26 | + "@typescript-eslint/no-unsafe-assignment": "off", // optimize this |
| 27 | + "@typescript-eslint/no-unsafe-member-access": "off", // optimize this |
| 28 | + "unicorn/prefer-top-level-await": "off", |
| 29 | + "max-nested-callbacks": "off", // rxjs is nested |
| 30 | + "@typescript-eslint/no-misused-promises": [ |
| 31 | + "error", |
| 32 | + { |
| 33 | + checksVoidReturn: false, |
| 34 | + }, |
| 35 | + ], |
| 36 | + "unicorn/prevent-abbreviations": [ |
| 37 | + "error", |
| 38 | + { |
| 39 | + ignore: [ |
| 40 | + "\\.e2e*", |
| 41 | + "\\.spec*", |
| 42 | + "\\.decorator*", |
| 43 | + "\\*idx*", |
50 | 44 | ],
|
51 |
| - }, |
| 45 | + allowList: { |
| 46 | + ProcessEnv: true, |
| 47 | + UUIDParam: true, |
| 48 | + }, |
| 49 | + }, |
| 50 | + ], |
| 51 | + }, |
52 | 52 | });
|
0 commit comments