npm install --save-dev git+ssh://[email protected]/ustudio/eslint-config-ustudio.git
This will automatically install eslint
and eslint-plugin-react
.
Add the following to your package.json
:
{
eslintConfig: {
"extends": "ustudio"
},
"scripts": {
"lint": "eslint ."
}
Execute the following command:
npm run lint
Add the following to your circle.yml
:
test:
pre:
- npm run lint