Skip to main content

lint

Auto-fix all formatting issues in the docs-builder repo — runs dotnet format for C# and npm fmt:write for TypeScript/JS. Use when the user asks to fix formatting, lint the code, or when a pre-commit hook fails due to formatting.

소스 정보

저장소
elastic/docs-builder
최근 소스 활동
2026년 4월 28일 11:50
감지된 SKILL.md 언어
영어
스타
25
포크
46

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
lint
description
Auto-fix all formatting issues in the docs-builder repo — runs dotnet format for C# and npm fmt:write for TypeScript/JS. Use when the user asks to fix formatting, lint the code, or when a pre-commit hook fails due to formatting.
# Lint Skill Fixes all formatting issues across C# and TypeScript in the docs-builder repo. ## Steps ### 1. Fix C# formatting ```bash dotnet format ``` This applies the project's editorconfig and code style rules to all C# files. ### 2. Fix TypeScript/JS formatting ```bash cd src/Elastic.Documentation.Site && npm run fmt:write ``` This runs Prettier on all frontend source files. ### 3. Report results After both commands complete: - If files were changed: list which files were reformatted - If nothing changed: confirm "No formatting issues found" ## Notes - This skill fixes files in place but does **not** commit - Run this before `/commit` if you see formatting errors in build output or pre-commit hook failures - Formatting rules are enforced by Husky.Net pre-commit hooks (prettier + eslint for TS, dotnet-lint on pre-push for C#) - `dotnet format` is also available as `./build.sh lint` for the full lint pipeline
GitHub에서 보기