Skip to content

Commit 4450bd3

Browse files
Rel1cxCopilot
andauthored
Update packages/plugins/eslint-plugin-react-x/src/rules/jsx-dollar.ts
Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
1 parent 5f8ecbd commit 4450bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugins/eslint-plugin-react-x/src/rules/jsx-dollar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
5656
line: pos.line,
5757
},
5858
start: {
59-
column: pos.column - 1,
59+
column: child.loc.start.column + child.value.length - 1,
6060
line: pos.line,
6161
},
6262
},

0 commit comments

Comments
 (0)