Skip to content

Commit e3d07b6

Browse files
committed
Fix tokens resolving
1 parent 7481f44 commit e3d07b6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/khaki-pears-happen.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 tokens resolving

plugin/src/rules/no-unsafe-token-fn-usage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const rule: Rule = createRule({
7575

7676
const sendReport = (node: any, value: string) => {
7777
const tkImports = extractTokens(value)
78+
if (!tkImports.length) return
7879
const token = tkImports[0].replace(/^[^.]*\./, '')
7980

8081
return context.report({

0 commit comments

Comments
 (0)