Skip to content

Commit acdcd1e

Browse files
committed
add biome formatter/linter
1 parent b7001d9 commit acdcd1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"typings": "dist/index.d.ts",
2121
"lint-staged": {
2222
"*.{js,ts}": [
23+
"biome format --write",
2324
"prettier --config prettier.config.js --write",
2425
"eslint --fix"
2526
],
@@ -36,9 +37,9 @@
3637
"analyze:deps:graph": "madge --extensions js,ts --image graph.svg --layout dot --ts-config tsconfig.json src/**",
3738
"test": "jest tests --verbose",
3839
"test:coverage": "jest tests --coverage",
39-
"fmt": "prettier --config prettier.config.js --write .",
40+
"fmt": "biome format --write . && prettier --config prettier.config.js --write .",
4041
"lint": "eslint --ext ts,js src/",
41-
"lint:fix": "eslint --ext ts,js --fix src/",
42+
"lint:fix": "biome lint --apply-unsafe src/ && eslint --ext ts,js --fix src/",
4243
"lint:staged": "lint-staged",
4344
"fix": "npm run fmt && npm run lint:fix",
4445
"build:api-docs": "typedoc --plugin typedoc-plugin-markdown --out docs/api src/index.ts",
@@ -52,6 +53,7 @@
5253
"version": "auto-changelog -p -o CHANGELOG.md --hide-credit --release-summary --hide-empty-releases --sort-commits date-desc && git add CHANGELOG.md"
5354
},
5455
"devDependencies": {
56+
"@biomejs/biome": "1.4.1",
5557
"@types/jest": "^29.5.11",
5658
"@types/node": "^20.10.5",
5759
"@typescript-eslint/eslint-plugin": "^6.15.0",

0 commit comments

Comments
 (0)