Skip to content

Commit 0a065fe

Browse files
committed
Closes #81
1 parent 7421387 commit 0a065fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/twenty-queens-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@pandacss/eslint-plugin": patch
3+
---
4+
5+
Fix empty imports

plugin/src/utils/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const getSyncOpts = (context: RuleContext<any, any>) => {
3939
export const getImportSpecifiers = (context: RuleContext<any, any>) => {
4040
const specifiers: { specifier: TSESTree.ImportSpecifier; mod: string }[] = []
4141

42-
context.sourceCode.ast.body.forEach((node) => {
42+
context.sourceCode?.ast.body.forEach((node) => {
4343
if (!isImportDeclaration(node)) return
4444

4545
const mod = node.source.value

0 commit comments

Comments
 (0)