eslint-config-sk-flow
production ready es6 ESLint configs using Prettier and sort-class-members for code formatting and unification, compat and browserslist to make use of caniuse and @kangax's compat table for determining coverage and
jest for testing.
Install
yarn
yarn add eslint eslint-config-sk-flow -D -E
npm
npm i -D eslint eslint-config-sk-flow
Usage
create a eslint config file type of your choice
.eslintrc.js
moduleexports = extends: 'sk-flow';
.eslintrc.json
.eslintrc
extends: 'sk-flow'
.eslintrc.yml
extends: 'sk-flow'
Add lint scripts
Add scripts to package.json
:
"scripts":
Lint manually
- Run
yarn lint
to lint your code. - Run
yarn lint:fix
to lint, format and fix your code.