Repository navigation
build(lint): enable typescript-style linter rules - #41
Conversation
Enable oxlint no-empty and typescript/switch-exhaustiveness-check. Make ls-lint reject utils, helpers, manager, common and formatter tokens in .ts and .tsx file names. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review summary (read-only)
🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: af9138362e
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Reject forbidden words used as a sub-extension (string.utils.ts) and accept a leading underscore (_internal.ts) in .ts and .tsx file names. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
|
Review summary: no blocking findings.
No inline comments were posted. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 498a2ace15
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
|
Review summary: I found no blocking issues and posted no inline comments.
🤖 Generated with Claude Code |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Revert .ls-lint.yml to origin/main. The file-name rule stays as prose in the typescript-style skill. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
|
Review summary: no findings. This PR changes only Blocking findings (P0/P1): 0 |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
.oxlintrc.jsonにno-emptyとtypescript/switch-exhaustiveness-checkを追加した..ls-lint.ymlは変更しない(origin/mainと同一).ファイル名の語彙の検査は agent-config の ast-grep 規則へ移り,ls-lint はファイル名の形だけを見る.規則と置き換える文章
文章の場所は agent-config の
agents/skills/typescript-style/references/からの相対パス..oxlintrc.jsonno-empty(allowEmptyCatch: false)errors.md「Do not swallow errors with an emptycatch」.oxlintrc.jsontypescript/switch-exhaustiveness-check(型情報つき.pnpm run typecheckの--type-awareで実行)types.md「Handle a union with an exhaustiveswitch…」の網羅性(satisfies neverの形は文章に残る)このテンプレートで有効化しない規則
utils/helpers/manager/common/formatterなどの禁止)は,このテンプレートの ls-lint では検査しない.ls-lint に否定の構文がなく,長い複合拡張子の奥にある禁止語も検出できないため.agent-config の ast-grep 規則が担う(別の担当が実装する).対応する文章(code_style.md「Name files by the domain or action…」,tooling.md「Avoidutils.tsandhelpers.ts」,code_style.md「Avoidmanager…」のファイル名の部分)は,その規則が入るまで typescript-style に残る.違反数(修正前)
no-emptytypescript/switch-exhaustiveness-check検証
catch {}と網羅していないswitchを各規則が検出することを確認した.一時ファイルはリポジトリに含めていない.pnpm run format:check,pnpm run lint,pnpm run typecheck,pnpm run testが成功した.git diff origin/mainは.oxlintrc.jsonだけで,.ls-lint.yml(生成した正規表現,.test/.specのキー,禁止語の副拡張子のキー)の変更は残っていない.Refs furedea/agent-config#74
🤖 Generated with Claude Code