Registry / testing / eslint-config-angular

eslint-config-angular

JSON →
library0.5.0jsnpmunverified

ESLint shareable config for Angular (AngularJS) projects using eslint-plugin-angular. Version 0.5.0 last released; appears to be in maintenance mode with no recent updates. Opinionated preset that enables the Angular plugin, adds 'angular' as a global, and disables no-use-before-define. Differentiates from raw eslint-plugin-angular by providing a ready-to-use config that removes friction.

npm install eslint-config-angular
INSTALL
IMPORT
SIG · ESLINT-CONFIG-ANGU
E
eslint-config-angular
testingjavascriptv0.5.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

angular (config extends)
✓ { "extends": "angular" }
✗ { "extends": "eslint-config-angular" }
Use the short name 'angular' in .eslintrc extends field (ESLint resolves eslint-config-angular prefix automatically).
default import (ESLint config)
✓ module.exports = { extends: 'angular' };
✗ const config = require('eslint-config-angular'); module.exports = config;
Shareable configs are used via extends, not direct require. The module exports a config object but should be used through extends.
CommonJS require (for custom config)
✓ const angularConfig = require('eslint-config-angular');
✗ const angularConfig = require('eslint-config-angular').angular;
The module exports the config directly, not a named property. However, for custom merging prefer using extends in config file.

Shows minimal .eslintrc config extending angular config and an optional rule override. Requires manual installation of eslint-plugin-angular.

// .eslintrc.json { "extends": "angular", "rules": { "angular/component-name": [2, "camelCase"] // override example } } // Also install required plugins: // npm install --save-dev eslint-config-angular eslint-plugin-angular eslint // Then run ESLint: // npx eslint .
Debug
Known issues
deprecatedPackage has no recent updates; compatible with older ESLint ecosystem (likely ESLint < 9).
fix
Consider upgrading to modern Angular ESLint (like angular-eslint) for Angular 2+ projects. For AngularJS, this still works but may lack latest rules.
affects: *
gotchaeslint-plugin-angular is a required peer dependency but not listed as such; must be installed separately.
fix
Run: npm install --save-dev eslint-plugin-angular
affects: >=0.1.0
gotchaThe config extends string is 'angular', not 'eslint-config-angular'.
fix
Use 'angular' in extends field; ESLint resolves it automatically.
affects: >=0.1.0
gotchaAssumes AngularJS (1.x) globals; not suitable for Angular (2+).
fix
Use @angular-eslint for Angular 2+ projects.
affects: >=0.1.0
Errors
Common errors & fixes
Configuration for rule "angular/component-name" is invalid: Severity should be one of the following: 0 = off, 1 = warn, 2 = error
Using string severity like 'error' instead of number.
fix
Use numeric severity: 2 for error.
ESLint couldn't find the plugin "eslint-plugin-angular". (ESLintError)
eslint-plugin-angular not installed.
fix
npm install --save-dev eslint-plugin-angular
Cannot find module 'eslint-config-angular'
Package not installed or extend string wrong (e.g., used 'eslint-config-angular' in extends).
fix
npm install --save-dev eslint-config-angular, then use extends: 'angular'
Error: Failed to load plugin 'angular' declared in 'BaseConfig': Cannot find module 'eslint-plugin-angular'
Plugin not installed or not resolvable.
fix
Ensure eslint-plugin-angular is installed and in the same node_modules tree as ESLint.
Upgrade
Version history
0.5.0latest on npm
Audit
Dependencies
eslint-plugin-angularrequiredRequired peer dependency for Angular-specific lint rules; not listed as peer but must be installed separately.
Agent activity
6 hits · last 30 days
node
6
Resources
eslint-config-angular — npm install eslint-config-angular · libregistry