|
23 | 23 | }, |
24 | 24 | "linter": { |
25 | 25 | "enabled": true, |
26 | | - // "domains": { |
27 | | - // "project": "recommended" |
28 | | - // }, |
| 26 | + "domains": { |
| 27 | + "project": "recommended" |
| 28 | + }, |
29 | 29 | "rules": { |
30 | 30 | "recommended": true, |
31 | | - // this thing lags super hard |
32 | | - // "nursery": { |
33 | | - // "noFloatingPromises": "error" |
34 | | - // }, |
| 31 | + "nursery": { |
| 32 | + "useConsistentTypeDefinitions": "error", |
| 33 | + "noFloatingPromises": "error", |
| 34 | + "noUnnecessaryConditions": "error" |
| 35 | + }, |
35 | 36 | "complexity": { |
36 | 37 | "useSimplifiedLogicExpression": "error" |
37 | 38 | }, |
|
40 | 41 | "noDoubleEquals": "error" |
41 | 42 | }, |
42 | 43 | "style": { |
43 | | - "useImportType": "error", |
| 44 | + "useImportType": { |
| 45 | + "level": "error", |
| 46 | + "options": { |
| 47 | + "style": "separatedType" |
| 48 | + } |
| 49 | + }, |
44 | 50 | "noNonNullAssertion": "off", |
45 | 51 | "noParameterAssign": "error", |
46 | 52 | "useAsConstAssertion": "error", |
|
64 | 70 | }, |
65 | 71 | "correctness": { |
66 | 72 | "noUnusedVariables": "warn", |
67 | | - "noUnusedImports": "error" |
| 73 | + "noUnusedImports": "error", |
| 74 | + "noUndeclaredDependencies": "error", |
| 75 | + "useImportExtensions": { |
| 76 | + "level": "error", |
| 77 | + "options": { |
| 78 | + "forceJsExtensions": true |
| 79 | + } |
| 80 | + } |
68 | 81 | } |
69 | 82 | } |
70 | 83 | }, |
71 | 84 | "assist": { |
72 | 85 | "actions": { |
73 | 86 | "source": { |
74 | | - "organizeImports": "on" |
| 87 | + // Organizes imports and splits out type imports into a separate line |
| 88 | + "organizeImports": { |
| 89 | + "level": "on", |
| 90 | + "options": { |
| 91 | + "groups": [{ "type": true }] |
| 92 | + } |
| 93 | + } |
75 | 94 | } |
76 | 95 | } |
77 | 96 | }, |
|
92 | 111 | "includes": ["clients/*/src/generated/**"], |
93 | 112 | "linter": { |
94 | 113 | "rules": { |
| 114 | + "nursery": { |
| 115 | + "noUnnecessaryConditions": "off" |
| 116 | + }, |
95 | 117 | "suspicious": { |
96 | 118 | "noEmptyInterface": "off" |
97 | 119 | }, |
|
0 commit comments