Ignite UI for Angular

March 31, 2026 · View on GitHub

Quick-reference card for the core lint commands for the main library in this repository.

Prerequisites

  • Run npm install at the repo root.

Commands

CommandWhat it runs
npm run lint:libESLint + Stylelint (both — use this as the default)
npm run lint:stylesStylelint only (Sass/SCSS files)
npm run lintng lint — ESLint only (TypeScript + templates)
ng lint --fixQuick fix for tool identifiable fixes
npm run lint:lib

This is the combined command and the one agents should run before considering work complete. It executes:

  1. ng lint — ESLint on TypeScript source and Angular templates, using the config at projects/igniteui-angular/eslint.config.mjs.
  2. npm run lint:styles — Stylelint on Sass files under projects/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

FilePurpose
eslint.config.mjs (repo root)Root ESLint config
projects/igniteui-angular/eslint.config.mjsLibrary-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:lib before 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.