The Qare Legacy EsLint rules
Use the new linter instead
- Checkout and pull master
git checkout master && git pull origin master
- Create and checkout a branch
git branch -b your-branch
- Do your changes
- Bump the package version in package.json (following semver)
- Push your changes
git push origin your-branch
- Open a Pull Request towards master on github
- On approval: SQASH AND MERGE so that one commit is one version
- Create a new tag on master corresponding to the package version (ie.
v1.2.8
)
yarn add -D eslint-config-qare@git+https://github.com/qare/eslint-config.git
yarn add -D eslint@^6.1.0
yarn add -D eslint-plugin-flowtype@^4.3.0
yarn add -D eslint-plugin-import@^2.18.2
yarn add -D eslint-plugin-no-only-tests@^2.3.1
yarn add -D eslint-plugin-jsx-a11y@^6.2.3
yarn add -D eslint-plugin-react@^7.14.3
yarn add -D eslint-plugin-react-hooks@^1.7.0
module.exports = {
extends: [ 'qare' ],
};
{
"scripts": {
"lint": "eslint .",
}
}
yarn lint