← Back to list

lint-typecheck
by monam2
⭐ 0🍴 0📅 Jan 19, 2026
SKILL.md
name: Lint & TypeCheck description: ESLint 및 TypeScript 정적 분석 스킬
Lint & TypeCheck 스킬
명령어
Lint 실행
pnpm lint
Lint 자동 수정
pnpm lint --fix
TypeScript 타입 검사
pnpm typecheck
# 또는
tsc --noEmit
ESLint 설정
.eslintrc.json
{
"extends": ["next/core-web-vitals", "next/typescript", "prettier"],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "warn",
"prefer-const": "error"
}
}
Prettier 설정
.prettierrc
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100
}
package.json 스크립트
{
"scripts": {
"lint": "next lint",
"lint:fix": "next lint --fix",
"typecheck": "tsc --noEmit",
"format": "prettier --write ."
}
}
CI 통합
GitHub Actions에서 PR마다 실행:
- run: pnpm lint
- run: pnpm typecheck
자주 발생하는 에러
1. unused-vars
// ❌
const unused = "never used";
// ✅ 의도적 무시
const _intentionallyUnused = "documented";
2. no-explicit-any
// ❌
function process(data: any) {}
// ✅
function process(data: unknown) {}
function process(data: AnalysisResult) {}
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon