Node.js lint setup and config that I use in my projects (based on StandardJS).
npm install eslint-config-jk
npm i eslint-config-jk --save-dev
`
- Installs eslint
- Installs the StandardJS eslint configs / plugins
- Adds custom rules and plugins I like
- Installs husky
- Installs lint-staged
- Adds to package.json (if file exsists)
- Eslint config option
- Husky hook to lint on pre-commit
- package script lint (npm run lint`)