EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular

TypeError: Cannot read property 'angular/ng_controller_name' of undefined

Open
#488 1 comment 0 reactions 0 assignees View on GitHub
Hacktoberfest waiting-feedback
Dominant language
JavaScript
Stars
620
Forks
127
PR merge metrics
No merged PRs in 30d

Description

23:26 $ eslint src/js/services/auth.srv.js
TypeError: Cannot read property 'angular/ng_controller_name' of undefined
at Object.keys.forEach.key (/home/ben/.nvm/versions/node/v8.2.1/lib/node_modules/eslint/lib/config/config-ops.js:182:75)
at Array.forEach (native)
at deepmerge (/home/ben/.nvm/versions/node/v8.2.1/lib/node_modules/eslint/lib/config/config-ops.js:179:30)
at Object.keys.forEach (/home/ben/.nvm/versions/node/v8.2.1/lib/node_modules/eslint/lib/config/config-ops.js:161:34)
at Array.forEach (native)
at deepmerge (/home/ben/.nvm/versions/node/v8.2.1/lib/node_modules/eslint/lib/config/config-ops.js:153:30)
at Object.keys.forEach.key (/home/ben/.nvm/versions/node/v8.2.1/lib/node_modules/eslint/lib/config/config-ops.js:183:32)
at Array.forEach (native)
at Object.deepmerge [as merge] (/home/ben/.nvm/versions/node/v8.2.1/lib/node_modules/eslint/lib/config/config-ops.js:179:30)
at loadConfigFile (/home/ben/.nvm/versions/node/v8.2.1/lib/node_modules/eslint/lib/config/config-file.js:240:22)

from my yaml file:

plugins:
- angular
rules:
- angular/ng_controller_name: 0

it's just how it is in the example why is angular undefined?
Yes I have eslint-plugin-angular installed with both --save-dev and -g options,
and the error persists when I use the local version of eslint and the global version

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.