Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Linter - ESLint

npm install eslint --save-dev
npx eslint --init

Creates:

.eslintrc.json

{% embed include file="src/examples/basic/.eslintrc.json)

Run it:

npx eslint *.js

In package.json set:

  "scripts": {
    "test": "npx eslint *.js"
  },

Then run as

$ npm run test