Created by: maciej-ka
Adds lint command to react-scripts.
Typical use will be to:
- add to package.json scripts:
"scripts": {
...,
"lint": "react-scripts lint"
}
EDIT: PR provides a default configuration for ESlinter, so these are no longer needed:
2.
yarn lint --init
3.
yarn
to install new dependencies4. yarn lint
to use
Script passes all options to eslint, so this will work yarn lint --fix
. Files checked are: .js, .jsx and .mjs in src folder. This includes test files too.