From a9fdd0507e75242f2ff9bf58877b522306fe9de6 Mon Sep 17 00:00:00 2001 From: Bill Goehrig <33036725+wgoehrig@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:50:44 -0400 Subject: [PATCH] WIP: even more console.log --- dist/rules/no-internal-barrel-imports.js | 2 ++ tests/no-internal-barrel-imports.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/rules/no-internal-barrel-imports.js b/dist/rules/no-internal-barrel-imports.js index 6b03b5a..bb7cc3a 100644 --- a/dist/rules/no-internal-barrel-imports.js +++ b/dist/rules/no-internal-barrel-imports.js @@ -131,6 +131,7 @@ const rule = { } : {}; + console.log("CREATED"); return { ImportDeclaration(node) { /** @param {ts.Symbol | undefined} symbol */ @@ -167,6 +168,7 @@ const rule = { if (!importNodeTs) throw Error("equivalent typescript node could not be found"); + console.log(`${importNodeTs.importClause} && ${importNodeTs.importClause?.isTypeOnly}`); if (importNodeTs.importClause && importNodeTs.importClause.isTypeOnly) return; diff --git a/tests/no-internal-barrel-imports.js b/tests/no-internal-barrel-imports.js index fdd36cc..7a7b7ac 100644 --- a/tests/no-internal-barrel-imports.js +++ b/tests/no-internal-barrel-imports.js @@ -17,6 +17,7 @@ const fixtureDir = path.join( "fixtures", "no-internal-barrel-imports" ); +console.log(`fixtureDir: ${fixtureDir}`); const ruleTester = new ESLintTester({ languageOptions: { @@ -31,6 +32,7 @@ const ruleTester = new ESLintTester({ }, }); +console.log("Running tests for no-internal-barrel-imports"); ruleTester.run( "no-internal-barrel-imports", NoInternalBarrelImportsESLintRule,