fix(linter/no-template-curly-in-string): remove fixer#15387
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
810777f to
9745e86
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR removes the dangerous fix capability from the no-template-curly-in-string ESLint rule, converting it from a rule that auto-fixes violations to one that only reports diagnostics.
- Removed
dangerous_fixfrom the rule declaration - Replaced
ctx.diagnostic_with_dangerous_fix()withctx.diagnostic()to report violations without providing fixes - Removed test fixtures for fix validation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The fixer is just too unreliable here, and it's too easy for it to generate invalid syntax/code.
We don't check to see if the content between the `${` and `}` is valid, if is't not, is causes an invalid syntax tree.
9745e86 to
dac2a9c
Compare
Merge activity
|
CodSpeed Performance ReportMerging #15387 will not alter performanceComparing Summary
Footnotes
|

The fixer is just too unreliable here, and it's too easy for it to generate invalid syntax/code.
We don't check to see if the content between the
${ and} is valid, if is't not, is causes an invalid syntax tree.