@prettier/plugin-oxc 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,34 +8,54 @@
8
8
  ## Install
9
9
 
10
10
  ```bash
11
- yarn add --dev prettier @prettier/plugin-oxc
11
+ yarn add --dev --exact prettier @prettier/plugin-oxc
12
12
  ```
13
13
 
14
14
  ## Usage
15
15
 
16
16
  Create or modify your [prettier configuration file](https://prettier.io/docs/en/configuration) to use the plugin:
17
17
 
18
- ```yaml
19
- plugins:
20
- - "@prettier/plugin-oxc"
18
+ ```js
19
+ // prettier.config.mjs
20
+ import * as prettierPluginOxc from "@prettier/plugin-oxc";
21
+
22
+ /**
23
+ * @see https://prettier.io/docs/configuration
24
+ * @type {import("prettier").Config}
25
+ */
26
+ const config = {
27
+ plugins: [prettierPluginOxc],
28
+ };
29
+
30
+ export default config;
21
31
  ```
22
32
 
23
- **Requires prettier >= 3.6**
33
+ **Requires prettier>=3.6.0**
24
34
 
25
35
  Or config explicitly
26
36
 
27
- ```yaml
28
- overrides:
29
- - files:
30
- - "**/*.{js,mjs,cjs,jsx}"
31
- options:
32
- plugins:
33
- - "@prettier/plugin-oxc"
34
- parser: oxc
35
- - files:
36
- - "**/*.{ts,mts,cts,tsx}"
37
- options:
38
- plugins:
39
- - "@prettier/plugin-oxc"
40
- parser: oxc-ts
37
+ ```js
38
+ // prettier.config.mjs
39
+ import * as prettierPluginOxc from "@prettier/plugin-oxc";
40
+
41
+ /**
42
+ * @see https://prettier.io/docs/configuration
43
+ * @type {import("prettier").Config}
44
+ */
45
+ const config = {
46
+ overrides: [
47
+ {
48
+ files: ["**/*.{js,mjs,cjs,jsx}"],
49
+ parser: "oxc",
50
+ plugins: [prettierPluginOxc],
51
+ },
52
+ {
53
+ files: ["**/*.{ts,mts,cts,tsx}"],
54
+ parser: "oxc-ts",
55
+ plugins: [prettierPluginOxc],
56
+ },
57
+ ],
58
+ };
59
+
60
+ export default config;
41
61
  ```
@@ -3,12 +3,12 @@
3
3
  The published @prettier/plugin-oxc artifact additionally contains code with the following licenses:
4
4
  MIT.
5
5
 
6
- ## @oxc-parser/binding-wasm32-wasi@v0.99.0
6
+ ## @oxc-parser/binding-wasm32-wasi@v0.137.0
7
7
 
8
8
  > Oxc Parser Node API
9
9
 
10
10
  License: MIT
11
- Homepage: <https://oxc.rs>
11
+ Homepage: <https://oxc.rs/docs/guide/usage/parser>
12
12
  Repository: <git+https://github.com/oxc-project/oxc.git>
13
13
  Author: Boshen and oxc contributors
14
14
 
@@ -101,7 +101,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
101
101
 
102
102
  ----------------------------------------
103
103
 
104
- ## get-east-asian-width@v1.4.0
104
+ ## get-east-asian-width@v1.6.0
105
105
 
106
106
  > Determine the East Asian Width of a Unicode character
107
107
 
@@ -170,7 +170,7 @@ Author: fisker Cheung <lionkay@gmail.com>
170
170
 
171
171
  ----------------------------------------
172
172
 
173
- ## jest-docblock@v30.2.0
173
+ ## jest-docblock@v30.4.0
174
174
 
175
175
  License: MIT
176
176
  Repository: <https://github.com/jestjs/jest.git>
@@ -200,7 +200,39 @@ Repository: <https://github.com/jestjs/jest.git>
200
200
 
201
201
  ----------------------------------------
202
202
 
203
- ## prettier@v3.8.0-dev
203
+ ## narrow-emojis@v0.0.3
204
+
205
+ > Emojis with narrow width.
206
+
207
+ License: MIT
208
+ Homepage: <https://github.com/fisker/narrow-emojis#readme>
209
+ Author: fisker Cheung <lionkay@gmail.com> (https://www.fiskercheung.com/)
210
+
211
+ > MIT License
212
+ >
213
+ > Copyright (c) fisker Cheung <lionkay@gmail.com> (https://www.fiskercheung.com/)
214
+ >
215
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
216
+ > of this software and associated documentation files (the "Software"), to deal
217
+ > in the Software without restriction, including without limitation the rights
218
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
219
+ > copies of the Software, and to permit persons to whom the Software is
220
+ > furnished to do so, subject to the following conditions:
221
+ >
222
+ > The above copyright notice and this permission notice shall be included in all
223
+ > copies or substantial portions of the Software.
224
+ >
225
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
226
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
227
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
228
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
229
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
230
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
231
+ > SOFTWARE.
232
+
233
+ ----------------------------------------
234
+
235
+ ## prettier@v3.10.0-dev
204
236
 
205
237
  > Prettier is an opinionated code formatter
206
238