Skip to content

Commit

Permalink
Closes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 committed May 18, 2024
1 parent 7421387 commit 0a065fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twenty-queens-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pandacss/eslint-plugin": patch
---

Fix empty imports
2 changes: 1 addition & 1 deletion plugin/src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const getSyncOpts = (context: RuleContext<any, any>) => {
export const getImportSpecifiers = (context: RuleContext<any, any>) => {
const specifiers: { specifier: TSESTree.ImportSpecifier; mod: string }[] = []

context.sourceCode.ast.body.forEach((node) => {
context.sourceCode?.ast.body.forEach((node) => {
if (!isImportDeclaration(node)) return

const mod = node.source.value
Expand Down

0 comments on commit 0a065fe

Please sign in to comment.