lint
Original:🇺🇸 English
Translated
[DevOps & Infra] Run linters and fix issues for backend or frontend
1installs
Sourceduc01226/easyplatform
Added on
NPX Install
npx skill4agent add duc01226/easyplatform lintTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Run linting: $ARGUMENTS
Instructions
-
Parse arguments:
- or
backend→ Run .NET analyzersbe - or
frontend→ Run ESLint/Prettierfe - → Auto-fix issues where possible
fix - No argument → Run both, report only
-
For Backend (.NET):bash
dotnet build EasyPlatform.sln /p:TreatWarningsAsErrors=false- Check for analyzer warnings (CA*, IDE*, etc.)
- Report code style violations
-
For Frontend (Angular/Nx):bash
cd src/Frontend nx lint playground-text-snippet nx lint platform-coreWith auto-fix:bashnx lint playground-text-snippet --fix npx prettier --write "apps/**/*.{ts,html,scss}" "libs/**/*.{ts,html,scss}" -
Report format:
- Group issues by severity (error, warning, info)
- Show file paths and line numbers
- Suggest fixes for common issues
-
Auto-fix behavior:
- If argument provided, apply safe auto-fixes
fix - Report what was fixed vs what needs manual attention
- If
IMPORTANT Task Planning Notes
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed