Skip to content

Commit 0c3c673

Browse files
chore(deps): update dependency prettier to v3.6.0 (vitejs#20273)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent f7377c3 commit 0c3c673

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,15 @@ For a mock dependency, make sure you add a `@vitejs/test-` prefix to the package
232232
- Checkout a topic branch from a base branch (e.g. `main`), and merge back against that branch.
233233

234234
- If adding a new feature:
235-
236235
- Add accompanying test case.
237236
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first, and have it approved before working on it.
238237

239238
- If fixing a bug:
240-
241239
- If you are resolving a special issue, add `(fix #xxxx[,#xxxx])` (#xxxx is the issue id) in your PR title for a better release log (e.g. `fix: update entities encoding/decoding (fix #3899)`).
242240
- Provide a detailed description of the bug in the PR. Live demo preferred.
243241
- Add appropriate test coverage if applicable.
244242

245243
- If it's a chore:
246-
247244
- For typos and comment changes, try to combine multiple of them into a single PR.
248245
- **Note that we discourage contributors from submitting code refactors that are largely stylistic.** Code refactors are only accepted if it improves performance, or objectively improves code quality (e.g. makes a related bug fix or feature implementation easier, and it is as a separate PR to improve git history).
249246
- The reason is that code readability is subjective. The maintainers of this project have chosen to write the code in its current style based on our preferences, and we do not want to spend time explaining our stylistic preferences. Contributors should just respect the established conventions when contributing code. Another aspect of it is that large scale stylistic changes result in massive diffs that touch multiple files, adding noise to the git history and makes tracing behavior changes across commits more cumbersome.

docs/guide/api-plugin.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ Vite plugins can also provide hooks that serve Vite-specific purposes. These hoo
338338
Dedicated hook for transforming HTML entry point files such as `index.html`. The hook receives the current HTML string and a transform context. The context exposes the [`ViteDevServer`](./api-javascript#vitedevserver) instance during dev, and exposes the Rollup output bundle during build.
339339

340340
The hook can be async and can return one of the following:
341-
342341
- Transformed HTML string
343342
- An array of tag descriptor objects (`{ tag, attrs, children }`) to inject to the existing HTML. Each tag can also specify where it should be injected to (default is prepending to `<head>`)
344343
- An object containing both as `{ html, tags }`
@@ -417,13 +416,11 @@ Vite plugins can also provide hooks that serve Vite-specific purposes. These hoo
417416
server: ViteDevServer
418417
}
419418
```
420-
421419
- `modules` is an array of modules that are affected by the changed file. It's an array because a single file may map to multiple served modules (e.g. Vue SFCs).
422420

423421
- `read` is an async read function that returns the content of the file. This is provided because on some systems, the file change callback may fire too fast before the editor finishes updating the file and direct `fs.readFile` will return empty content. The read function passed in normalizes this behavior.
424422

425423
The hook can choose to:
426-
427424
- Filter and narrow down the affected module list so that the HMR is more accurate.
428425

429426
- Return an empty array and perform a full reload:

docs/guide/backend-integration.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ If you need a custom integration, you can follow the steps in this guide to conf
4545
```
4646

4747
In order to properly serve assets, you have two options:
48-
4948
- Make sure the server is configured to proxy static assets requests to the Vite server
5049
- Set [`server.origin`](/config/server-options.md#server-origin) so that generated asset URLs will be resolved using the back-end server URL instead of a relative path
5150

@@ -100,7 +99,6 @@ If you need a custom integration, you can follow the steps in this guide to conf
10099
}
101100
}
102101
```
103-
104102
- The manifest has a `Record<name, chunk>` structure
105103
- For entry or dynamic entry chunks, the key is the relative src path from project root.
106104
- For non entry chunks, the key is the base name of the generated file prefixed with `_`.
@@ -131,7 +129,6 @@ If you need a custom integration, you can follow the steps in this guide to conf
131129

132130
Specifically, a backend generating HTML should include the following tags given a manifest
133131
file and an entry point:
134-
135132
- A `<link rel="stylesheet">` tag for each file in the entry point chunk's `css` list
136133
- Recursively follow all chunks in the entry point's `imports` list and include a
137134
`<link rel="stylesheet">` tag for each CSS file of each imported chunk.

docs/guide/static-deploy.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ You can deploy your Vite app as a Static Site on [Render](https://render.com/).
265265
3. Connect your GitHub/GitLab account or use a public repository.
266266

267267
4. Specify a project name and branch.
268-
269268
- **Build Command**: `npm install && npm run build`
270269
- **Publish Directory**: `dist`
271270

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"lint-staged": "^16.1.2",
6666
"picocolors": "^1.1.1",
6767
"playwright-chromium": "^1.53.1",
68-
"prettier": "3.5.3",
68+
"prettier": "3.6.0",
6969
"rollup": "^4.40.0",
7070
"simple-git-hooks": "^2.13.0",
7171
"tsx": "^4.20.3",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)