Skip to content

Commit

Permalink
chore: Upgrade some node modules, and use biome instead of rome for c…
Browse files Browse the repository at this point in the history
…ode formatting
  • Loading branch information
hustcer committed Sep 20, 2023
1 parent aa7f723 commit d76af78
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 153 deletions.
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ all: lint fmt build
fmt:
@$'(ansi g)Start `fmt` task...(ansi reset)'; \
$'(ansi p)───────────────────────────────────────(ansi reset)'; \
pnpx rome format . --write; \
pnpm biome format . --write; \
$'(ansi g)The `fmt` task finished!(ansi reset)(char nl)';

# Code linting
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ pre-commit:
- rebase
stage_fixed: true
glob: "*.{ts,tsx,js,jsx,es,cjs,mjs}"
run: pnpx eslint --cache --fix --no-error-on-unmatched-pattern {staged_files}
run: pnpm eslint --cache --fix --no-error-on-unmatched-pattern {staged_files}
fmt:
skip:
- merge
- rebase
stage_fixed: true
glob: "*.{ts,tsx,js,jsx,es,cjs,mjs}"
run: pnpx rome format --write {staged_files}
run: pnpm biome format --write {staged_files}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "dist/index.js",
"private": true,
"scripts": {
"fmt": "rome format . --write",
"fmt": "biome format . --write",
"lint": "eslint **/*.ts",
"build": "rm -rf dist/ && ncc build src/index.ts --minify",
"run": "pnpm run build && RUNNER_TOOL_CACHE=./runner/cache RUNNER_TEMP=./runner/temp node dist/index.js"
Expand All @@ -29,15 +29,15 @@
"shelljs": "^0.8.5"
},
"devDependencies": {
"@types/node": "^20.6.0",
"@types/semver": "^7.5.1",
"@biomejs/biome": "^1.2.2",
"@types/node": "^20.6.2",
"@types/semver": "^7.5.2",
"@types/shelljs": "^0.8.12",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vercel/ncc": "^0.38.0",
"eslint": "^8.49.0",
"lefthook": "^1.4.10",
"rome": "^12.1.3",
"lefthook": "^1.4.11",
"semver": "^7.5.4",
"typescript": "^5.2.2"
}
Expand Down
Loading

0 comments on commit d76af78

Please sign in to comment.