lint-ruleslisted
Install: claude install-skill ozzy-labs/opshub
# lint-rules - リンター・フォーマッターコマンド対応表
lint スキルから参照される。対象ファイルの拡張子に応じて以下のコマンドを実行する。
## コマンド対応表
| 拡張子 | コマンド |
|--------|---------|
| `.ts`, `.tsx`, `.js`, `.jsx`, `.json` | `biome check --write <file>` |
| `.md` | `markdownlint-cli2 --fix <file>` |
| `.yaml`, `.yml` | `yamlfmt <file> && yamllint -c .yamllint.yaml <file>` |
| `.toml` | `taplo format <file>` |
| `.sh` | `shfmt -w <file> && shellcheck <file>` |
## 型チェック
TypeScript / JavaScript / Astro ファイルが変更された場合、lint 完了後に型チェックを実行する:
```bash
pnpm run typecheck
```
## セキュリティ
全ファイルを対象に Gitleaks でシークレット検出を実行する:
```bash
gitleaks detect --no-banner
```
全ファイルを対象に Trivy で脆弱性・シークレットスキャンを実行する:
```bash
trivy fs --scanners vuln,secret --exit-code 1 --no-progress .
```