Skip to content

chore(deps-dev): eslint-plugin-astro 1.7.0에서 3.1.0으로 올린다 - #133

Merged
CaesiumY merged 2 commits into
mainfrom
chore/eslint-plugin-astro-3
Aug 5, 2026
Merged

CaesiumY merged 2 commits into
mainfrom
chore/eslint-plugin-astro-3

Conversation

@CaesiumY

@CaesiumY CaesiumY commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Dependabot PR #96(1.7.0 → 3.0.1)을 대체합니다. #96은 base 충돌(CONFLICTING) 상태라 그대로 쓸 수 없어, 새 브랜치에서 최신인 3.1.0으로 올립니다.

건너뛰는 메이저 2번

버전 Breaking change
v2 ESLint 8/9 지원 중단(10 필수), CJS 엔트리 제거(ESM only), Node ^22.22.3 || ^24.16.0 || >=26.3.0
v3 astro-eslint-parser v3 — .astro 파싱이 @astrojs/compiler-rs(Rust)로 전환. astro/no-omitted-end-tags·astro/valid-compile을 recommended에서 제거

ESLint 10 요구사항은 #131에서 eslint 10.8.0으로 올라가 이미 충족된 상태입니다.

코드 변경이 없는 이유

eslint.config.js 수정 불필요 — configs.recommended가 v3에서도 flat config 배열로 그대로 제공됩니다.

configs: base, recommended, all, jsx-a11y-strict, jsx-a11y-recommended,
         flat/base, flat/recommended, flat/all, ...
recommended 타입: array(len 5)

eslint-plugin-jsx-a11y 추가 불필요 — v3에서 peer로 선언되긴 했지만 peerDependenciesMeta에 optional: true로 표시돼 있고(@typescript-eslint/parser, typescript-eslint도 동일), 이 레포는 jsx-a11y config를 쓰지 않습니다.

제거된 두 규칙(no-omitted-end-tags, valid-compile)은 eslint.config.js에서 개별 설정한 적이 없어 영향이 없습니다. valid-compile의 역할은 빌드 체인의 astro check가 이미 담당합니다.

검증

항목 결과
eslint (tracked 파일) 0 errors (38 warnings는 전부 CSS/폰트 등 File ignored 안내)
.astro 파싱 51 / 51 파일, astro-eslint-parser@3.0.0, 0 errors
pnpm audit 0건 유지

파서 교체가 핵심 변경이라, 린트가 .astro를 조용히 건너뛰지 않는지 파일 수까지 확인했습니다.

lockfile은 209줄 줄어듭니다(구 @astrojs/compiler 계열 정리).

Closes #96

Dependabot PR #96(1.7.0 → 3.0.1)을 대체한다. #96은 base 충돌 상태라
그대로 쓸 수 없고, 최신인 3.1.0으로 올린다.

메이저 2번을 건너뛴다.
- v2: ESLint 8/9 지원 중단(10 필수), CJS 엔트리 제거(ESM only)
- v3: astro-eslint-parser v3 — .astro 파싱이 @astrojs/compiler-rs(Rust)로
  전환. astro/no-omitted-end-tags·astro/valid-compile을 recommended에서 제거

eslint.config.js는 손대지 않는다. configs.recommended가 v3에서도 flat
config 배열로 그대로 제공된다.

peer로 추가된 eslint-plugin-jsx-a11y는 peerDependenciesMeta에서 optional로
표시돼 있고 jsx-a11y config를 쓰지 않으므로 devDependency에 추가하지 않는다.

검증:
- eslint(tracked 파일): 0 errors
- .astro 51개 전부 astro-eslint-parser@3.0.0으로 파싱, 0 errors
- pnpm audit: 0건 유지
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@claude

claude Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review: eslint-plugin-astro 1.7.0 → 3.1.0 (chore/eslint-plugin-astro-3)

Reviewed the diff (package.json + pnpm-lock.yaml only, 623-line lockfile diff). Overall this is a clean, well-scoped dependency bump with a clear PR description explaining the rationale (supersedes #96, skips v2 deliberately, documents the recommended-config rule changes).

Verified

  • Scope is tight: grepped the lockfile diff for top-level package changes outside eslint-plugin-astro's own dependency subtree (parser/compiler/emnapi/glob helpers) — found nothing unrelated. No incidental bumps snuck in.
  • eslint.config.js compatibility: confirmed it still spreads eslintPluginAstro.configs.recommended as a flat-config array (eslint.config.js:6), matching the PR's claim that v3 keeps this shape and no config changes are needed.
  • eslint-plugin-jsx-a11y peer: confirmed in the lockfile it's listed under peerDependenciesMeta as optional: true (not a hard peer), so correctly omitted from devDependencies since the config doesn't use jsx-a11y rules.

Potential issue — Node engine floor mismatch

eslint-plugin-astro@3.1.0's lockfile entry declares:

engines: {node: ^22.22.3 || ^24.16.0 || >=26.3.0}

but package.json's own engines.node still says ">=22.12.0" (unchanged by this PR). That range now overlaps a window (22.12.0–22.22.2) where this new devDependency doesn't actually satisfy the declared floor. In practice:

  • pnpm's default engine-strict is off (no .npmrc override here), so it'll only warn, not fail install.
  • CI's node-version: 22 (.github/workflows/ci.yml:23) resolves to the latest 22.x via actions/setup-node, which will be well past 22.22.3 by now, so CI is unaffected.

Still, worth either bumping package.json's engines.node to >=22.22.3 to keep it truthful, or adding a one-line note if it's being left broad on purpose — otherwise a contributor pinned to an older 22.x patch (per the currently-documented floor) could hit a confusing peer/engine warning on install.

Minor note (already disclosed, not a blocker)

The PR body is upfront that v3's recommended config drops astro/no-omitted-end-tags and astro/valid-compile. Worth double-checking in a follow-up whether those two rules were catching anything in the 51 .astro files that's now silently unenforced — not a reason to block this PR, just a place to glance at before considering lint coverage fully equivalent.

Not applicable

  • Test coverage: pure tooling/devDependency bump, no behavior change — no new tests expected.
  • Security: PR description states pnpm audit is clean (0 findings); diff itself only touches the astro-lint dependency subtree, nothing suspicious observed.
  • Performance: no runtime/build-output impact, lint-only tooling change.

Nice, focused PR — the only actionable item is the engines.node floor above.

eslint-plugin-astro 3.1.0이 요구하는 engines는
`^22.22.3 || ^24.16.0 || >=26.3.0`인데 package.json은 `>=22.12.0`이었다.
22.12.0~22.22.2 구간에 고정된 기여자는 설치 시 원인이 불분명한 경고를 만난다.

단순 하한 상향(`>=22.22.3`)으로는 부족하다. 이 범위는 24.0~24.15와
25.x, 26.0~26.2도 배제하는데 하한만 올리면 그 구간이 여전히 허용된다.
실제로 로컬 Node v24.11.0이 여기에 해당해 경고가 잡히지 않았다.
플러그인 범위를 그대로 반영해 실제 지원 구간만 남긴다.

CI는 영향 없다. ci.yml/astro.yml 모두 `node-version: 22`라
actions/setup-node가 최신 22.x(>=22.22.3)로 해소한다.

CLAUDE.md/AGENTS.md의 설치 안내도 함께 갱신한다(동기화 검사 통과).
@CaesiumY

CaesiumY commented Aug 4, 2026

Copy link
Copy Markdown
Owner Author

리뷰 반영했습니다.

1. Node engine floor mismatch — 수정 (b6c107b)

지적하신 대로 engines.node가 거짓말을 하고 있었습니다. 다만 제안하신 >=22.22.3으로는 부족해서 범위를 그대로 반영했습니다.

- "node": ">=22.12.0"
+ "node": "^22.22.3 || ^24.16.0 || >=26.3.0"

단순 하한 상향이 부족한 이유는 플러그인 범위가 24.024.15, 25.x, 26.026.2도 배제하기 때문입니다. >=22.22.3은 그 구간을 여전히 통과시킵니다. 실제로 제 로컬 Node가 v24.11.0이라 하한만 올렸을 때는 경고가 안 잡혔고, 정확한 범위로 바꾸고 나서야 드러났습니다.

WARN Unsupported engine: wanted: {"node":"^22.22.3 || ^24.16.0 || >=26.3.0"}
                        (current: {"node":"v24.11.0"})

CI 영향은 없습니다 — ci.yml/astro.yml 모두 node-version: 22라 actions/setup-node가 최신 22.x(≥22.22.3)로 해소합니다.

CLAUDE.md/AGENTS.md의 설치 안내도 함께 갱신했습니다(check-agent-docs-sync.mjs 통과).

2. 제거된 규칙 2개의 커버리지 — 확인 결과 조치 불필요

  • astro/no-omitted-end-tags는 v2.1.0에서 추가된 규칙입니다. 이 레포는 v1.7.0을 쓰고 있었으므로 애초에 존재한 적이 없고, 따라서 잃은 커버리지가 없습니다.
  • astro/valid-compile은 v1 recommended에 있었지만 업그레이드 전 lint가 이미 0 errors였습니다. 잡고 있던 신호가 없었다는 뜻입니다. 이 규칙의 역할(컴파일 유효성)은 빌드 체인의 astro check가 계속 담당합니다.

🤖 Addressed by Claude Code

@CaesiumY
CaesiumY merged commit a411005 into main Aug 5, 2026
2 checks passed
@CaesiumY
CaesiumY deleted the chore/eslint-plugin-astro-3 branch August 5, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant