@jeffersonwilliammachado/code-tool
v0.0.13
Published
Code tool
Downloads
5
Readme
Biome
Setup
- Install the dependencies
bun add -D @jeffersonwilliammachado/code-tool
- Create a
biome.json
file extending the config:
{
"extends": "./node_modules/@jeffersonwilliammachado/code-tool/biome/biome.json"
}
You can also use a
.eslintrc.js
instead of JSON if you prefer.
Stylelint
Create ignore .stylelintignore
file:
node_modules
build
dist
.git
.next
.swc
.husky
.vscode
*.js
And stylelint.config.js
:
module.exports = { extends: ["@jeffersonwilliammachado/code-tool/stylelint"] };
Commitlint
Add .commitlintrc.js
on the root project folder:
module.exports = { extends: ["@jeffersonwilliammachado/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'