@prettier/plugin-hermes 0.1.2 → 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 +31 -13
- package/THIRD-PARTY-NOTICES.md +37 -5
- package/index.d.ts +5 -1
- package/index.mjs +35 -35
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,28 +8,46 @@
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
yarn add --dev prettier @prettier/plugin-hermes
|
|
11
|
+
yarn add --dev --exact prettier @prettier/plugin-hermes
|
|
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
|
-
```
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
```js
|
|
19
|
+
// prettier.config.mjs
|
|
20
|
+
import * as prettierPluginHermes from "@prettier/plugin-hermes";
|
|
21
|
+
|
|
22
|
+
/** @type {import("prettier").Config} */
|
|
23
|
+
const config = {
|
|
24
|
+
plugins: [prettierPluginHermes],
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default config;
|
|
21
28
|
```
|
|
22
29
|
|
|
23
|
-
**Requires prettier
|
|
30
|
+
**Requires prettier>=3.6.0**
|
|
24
31
|
|
|
25
32
|
Or config explicitly
|
|
26
33
|
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
```js
|
|
35
|
+
// prettier.config.mjs
|
|
36
|
+
import * as prettierPluginHermes from "@prettier/plugin-hermes";
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @see https://prettier.io/docs/configuration
|
|
40
|
+
* @type {import("prettier").Config}
|
|
41
|
+
*/
|
|
42
|
+
const config = {
|
|
43
|
+
overrides: [
|
|
44
|
+
{
|
|
45
|
+
files: ["**/*.{js.flow,js,mjs,cjs}"],
|
|
46
|
+
parser: "hermes",
|
|
47
|
+
plugins: [prettierPluginHermes],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default config;
|
|
35
53
|
```
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -123,7 +123,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
|
123
123
|
|
|
124
124
|
----------------------------------------
|
|
125
125
|
|
|
126
|
-
## get-east-asian-width@v1.
|
|
126
|
+
## get-east-asian-width@v1.6.0
|
|
127
127
|
|
|
128
128
|
> Determine the East Asian Width of a Unicode character
|
|
129
129
|
|
|
@@ -142,7 +142,7 @@ Author: Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
|
142
142
|
|
|
143
143
|
----------------------------------------
|
|
144
144
|
|
|
145
|
-
## hermes-estree@v0.
|
|
145
|
+
## hermes-estree@v0.36.1
|
|
146
146
|
|
|
147
147
|
> Flow types for the Flow-ESTree spec produced by the hermes parser
|
|
148
148
|
|
|
@@ -173,7 +173,7 @@ Repository: <git@github.com:facebook/hermes.git>
|
|
|
173
173
|
|
|
174
174
|
----------------------------------------
|
|
175
175
|
|
|
176
|
-
## hermes-parser@v0.
|
|
176
|
+
## hermes-parser@v0.36.1
|
|
177
177
|
|
|
178
178
|
> A JavaScript parser built from the Hermes engine
|
|
179
179
|
|
|
@@ -259,7 +259,7 @@ Author: fisker Cheung <lionkay@gmail.com>
|
|
|
259
259
|
|
|
260
260
|
----------------------------------------
|
|
261
261
|
|
|
262
|
-
## jest-docblock@v30.
|
|
262
|
+
## jest-docblock@v30.4.0
|
|
263
263
|
|
|
264
264
|
License: MIT
|
|
265
265
|
Repository: <https://github.com/jestjs/jest.git>
|
|
@@ -289,7 +289,39 @@ Repository: <https://github.com/jestjs/jest.git>
|
|
|
289
289
|
|
|
290
290
|
----------------------------------------
|
|
291
291
|
|
|
292
|
-
##
|
|
292
|
+
## narrow-emojis@v0.0.3
|
|
293
|
+
|
|
294
|
+
> Emojis with narrow width.
|
|
295
|
+
|
|
296
|
+
License: MIT
|
|
297
|
+
Homepage: <https://github.com/fisker/narrow-emojis#readme>
|
|
298
|
+
Author: fisker Cheung <lionkay@gmail.com> (https://www.fiskercheung.com/)
|
|
299
|
+
|
|
300
|
+
> MIT License
|
|
301
|
+
>
|
|
302
|
+
> Copyright (c) fisker Cheung <lionkay@gmail.com> (https://www.fiskercheung.com/)
|
|
303
|
+
>
|
|
304
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
305
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
306
|
+
> in the Software without restriction, including without limitation the rights
|
|
307
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
308
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
309
|
+
> furnished to do so, subject to the following conditions:
|
|
310
|
+
>
|
|
311
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
312
|
+
> copies or substantial portions of the Software.
|
|
313
|
+
>
|
|
314
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
315
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
316
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
317
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
318
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
319
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
320
|
+
> SOFTWARE.
|
|
321
|
+
|
|
322
|
+
----------------------------------------
|
|
323
|
+
|
|
324
|
+
## prettier@v3.10.0-dev
|
|
293
325
|
|
|
294
326
|
> Prettier is an opinionated code formatter
|
|
295
327
|
|