Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ben-wall opened this issue Jul 22, 2017 · 1 comment

Comments

@ben-wall
Copy link

ben-wall commented Jul 22, 2017

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

@EmmanuelDemey
Copy link
Owner

Which version of the plugin do you use ? It looks like your configuration is wrong. Try with angular/controller_name instead of angular/ng_controller_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants