survivejs / react-book

From apprentice to master (CC BY-NC-ND)

Home Page:https://survivejs.com/react/introduction/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Suggestion] Linting problem

vjancik opened this issue · comments

There's an issue with ESLint: eslint/eslint#6001 eslint/eslint#5679

and using this causes the linter to run for over 10 seconds (if your node_modules are populated, on OS X for sure, not sure what other platforms) .
I solved it by changing it to:
"lint": "eslint ./app --ext .js --ext .jsx --cache",

You may consider adding webpack.config.js too to replicate original behavior.

Thanks. This chapter is going to the webpack book really soon. I've added --cache to the dev version there.

I'll close this once that has been published.

The problem is in the dot . not in --cache. Replace . with ./app. Sorry if I just said the obvious, from your response it seemed like you missed the point.

Missed the point, yeah. Thanks for highlighting that.

I'm tracking eslint/eslint#5679 . If they can resolve the issue, perhaps the book doesn't need an update for this after all.

Solved at dev. Given the release is so near, closing.

@vjancik Looks like they did a fix. See eslint/eslint#5679 . That could help. 👍