Custom configuration for eslint.
- Install
npm i -D eslint-config-qb
- Use in eslint config:
- create
.eslintrc.js
with contentsmodule.exports = { 'extends': ['qb'] };
- add in eslint config
extends: ['qb']
.
- Add script
"lint": "eslint . --fix --ext .js"
.
- ES6,
- Nodejs,
- browser.
- as strict as possible,
- simple and easy to understand code,
- no tricks,
- no hacks.
- Rules defined at https://eslint.org/docs/latest/rules/
- Use script
src/extract.js
in Chrome dev tools and copy results to./src/extracted.json
. - Run
npm run update
to update theindex.json
file.
- overrides for test files and other