Add the package
yarn add --dev eslint-config-devmynd
Add its peerDependencies
:
yarn add --dev eslint babel-eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-react eslint-plugin-standard eslint-plugin-flowtype
Create a root level .eslintrc.json
file with:
{
"extends": [
"devmynd"
]
}
Add the following to the scripts
section of your package.json
:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}