Prettier config for projects at EquipIndustry.
npm install --save-dev @equipindustry/prettierrc
Then add this prettier.config.js
to the project:
module.exports = require('@equipindustry/prettierrc')
npm link
cd <project>
npm link @equipindustry/prettierrc
npm run prettier
Follow semver. Changing or adding a rule is a breaking change and requires a new major version.
npm version major|minor|patch
git push
git push --tags
npm publish
Releases are done automatically in CI when commits are merged into master by analyzing Conventional Commit Messages. After running yarn
, commit messages will be linted automatically when committing though a git hook. The git hook can be circumvented for fixup commits with git's fixup!
autosquash feature, or by passing --no-verify
to git commit
. You may have to rebase a branch before merging to ensure it has a proper commit history, or squash merge with a manually edited commit message that conforms to the convention.