survivejs / webpack-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/webpack/
2.42k stars 319 forks source link

ESLint instructions should include `eslint --init` #98

Closed shepmaster closed 8 years ago

shepmaster commented 8 years ago

Following the steps in the book:

  1. npm i eslint --save-dev
  2. Add "test:lint": "eslint . --ext .js --ext .jsx --cache" to package.json
  3. npm run test:lint

You will get the error:

Oops! Something went wrong! :(

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

The error message is straightforward to fix, but it may be worth including it in the text.

bebraw commented 8 years ago

Thanks!