Skip to content

Commit

Permalink
Fix tokens resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 committed May 6, 2024
1 parent 7481f44 commit e3d07b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-pears-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pandacss/eslint-plugin": patch
---

Fix tokens resolving
1 change: 1 addition & 0 deletions plugin/src/rules/no-unsafe-token-fn-usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const rule: Rule = createRule({

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

return context.report({
Expand Down

0 comments on commit e3d07b6

Please sign in to comment.