badsyntax / react-seed

[not maintained] Seed project for React apps using ES6 & webpack.
http://badsyntax.github.io/react-seed
MIT License
428 stars 82 forks source link

Created new project got Eslint error #35

Open ospfranco opened 7 years ago

ospfranco commented 7 years ago

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 commented 7 years ago

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