eslint-config-bloq v4.5.0
eslint-config-bloq
This is Bloq's ESLint shareable config.
It is based on the ESLint recommended rules and other well-known plugins and configs.
Install
npm install --save-dev eslint eslint-config-bloqConfiguration
Add this to the ESLint configuration file:
{
"extends": ["bloq"]
}Additional rule sets are available:
bloq/jsdocbloq/markdownbloq/mochabloq/nextbloq/nodebloq/typescriptbloq/vitest
Note on code formatting
The base rules are focused in identifying code patterns that are or could lead to common errors.
Enforcing code styles should be mainly done with tools like Prettier, adding it to the end of any extends array to ensure the conflicting rules are deactivated:
{
"extends": ["bloq", "bloq/node", "prettier"]
}Release process
After creating a feature branch and committing the changes, add a commit to update the package version:
npm version $VERSION # Use major|minor|parch as needed
git push --set-upstream origin $BRANCHOnce the commits are pushed, open a PR.
Then, when the PR is approved, merge the changes locally, apply and push a version tag if needed:
git checkout master
git merge --ff $BRANCH
TAG=v$(jq --raw-output '.version' <package.json); git tag --list $TAG | grep --quiet "^$TAG$" || git tag --sign --message="" $TAG
git push --follow-tagsFinally, create a release to trigger the publication to NPM.
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago