Skip to main content
lint-format Linting and formatting setup with ESLint, Prettier, Ruff, Black, and EditorConfig. Use when user asks to "set up linting", "configure ESLint", "add Prettier", "format code", "set up Ruff", "fix lint errors", "add editorconfig", or any code quality tooling tasks.
설치로 이동 Skills Marketplace 커뮤니티가 만든 AI 스킬을 발견하고 탐색하세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/1Mangesh1/dev-skills-collection --skill lint-format명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Zip 다운로드 다운로드 중... 이 저장소의 다른 Skills REST API design patterns, structure, and best practices. Use when user asks to "design a REST API", "create API endpoints", "write OpenAPI spec", "design API routes", "add pagination to API", "version an API", "create API schema", "design webhook endpoints", "structure API responses", "implement HATEOAS", "design API errors", "API versioning", "API deprecation", "rate limiting design", or mentions REST API design, endpoint naming, HTTP methods, status codes, API best practices, request/response design, or API documentation.
Caching strategies and implementation patterns. Use when user asks to "add caching", "cache API responses", "set up CDN caching", "configure HTTP caching", "implement memoization", "cache database queries", "set cache headers", "invalidate cache", "design cache layer", "reduce API latency", "cache warming", "cache busting", "distributed caching", "Redis caching", "edge caching", or mentions caching strategies, cache invalidation, TTL, cache-aside, write-through, write-behind, CDN, browser caching, or memoization.
CI/CD pipeline design, setup, and optimization. Use when user asks to "set up CI/CD", "create a pipeline", "configure Jenkins", "set up GitLab CI", "create CircleCI config", "automate deployments", "create build pipeline", "set up continuous deployment", "configure pipeline stages", "add pipeline caching", "pipeline security", "secret management", "artifact management", "GitHub Actions workflow", "deployment strategies", "canary deployment", or mentions CI/CD pipelines, continuous integration, continuous deployment, build automation, deployment pipelines, or pipeline optimization.
관련 직업
SOC
name lint-format description Linting and formatting setup with ESLint, Prettier, Ruff, Black, and EditorConfig. Use when user asks to "set up linting", "configure ESLint", "add Prettier", "format code", "set up Ruff", "fix lint errors", "add editorconfig", or any code quality tooling tasks.
Lint & Format
Set up linting and formatting for consistent code quality.
ESLint (JavaScript/TypeScript)
Setup (Flat Config - ESLint 9+)
npm init @eslint/config@latest
npm install -D eslint @eslint/js typescript-eslint
import js from "@eslint/js" ;
import tseslint from "typescript-eslint" ;
export default [
js.configs .recommended ,
...tseslint.configs .recommended ,
{
rules : {
"no-unused-vars" : "off" ,
"@typescript-eslint/no-unused-vars" : ["error" , { argsIgnorePattern : "^_" }],
"@typescript-eslint/no-explicit-any" : "warn" ,
"no-console" : ["warn" , { allow : [ , ] }],
},
},
{
: [ , , ],
},
];
"warn"
"error"
ignores
"dist/"
"node_modules/"
"*.config.js"
With React npm install -D eslint-plugin-react eslint-plugin-react-hooks
import react from "eslint-plugin-react" ;
import reactHooks from "eslint-plugin-react-hooks" ;
export default [
{
plugins : { react, "react-hooks" : reactHooks },
rules : {
...reactHooks.configs .recommended .rules ,
"react/react-in-jsx-scope" : "off" ,
"react/prop-types" : "off" ,
},
settings : {
react : { version : "detect" },
},
},
];
Run npx eslint .
npx eslint --fix .
npx eslint src/
npx eslint "src/**/*.{ts,tsx}"
Prettier
Setup npm install -D prettier eslint-config-prettier
{
"semi" : true ,
"singleQuote" : false ,
"tabWidth" : 2 ,
"trailingComma" : "all" ,
"printWidth" : 100 ,
"arrowParens" : "always" ,
"endOfLine" : "lf"
}
// .prettierignore
dist
node_modules
coverage
*.min.js
pnpm-lock.yaml
ESLint + Prettier
import prettier from "eslint-config-prettier" ;
export default [
prettier,
];
Run npx prettier --write .
npx prettier --check .
npx prettier --write "src/**/*.{ts,tsx,css,json}"
Ruff (Python - Linter + Formatter)
Setup
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E" ,
"W" ,
"F" ,
"I" ,
"N" ,
"UP" ,
"B" ,
"SIM" ,
"TCH" ,
]
ignore = [
"E501" ,
]
[tool.ruff.lint.isort]
known-first-party = ["myproject" ]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
Run
ruff check .
ruff check --fix .
ruff format .
ruff format --check .
Black (Python Formatter) pip install black
black .
black --check .
black --diff .
[tool.black]
line-length = 100
target-version = ["py312" ]
mypy (Python Type Checker) pip install mypy
mypy src/
mypy --strict src/
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
EditorConfig
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.{js,ts,tsx,json,css,yml,yaml}]
indent_style = space
indent_size = 2
[*.py]
indent_style = space
indent_size = 4
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab
Pre-commit Integration
npm install -D husky lint-staged
npx husky init
npx lint-staged
{
"lint-staged" : {
"*.{ts,tsx}" : [ "eslint --fix" , "prettier --write" ] ,
"*.{json,md,yml}" : [ "prettier --write" ] ,
"*.py" : [ "ruff check --fix" , "ruff format" ]
}
}
Python pre-commit
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: ruff
args: [--fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
pip install pre-commit
pre-commit install
pre-commit run --all-files
package.json Scripts {
"scripts" : {
"lint" : "eslint ." ,
"lint:fix" : "eslint --fix ." ,
"format" : "prettier --write ." ,
"format:check" : "prettier --check ." ,
"typecheck" : "tsc --noEmit" ,
"check" : "npm run lint && npm run format:check && npm run typecheck"
}
}
Reference For CI integration and configuration recipes: references/configs.md