-
yarn add -D @isogon/eslint-config
-
Install our peer dependencies. If you are on linux you can run
yarn info @isogon/eslint-config peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add -D
Create a lint script for yarn to run
{
"scripts": {
"lint": "eslint -c @isogon ."
}
}
Create .eslint-config
, and create a lint script that yarn can run in your package.json
:
{
"extends": "@isogon"
}
{
"scripts": {
"lint": "eslint ."
}
}