This package provides @rodogir's personal eslint configuration as a ready to use package.
This eslint
config supports the following technologies and plugins:
- TypeScript
- React
- Airbnb
- Prettier
yarn add -D @rodogir/eslint-config prettier@2
Then, create a .eslintrc.js
file with the following content.
module.exports = {
extends: "@rodogir/eslint-config",
};
Add a script to lint your code to the package.json
{
// ...
"scripts": {
// ...
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./"
}
}
Add a tsconfig.eslint.json
file with the following content. See here why this is necessary.
{
"extends": "./tsconfig.json",
"include": ["/**/*.ts", "/**/*.tsx", "./**/*.js"]
}
Use the npm version
command to update the version number. This will automatically create a commit and tag it.
npm version minor
Now, just push the tag to origin and the the new version is automatically released to GitHub Packages.
git push --tags