Wopjs eslint config. It aims to enforce code style that is consistent and diff-friendly, easy to review.
- Flat config.
- Respects
.gitignore
. - Prettier compatible.
- TypeScript configured.
- Import sorting and field sorting.
npm add -D @wopjs/eslint-config
// eslint.config.js
import wopjs from "@wopjs/eslint-config";
export default wopjs;
Add your own rules to the flat config.
// eslint.config.js
import wopjs from "@wopjs/eslint-config";
export default {
...wopjs,
{
rules: {
"no-console": "off",
},
}
};
You can use npm version to bump version.
npm version patch
Push the tag to remote and CI will publish the new version to npm.
git push --follow-tags
If you want to publish the package in CI, you need to set the NPM_TOKEN
secrets in GitHub repository settings. See how to create a NPM access token.