Skip to content

Commit

Permalink
WIP: even more console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
wgoehrig committed Oct 22, 2024
1 parent e2e3cd8 commit a9fdd05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/rules/no-internal-barrel-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ const rule = {
}
: {};

console.log("CREATED");
return {
ImportDeclaration(node) {
/** @param {ts.Symbol | undefined} symbol */
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions tests/no-internal-barrel-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const fixtureDir = path.join(
"fixtures",
"no-internal-barrel-imports"
);
console.log(`fixtureDir: ${fixtureDir}`);

const ruleTester = new ESLintTester({
languageOptions: {
Expand All @@ -31,6 +32,7 @@ const ruleTester = new ESLintTester({
},
});

console.log("Running tests for no-internal-barrel-imports");
ruleTester.run(
"no-internal-barrel-imports",
NoInternalBarrelImportsESLintRule,
Expand Down

0 comments on commit a9fdd05

Please sign in to comment.