← スキル一覧に戻る

eslint-fix
by TrueNine
⭐ 1🍴 1📅 2025年12月3日
SKILL.md
name: eslint-fix description: TypeScript/ESLint error fix guide, helps AI quickly locate and fix common lint errors, prioritizing auto-fix commands for formatting issues.
Fix Workflow
Step 1: Run Lint Command
Before manual fixes, MUST run project lint command first:
pnpm lint
These issues are auto-fixed, no manual action needed:
- Import order
- Code formatting
- Whitespace/indentation
- Trailing commas
Step 2: Manually Fix Remaining Errors
Common Fix Rules
undefined Replacement
Use void 0 instead of undefined:
// bad
const value = undefined
// good
const value = void 0
No End-of-Line Comments
Comments MUST be above statements, absolutely forbidden at line end:
// bad
const name = 'test' // this is name
// good
// this is name
const name = 'test'
Nullish Coalescing
Prefer ?? over ||:
// bad
const value = input || 'default'
// good
const value = input ?? 'default'
Config Files
Do NOT modify eslint.config.js or eslint.config.ts unless necessary.
If config issues arise, only suggest modifications to user, do not edit config files directly.
Error Troubleshooting Priority
- Run
pnpm lintfor auto-fix - Check if above rules are violated
- Read specific error messages to locate issues
- If config adjustment needed, suggest user to modify manually
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です