@controladordefinancas/code-tool
v1.0.4
Published
Code tool
Readme
Biome
Setup
- Install the dependencies
bun add -D @controladordefinancas/code-tool- Create a
biome.jsonfile extending the config:
{
"extends": "./node_modules/@controladordefinancas/code-tool/biome/biome.json"
}Stylelint
Create ignore .stylelintignore file:
node_modules
build
dist
.git
.next
.swc
.husky
.vscode
*.jsAnd stylelint.config.js:
module.exports = { extends: ["@controladordefinancas/code-tool/stylelint"] };Commitlint
Add .commitlintrc.js on the root project folder:
module.exports = { extends: ["@controladordefinancas/code-tool/commitlint"] };And more changes:
bunx husky add .husky/commit-msg 'bunx commitlint --edit $1'
bunx husky add .husky/pre-commit 'bun lint && bunx lint-staged'
bunx husky add .husky/pre-push 'bun lint && bun test && bun --bun run build'