Skip to content

Commit

Permalink
fix: detect dependencies in template literals in sort-enums
Browse files Browse the repository at this point in the history
  • Loading branch information
hugop95 committed Sep 8, 2024
1 parent 381e2d3 commit c9367eb
Show file tree
Hide file tree
Showing 2 changed files with 222 additions and 191 deletions.
4 changes: 4 additions & 0 deletions rules/sort-enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ export default createEslintRule<Options, MESSAGE_ID>({
if ('right' in nodeValue) {
checkNode(nodeValue.right)
}

if ('expressions' in nodeValue) {
nodeValue.expressions.forEach(checkNode)
}
}

checkNode(expression)
Expand Down
Loading

0 comments on commit c9367eb

Please sign in to comment.