From 57ceb9ce8909a3f231dbd4d87d9df108ed040fdc Mon Sep 17 00:00:00 2001 From: Naomi Date: Tue, 25 Jun 2024 18:39:10 -0700 Subject: [PATCH] feat: update rules for import package Mainly needed to allow .js extensions for typescript ESM support. --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 54d52b8..7f2651c 100644 --- a/index.js +++ b/index.js @@ -71,6 +71,11 @@ module.exports = { }, }, ], + // This is necessary due to the combination of TS and such + "import/no-unresolved": "allow", + "import/no-self-import": "error", + "import/no-anonymous-default-export": "warn", + "import/no-useless-oath-segments": "warn", "no-only-tests/no-only-tests": [ "warn", {