mirror of
				https://github.com/theoludwig/eslint-config-conventions.git
				synced 2025-10-21 07:35:11 +02:00 
			
		
		
		
	fix: relax @typescript-eslint/no-floating-promises for node:test
				
					
				
			Ref: https://github.com/nodejs/node/issues/51292
This commit is contained in:
		| @@ -388,7 +388,19 @@ export default typescriptESLint.config( | ||||
|         }, | ||||
|       ], | ||||
|  | ||||
|       "@typescript-eslint/no-floating-promises": "error", | ||||
|       "@typescript-eslint/no-floating-promises": [ | ||||
|         "error", | ||||
|         { | ||||
|           allowForKnownSafeCalls: [ | ||||
|             { | ||||
|               from: "package", | ||||
|               name: ["it", "describe"], | ||||
|               package: "node:test", | ||||
|             }, | ||||
|           ], | ||||
|         }, | ||||
|       ], | ||||
|  | ||||
|       "@typescript-eslint/no-for-in-array": "error", | ||||
|       "@typescript-eslint/no-invalid-void-type": "error", | ||||
|       "@typescript-eslint/no-misused-new": "error", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user