Skip to content

Add lint, format, and CI guardrails#5

Merged
flexphere merged 2 commits intomainfrom
setup-lint-format-ci
Mar 11, 2026
Merged

Add lint, format, and CI guardrails#5
flexphere merged 2 commits intomainfrom
setup-lint-format-ci

Conversation

@flexphere
Copy link
Owner

Summary

  • ESLint: @raycast/eslint-config + type-checked rules (no-floating-promises, no-misused-promises, await-thenable, no-explicit-any), import-x (import順序・重複検出), react-hooks
  • Prettier: format / format:check スクリプト追加、.prettierignore 作成
  • husky + lint-staged: pre-commit hook で変更ファイルに自動 lint & format
  • GitHub Actions CI: push/PR時に lint → format:check → typecheck → build を実行
  • tsconfig: esModuleInterop, skipLibCheck 追加
  • 既存コードの lint エラー修正 (import順序, floating promise)

Test plan

  • npm run lint がエラーなく通る
  • npm run format:check がエラーなく通る
  • npm run typecheck がエラーなく通る
  • npm run build が成功する
  • git commit 時に lint-staged が自動実行される
  • CI ワークフローが PR で実行される

🤖 Generated with Claude Code

flexphere and others added 2 commits March 11, 2026 14:52
- ESLint: type-checked rules, import ordering (import-x), react-hooks
- Prettier: format/format:check scripts, .prettierignore
- husky + lint-staged: pre-commit hook for auto lint & format
- GitHub Actions CI: lint → format:check → typecheck → build
- tsconfig: add esModuleInterop, skipLibCheck
- Fix existing lint issues (import order, floating promise)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Auto-generated file should not be formatted.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@flexphere flexphere merged commit 2a2071a into main Mar 11, 2026
1 check passed
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