File tree 1 file changed +3
-5
lines changed
packages/eslint-plugin/lib/configs 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export const recommendedConfig = defineConfig({
41
41
"@typescript-eslint/no-unused-vars" : "off" ,
42
42
"unused-imports/no-unused-imports" : "error" ,
43
43
"unused-imports/no-unused-vars" : "error" ,
44
- "@typescript-eslint/no-floating-promises" : "error" ,
44
+ // ☢️ Rules that require type information must be added to the `.ts` overrides section below
45
45
} ,
46
46
env : {
47
47
node : true ,
@@ -54,8 +54,6 @@ export const recommendedConfig = defineConfig({
54
54
ecmaFeatures : {
55
55
jsx : true ,
56
56
} ,
57
- // Introduced to define the parserOptions.project property for @typescript -eslint/no-floating-promises
58
- project : [ "tsconfig.json" ] ,
59
57
} ,
60
58
settings : {
61
59
react : {
@@ -69,9 +67,9 @@ export const recommendedConfig = defineConfig({
69
67
project : "tsconfig.json" ,
70
68
} ,
71
69
rules : {
72
- // Note: disable the base rule as it can report incorrect errors
73
- "no-return-await" : "off" ,
70
+ "no-return-await" : "off" , // Disable the base rule as it can report incorrect errors
74
71
"@typescript-eslint/return-await" : "error" ,
72
+ "@typescript-eslint/no-floating-promises" : "error" ,
75
73
} ,
76
74
} ,
77
75
] ,
You can’t perform that action at this time.
0 commit comments