npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@krema/angular-eslint-stylelint-builder

v3.0.2

Published

Angular CLI builder for ESLint and stylelint

Downloads

5,481

Readme

Angular ESLint + Stylelint Builder

npm version integration test unit test

A unified Angular CLI builder for linting Angular projects with ESLint and Stylelint in a single step.


Version Compatibility

The table below outlines the compatible versions for Angular, Stylelint, and ESLint with each major release of our tool:

| Version | Angular | Stylelint | ESLint | | :------ | :---------- | :-------- | :----- | | v1.x | 9–15 | ≤15 | ≤8 | | v2.x | 16–17 | 16+ | 9+ | | v3.x | 18+ | 16+ | 9+ |


Features

  • Lint both TypeScript and stylesheets in one command
  • Supports ESLint and Stylelint configuration and ignore patterns
  • Output to file or console, with multiple formatter options
  • Caching for faster linting
  • Fine-grained control over warnings, errors, and exit codes

Prerequisites

  • Angular CLI project (v9+)
  • ESLint and Stylelint installed and configured (e.g., eslint.config.js for flat config, or .eslintrc for legacy config, and stylelint.config.js for Stylelint)

Installation

npm install --save-dev @krema/angular-eslint-stylelint-builder

Usage

  1. Update your angular.json

    Replace the default lint builder with this one:

    "lint": {
      "builder": "@krema/angular-eslint-stylelint-builder:lint",
      "options": {
        "eslintFilePatterns": ["**/*.ts"],
        "stylelintFilePatterns": ["**/*.scss"]
      }
    }
  2. Run linting

    ng lint

Configuration Options

| Name | Default | Description | Required | Linter | |--------------------------|-------------------|-----------------------------------------------------------------------------|----------|-----------| | Basic configuration: | | eslintFilePatterns | [] | Files/globs for ESLint | Yes | eslint | | eslintConfig | | Path to ESLint config (supports both flat config eslint.config.js and legacy .eslintrc.*) | No | eslint | | stylelintFilePatterns | [] | Files/globs for Stylelint | Yes | stylelint | | stylelintConfig | | Path to Stylelint config (stylelint.config.js or legacy .stylelintrc.*) | No | stylelint | | noEslintrc | false | Disable .eslintrc.* and package.json config | No | eslint | | fix | false | Auto-fix fixable issues | No | both | | Cache-related: | | eslintCache | false | Enable ESLint cache | No | eslint | | stylelintCache | false | Enable Stylelint cache | No | stylelint | | eslintCacheLocation | .eslintcache | ESLint cache file/directory | No | eslint | | stylelintCacheLocation | .stylelintcache | Stylelint cache file/directory | No | stylelint | | eslintCacheStrategy | metadata | ESLint cache strategy (metadata or content) | No | eslint | | File Enumeration: | | eslintIgnorePatterns | [] | Glob patterns to ignore (ESLint 9+) | No | eslint | | stylelintIgnorePatterns| [] | Glob patterns to ignore (Stylelint 16+) | No | stylelint | | Output: | | outputFile | | Write report to file instead of console | No | both | | format | stylish | Output formatter (see ESLint formatters) | No | both | | silent | false | Hide output text | No | both | | Handling warnings: | | quiet | false | Only show errors (ignore warnings) | No | both | | maxWarnings | -1 | Max warnings before nonzero exit code | No | both | | force | false | Succeed even if there are lint errors | No | both |


Example

"lint": {
  "builder": "@krema/angular-eslint-stylelint-builder:lint",
  "options": {
    "eslintFilePatterns": ["src/**/*.ts"],
    "stylelintFilePatterns": ["src/**/*.scss"],
    "fix": true
  }
}

License

MIT