- install npm
- Bundle new code with
$ webpack
- Then run
npm run start
. This also runswebpack-dev-server
to compile the project, and launches development server. localhost:8080
connects to the necessary endpoint
- Run the following command:
npm install eslint@4.13.1 -g
npm install eslint@4.13.1 --save-dev
- Then run this command in the top level of project directory:
eslint --init
- Answer the questions then it automate
.eslintrc.json
file based on the answers.
0
- off1
- warn2
- error
ESLint for indentation is removed from this template
- Run
npm run lint
to check the project's lint - Run
npm run lint --fix
to check and fix the project's lint