Skip to content

Upgrade ember-estree to ^0.6.10#231

Merged
NullVoxPopuli merged 2 commits into
ember-tooling:mainfrom
NullVoxPopuli-ai-agent:upgrade-ember-estree-0.6.10
Jul 3, 2026
Merged

Upgrade ember-estree to ^0.6.10#231
NullVoxPopuli merged 2 commits into
ember-tooling:mainfrom
NullVoxPopuli-ai-agent:upgrade-ember-estree-0.6.10

Conversation

@NullVoxPopuli-ai-agent

Copy link
Copy Markdown

Fixes #230

What

Bumps ember-estree from ^0.6.3 to ^0.6.10, which includes NullVoxPopuli/ember-estree#69.

Why

ember-estree < 0.6.10 backslash-escaped ` and $ when building its same-length placeholder JS for <template> regions. Each escape grew the placeholder by one character, and once the growth exceeded the padding slack (11 chars for class-member templates, 19 for expression templates) the placeholder no longer lined up with the original region. The range match failed silently, the raw static{...} placeholder leaked into the final AST — which is what @typescript-eslint/no-unused-expressions flagged in #230 — and every offset after the template shifted.

The #230 snippet has exactly 12 backticks across its two comments, one over the class-member limit. This was the same root cause as #226, which was fixed in this repo's own transformForLint copy of the placeholder logic (1e7c572); the ember-estree copy had no length guard, so it failed silently instead of loudly.

Changes

  • ember-estree ^0.6.3^0.6.10
  • End-to-end regression test running a real Linter pass with no-unused-expressions on the exact snippet from typescript-eslint error on a file #230
  • One inline snapshot updated: the lockfile refresh pulls newer oxc-parser/content-tag within ember-estree's ranges, which rewords a syntax-error diagnostic (× Unexpected eof× Expected ',', got '<eof>')

🤖 Generated with Claude Code

NullVoxPopuli and others added 2 commits July 3, 2026 11:37
ember-estree < 0.6.10 backslash-escaped backticks and dollar signs when
building its same-length placeholder JS. Each escape grew the placeholder
by one character, and once the growth exceeded the padding slack (11
chars for class-member templates) the placeholder no longer matched the
original <template> region: the raw static block leaked into the AST and
no-unused-expressions fired on it, with all offsets after the template
shifted. Fixed upstream in NullVoxPopuli/ember-estree#69 by blanking the
characters instead of escaping.

Adds an end-to-end regression test with the exact snippet from ember-tooling#230.

The refreshed lockfile pulls newer oxc-parser/content-tag within
ember-estree's ranges, which rewords one syntax-error diagnostic; the
inline snapshot is updated to match.

Fixes ember-tooling#230

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ember-estree 0.6.10 requires content-tag ^4.2.0, whose newer swc rewords
the parse diagnostic ("× Unexpected eof" → "× Expected ',', got '<eof>'")
and shifts the reported column by one.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@NullVoxPopuli NullVoxPopuli added the bug Something isn't working label Jul 3, 2026
@NullVoxPopuli NullVoxPopuli merged commit e64037a into ember-tooling:main Jul 3, 2026
39 of 40 checks passed
@NullVoxPopuli NullVoxPopuli deleted the upgrade-ember-estree-0.6.10 branch July 3, 2026 15:50
@github-actions github-actions Bot mentioned this pull request Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

typescript-eslint error on a file

2 participants