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

Created new project got Eslint error #35

Open
ospfranco opened this issue Nov 15, 2016 · 1 comment
Open

Created new project got Eslint error #35

ospfranco opened this issue Nov 15, 2016 · 1 comment

Comments

@ospfranco
Copy link

ospfranco commented Nov 15, 2016

Created a new project from seed using Yeoman, when I open the project in atom I get:

TypeError: Error while loading rule 'react/no-multi-comp': context.getSourceCode is not a function
    at Function.componentRule (/Users/osp/dev/mantro/node_modules/eslint-plugin-react/lib/util/Components.js:109:28)
    at /Users/osp/dev/mantro/node_modules/eslint/lib/eslint.js:628:32
    at Array.forEach (native)
    at EventEmitter.module.exports.api.verify (/Users/osp/dev/mantro/node_modules/eslint/lib/eslint.js:619:16)
    at processText (/Users/osp/dev/mantro/node_modules/eslint/lib/cli-engine.js:201:27)
    at CLIEngine.executeOnText (/Users/osp/dev/mantro/node_modules/eslint/lib/cli-engine.js:361:26)
    at Object.execute (/Users/osp/dev/mantro/node_modules/eslint/lib/cli.js:179:36)
    at lintJob (/Users/osp/.atom/packages/linter-eslint/lib/worker.js:37:10)
    at /Users/osp/.atom/packages/linter-eslint/lib/worker.js:71:20
    at Emitter.emit (/Users/osp/.atom/packages/linter-eslint/node_modules/sb-event-kit/lib/emitter.js:70:19)

Any idea what might be going on, I saw the dependency for eslint is quite low: 0.24.1, maybe this could be the problem?

@ospfranco
Copy link
Author

Seems .eslintrc is not created with yeoman? anyways I added one (and had to configure it!) and error seems to be gone!

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

No branches or pull requests

1 participant