From 1e37ff26dd78468f6f67c2ac5587433f42d38870 Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Sat, 14 Dec 2024 01:05:14 +0000 Subject: [PATCH] fix(no-require-imports): disable no-require-imports except for ESM This rule became enabled by default in typescript-eslint v8. It's only useful for ES modules. --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index 6fa5813c..e7f7b42c 100644 --- a/index.ts +++ b/index.ts @@ -135,6 +135,7 @@ const config: Linter.Config = { "@typescript-eslint/no-invalid-void-type": ["error", {allowAsThisParameter: true}], "@typescript-eslint/no-loop-func": "error", "@typescript-eslint/no-loss-of-precision": "error", + "@typescript-eslint/no-require-imports": "off", "@typescript-eslint/no-non-null-assertion": "error", "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error", "@typescript-eslint/no-unnecessary-qualifier": "error",