Commit bcd00c7
Fix ESLint autofix: clean stale node props, add template tag tokens
Two fixes for ESLint autofix compatibility:
1. When replacing JS nodes (TemplateLiteral/StaticBlock) with
GlimmerTemplate via Object.assign, delete leftover properties
(quasis, expressions, etc.) that confuse ESLint rules.
2. Add tokens for <template> and </template> tags to the token
stream so ESLint's SourceCode has full token coverage over
the template range. Without these, autofixes like
arrow-body-style produced mangled output.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent f27fc6e commit bcd00c7
2 files changed
Lines changed: 64 additions & 221 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
201 | 224 | | |
202 | 225 | | |
203 | 226 | | |
| |||
261 | 284 | | |
262 | 285 | | |
263 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
264 | 294 | | |
265 | 295 | | |
266 | 296 | | |
| |||
0 commit comments