@jeffersonwilliammachado/code-tool

0.0.13 • Public • Published

Biome

Setup

  1. Install the dependencies
bun add -D @jeffersonwilliammachado/code-tool
  1. 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'

Readme

Keywords

none

Package Sidebar

Install

npm i @jeffersonwilliammachado/code-tool

Weekly Downloads

0

Version

0.0.13

License

MIT

Unpacked Size

4.64 kB

Total Files

6

Last publish

Collaborators

  • jeffersonwilliammachado