Igniteui Angular Linting
Testing & Qualityigniteui-angular-lintingIgniteui Angular Linting is an Agent Skill for testing & quality published in the IgniteUI/igniteui-angular repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Quick-reference for linting the core Ignite UI for Angular library. Covers the combined lint command (`lint:lib`), ESLint for TypeScript and templates, and Stylelint for Sass/SCSS styles. Use when an agent needs to run the main linters, fix lint errors, or understand the primary lint configuration. Do NOT use for building — use igniteui-angular-build instead. Do NOT use for running tests — use igniteui-angular-testing instead.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/IgniteUI/igniteui-angular/blob/HEAD/.github/skills/igniteui-angular-linting/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/igniteui-angular-linting, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Ignite UI for Angular — Linting
Quick-reference card for the core lint commands for the main library in this repository.
Prerequisites
- Run
npm installat the repo root.
Commands
| Command | What it runs |
|---|---|
npm run lint:lib | ESLint + Stylelint (both — use this as the default) |
npm run lint:styles | Stylelint only (Sass/SCSS files) |
npm run lint | ng lint — ESLint only (TypeScript + templates) |
ng lint --fix | Quick fix for tool identifiable fixes |
lint:lib (recommended)
npm run lint:lib
This is the combined command and the one agents should run before considering work complete. It executes:
ng lint— ESLint on TypeScript source and Angular templates, using the config atprojects/igniteui-angular/eslint.config.mjs.npm run lint:styles— Stylelint on Sass files underprojects/igniteui-angular/core/src/core/styles.
Lint Styles Only
npm run lint:styles
Runs stylelint "projects/igniteui-angular/core/src/core/styles". Use when you only changed SCSS/Sass and want a faster check.
Configuration Files
| File | Purpose |
|---|---|
eslint.config.mjs (repo root) | Root ESLint config |
projects/igniteui-angular/eslint.config.mjs | Library-specific ESLint config (referenced in angular.json) |
.stylelintrc.json (repo root) | Root Stylelint config used by npm run lint:styles |
Agent Rules
- Always run
npm run lint:libbefore marking work complete — this is a requirement from AGENTS.md. - Fix all lint errors before committing. Do not disable rules without justification.
- If a lint rule conflicts with the intended change, investigate whether the rule is correct before suppressing it.
Related Skills
igniteui-angular-build— Building the libraryigniteui-angular-testing— Running tests