{"id":19487,"library":"eslint-config-angular","title":"eslint-config-angular","description":"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.","status":"maintenance","version":"0.5.0","language":"javascript","source_language":"en","source_url":"https://github.com/dustinspecker/eslint-config-angular","tags":["javascript","eslint","eslintconfig"],"install":[{"cmd":"npm install eslint-config-angular","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-angular","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-angular","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required peer dependency for Angular-specific lint rules; not listed as peer but must be installed separately.","package":"eslint-plugin-angular","optional":false}],"imports":[{"note":"Use the short name 'angular' in .eslintrc extends field (ESLint resolves eslint-config-angular prefix automatically).","wrong":"{ \"extends\": \"eslint-config-angular\" }","symbol":"angular (config extends)","correct":"{ \"extends\": \"angular\" }"},{"note":"Shareable configs are used via extends, not direct require. The module exports a config object but should be used through extends.","wrong":"const config = require('eslint-config-angular'); module.exports = config;","symbol":"default import (ESLint config)","correct":"module.exports = { extends: 'angular' };"},{"note":"The module exports the config directly, not a named property. However, for custom merging prefer using extends in config file.","wrong":"const angularConfig = require('eslint-config-angular').angular;","symbol":"CommonJS require (for custom config)","correct":"const angularConfig = require('eslint-config-angular');"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"extends\": \"angular\",\n  \"rules\": {\n    \"angular/component-name\": [2, \"camelCase\"] // override example\n  }\n}\n\n// Also install required plugins:\n// npm install --save-dev eslint-config-angular eslint-plugin-angular eslint\n\n// Then run ESLint:\n// npx eslint .","lang":"javascript","description":"Shows minimal .eslintrc config extending angular config and an optional rule override. Requires manual installation of eslint-plugin-angular."},"warnings":[{"fix":"Consider upgrading to modern Angular ESLint (like angular-eslint) for Angular 2+ projects. For AngularJS, this still works but may lack latest rules.","message":"Package has no recent updates; compatible with older ESLint ecosystem (likely ESLint < 9).","severity":"deprecated","affected_versions":"*"},{"fix":"Run: npm install --save-dev eslint-plugin-angular","message":"eslint-plugin-angular is a required peer dependency but not listed as such; must be installed separately.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use 'angular' in extends field; ESLint resolves it automatically.","message":"The config extends string is 'angular', not 'eslint-config-angular'.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use @angular-eslint for Angular 2+ projects.","message":"Assumes AngularJS (1.x) globals; not suitable for Angular (2+).","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use numeric severity: 2 for error.","cause":"Using string severity like 'error' instead of number.","error":"Configuration for rule \"angular/component-name\" is invalid: Severity should be one of the following: 0 = off, 1 = warn, 2 = error"},{"fix":"npm install --save-dev eslint-plugin-angular","cause":"eslint-plugin-angular not installed.","error":"ESLint couldn't find the plugin \"eslint-plugin-angular\". (ESLintError)"},{"fix":"npm install --save-dev eslint-config-angular, then use extends: 'angular'","cause":"Package not installed or extend string wrong (e.g., used 'eslint-config-angular' in extends).","error":"Cannot find module 'eslint-config-angular'"},{"fix":"Ensure eslint-plugin-angular is installed and in the same node_modules tree as ESLint.","cause":"Plugin not installed or not resolvable.","error":"Error: Failed to load plugin 'angular' declared in 'BaseConfig': Cannot find module 'eslint-plugin-angular'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}