eslint-config-wslfx
Weasel & Fox ESlint config
Usage
- Install this package:
yarn add -D eslint-config-wslfx
- Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-wslfx@latest" peerDependencies
If using npm 5+, use this shortcut
npx install-peerdeps --dev eslint-config-wslfx
- Create
.eslintrc.js
configuration file:
moduleexports = extends: 'wslfx'
- Add lint scripts to
package.json
:
"scripts":
- Run
yarn lint
to lint your code. - Run
yarn lint:fix
to lint, format and fix your code.