Skip to content

build(lint): set no-unused-vars ignoreRestSiblings - #111

Merged
furedea merged 1 commit into
mainfrom
build/no-unused-vars-ignore-rest-siblings
Nov 10, 2026
Merged

furedea merged 1 commit into
mainfrom
build/no-unused-vars-ignore-rest-siblings

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

概要

.oxlintrc.json の rules に "no-unused-vars": ["warn", { "ignoreRestSiblings": true }] を追加します.effort-or-luck と同じ 1 行の形で,同じ位置(max-params の次,typescript/* の前)に置きます.

理由

  • no-unused-vars は oxlint の correctness カテゴリで既定で有効です.
  • リポジトリ間の差は ignoreRestSiblings だけでした.これを有効にすると,const { password, ...safeUser } = user; のようなキーを除外する書き方が警告になりません.
  • effort-or-luck はすでにこの設定を持ち,テンプレートにも並行する PR で入ります.すべての TS リポジトリで同じ書き方にそろえます.

削除した ignore

なし.

新規ルールの違反

なし(pnpm run lint --deny-warnings は 0 warnings / 0 errors).

検証

  • pnpm run format:check,pnpm run lint,pnpm run test(128 件),pnpm run knip は dev shell で成功.
  • pnpm run typecheck は dev shell の Node が 22.23.3(Astro の要求は 22.23.4 以上)のためローカルでは実行できず,CI で確認します.

Refs furedea/agent-config#74

🤖 Generated with Claude Code

Allow the key-omitting pattern const { password, ...safeUser } = user.

Every TypeScript repo now configures the rule the same way.

Refs furedea/agent-config#74

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@furedea

furedea commented Nov 10, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T17:02:41.391617Z
We couldn’t complete this review. Comment @codex review to try again.
d39c91f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

@github-actions

Copy link
Copy Markdown

Review summary

No findings. The one-line change adds "no-unused-vars": ["warn", { "ignoreRestSiblings": true }] to .oxlintrc.json.

  • Severity is unchanged. oxlint already defaults this correctness rule to warn, and pnpm run lint uses --deny-warnings, so an unused variable still fails CI.
  • The only change in behavior is that siblings of a rest destructure, such as const { a, ...rest } = obj, are no longer flagged. That is the intended change.
  • No tests are needed for a lint-config change.

Blocking findings: 0

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
furedea-com d39c91f Commit Preview URL

Branch Preview URL
Nov 10 2026, 05:03 PM

@furedea
furedea merged commit d087582 into main Nov 10, 2026
22 of 24 checks passed
@furedea
furedea deleted the build/no-unused-vars-ignore-rest-siblings branch November 10, 2026 17:07
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