Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
run: pnpm run lint

- name: Check formatting
run: pnpm prettier --write --log-level=warn . && git diff --exit-code
run: pnpm format && git diff --exit-code

- name: Typecheck
run: pnpm run typecheck
Expand Down
39 changes: 39 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 80,
"sortPackageJson": false,
"overrides": [
{
"files": ["**/*.json5"],
"options": {
"singleQuote": false,
"quoteProps": "preserve"
}
},
{
"files": ["**/*.yml"],
"options": {
"singleQuote": false
}
}
],
"ignorePatterns": [
"packages/*/CHANGELOG.md",
"packages/vite/src/node/ssr/__tests__/fixtures/errors/syntax-error.*",
"playground-temp/",
"dist/",
"LICENSE.md",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"playground/tsconfig-json-load-error/has-error/tsconfig.json",
"playground/html/invalid.html",
"playground/html/invalidClick.html",
"playground/html/invalidEscape.html",
"playground/html/valid.html",
"playground/external/public/slash@3.0.0.js",
"playground/ssr-html/public/slash@3.0.0.js",
"playground/worker/classic-worker.js",
"playground/css/weapp.wxss"
]
}
16 changes: 0 additions & 16 deletions .prettierignore

This file was deleted.

19 changes: 0 additions & 19 deletions .prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ For a mock dependency, make sure you add a `@vitejs/test-` prefix to the package

- Make sure tests pass!

- No need to worry about code style as long as you have installed the dev dependencies. Modified files are automatically formatted with Prettier on commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [simple-git-hooks](https://github.com/toplenboren/simple-git-hooks)).
- No need to worry about code style as long as you have installed the dev dependencies. Modified files are automatically formatted with Oxfmt on commit (by invoking [Git Hooks](https://git-scm.com/docs/githooks) via [simple-git-hooks](https://github.com/toplenboren/simple-git-hooks)).

- PR title must follow the [commit message convention](./.github/commit-convention.md) so that changelogs can be automatically generated.

Expand Down
12 changes: 6 additions & 6 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[build.environment]
NODE_VERSION = "24"
# don't need playwright for docs build
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1"
NODE_VERSION = "24"
# don't need playwright for docs build
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1"
[build]
publish = "docs/.vitepress/dist"
command = "pnpm ci-docs"
ignore = "./scripts/docs-check.sh"
publish = "docs/.vitepress/dist"
command = "pnpm ci-docs"
ignore = "./scripts/docs-check.sh"
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "simple-git-hooks",
"format": "prettier --write --cache . --experimental-cli",
"format": "oxfmt",
"lint": "eslint --cache . --concurrency auto",
"typecheck": "tsc -p scripts && pnpm -r --parallel run typecheck",
"test": "pnpm test-unit && pnpm test-serve && pnpm test-build",
Expand Down Expand Up @@ -61,9 +61,9 @@
"execa": "^9.6.1",
"globals": "^17.4.0",
"lint-staged": "^16.4.0",
"oxfmt": "^0.42.0",
"picocolors": "^1.1.1",
"playwright-chromium": "^1.59.1",
"prettier": "3.8.1",
"rolldown": "1.0.0-rc.12",
"rollup": "^4.59.0",
"simple-git-hooks": "^2.13.1",
Expand All @@ -78,7 +78,7 @@
},
"lint-staged": {
"*": [
"prettier --write --cache --ignore-unknown --experimental-cli"
"oxfmt --no-error-on-unmatched-pattern"
],
"packages/*/{src,types}/**/*.ts": [
"eslint --cache --fix --concurrency auto"
Expand Down
Loading