prettier-plugin-embed 0.4.14 → 0.4.15
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 +1 -0
- package/dist/embedded/css/options.d.ts +2 -2
- package/dist/embedded/es/options.d.ts +2 -2
- package/dist/embedded/glsl/options.d.ts +2 -2
- package/dist/embedded/graphql/options.d.ts +2 -2
- package/dist/embedded/html/options.d.ts +2 -2
- package/dist/embedded/index.d.ts +1 -1
- package/dist/embedded/ini/options.d.ts +2 -2
- package/dist/embedded/java/options.d.ts +2 -2
- package/dist/embedded/json/options.d.ts +2 -2
- package/dist/embedded/jsonata/options.d.ts +2 -2
- package/dist/embedded/latex/options.d.ts +2 -2
- package/dist/embedded/markdown/options.d.ts +2 -2
- package/dist/embedded/nginx/options.d.ts +2 -2
- package/dist/embedded/noop/options.d.ts +2 -2
- package/dist/embedded/pegjs/options.d.ts +2 -2
- package/dist/embedded/php/options.d.ts +2 -2
- package/dist/embedded/prisma/options.d.ts +2 -2
- package/dist/embedded/properties/options.d.ts +2 -2
- package/dist/embedded/pug/options.d.ts +2 -2
- package/dist/embedded/ruby/options.d.ts +2 -2
- package/dist/embedded/sh/options.d.ts +2 -2
- package/dist/embedded/sql/options.d.ts +2 -2
- package/dist/embedded/toml/options.d.ts +2 -2
- package/dist/embedded/ts/options.d.ts +2 -2
- package/dist/embedded/utils.d.ts +1 -0
- package/dist/embedded/xml/options.d.ts +2 -2
- package/dist/embedded/yaml/options.d.ts +2 -2
- package/dist/index.js +807 -791
- package/dist/options.d.ts +62 -65
- package/dist/utils.d.ts +2 -2
- package/package.json +12 -15
package/dist/options.d.ts
CHANGED
|
@@ -62,7 +62,9 @@ export declare const options: {
|
|
|
62
62
|
readonly type: "string";
|
|
63
63
|
readonly array: true;
|
|
64
64
|
readonly default: [{
|
|
65
|
-
readonly value: [];
|
|
65
|
+
readonly value: []; /**
|
|
66
|
+
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
67
|
+
*/
|
|
66
68
|
}];
|
|
67
69
|
readonly description: "Tag or comment identifiers that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.";
|
|
68
70
|
readonly deprecated: "Please use `embeddedNoopComments` or `embeddedNoopTags`.";
|
|
@@ -72,7 +74,7 @@ export declare const options: {
|
|
|
72
74
|
readonly type: "string";
|
|
73
75
|
readonly array: true;
|
|
74
76
|
readonly default: [{
|
|
75
|
-
readonly value: [];
|
|
77
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
76
78
|
}];
|
|
77
79
|
readonly description: "Block comments that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.";
|
|
78
80
|
};
|
|
@@ -81,7 +83,7 @@ export declare const options: {
|
|
|
81
83
|
readonly type: "string";
|
|
82
84
|
readonly array: true;
|
|
83
85
|
readonly default: [{
|
|
84
|
-
readonly value: [];
|
|
86
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
85
87
|
}];
|
|
86
88
|
readonly description: "Tags that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.";
|
|
87
89
|
};
|
|
@@ -100,7 +102,7 @@ export declare const options: {
|
|
|
100
102
|
readonly type: "string";
|
|
101
103
|
readonly array: true;
|
|
102
104
|
readonly default: [{
|
|
103
|
-
readonly value: [];
|
|
105
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
104
106
|
}];
|
|
105
107
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded CSS language.";
|
|
106
108
|
};
|
|
@@ -109,7 +111,7 @@ export declare const options: {
|
|
|
109
111
|
readonly type: "string";
|
|
110
112
|
readonly array: true;
|
|
111
113
|
readonly default: [{
|
|
112
|
-
readonly value: [];
|
|
114
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
113
115
|
}];
|
|
114
116
|
readonly description: "Tags that make their subsequent template literals be identified as embedded CSS language.";
|
|
115
117
|
};
|
|
@@ -138,7 +140,7 @@ export declare const options: {
|
|
|
138
140
|
readonly type: "string";
|
|
139
141
|
readonly array: true;
|
|
140
142
|
readonly default: [{
|
|
141
|
-
readonly value: [];
|
|
143
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
142
144
|
}];
|
|
143
145
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language.";
|
|
144
146
|
};
|
|
@@ -147,7 +149,7 @@ export declare const options: {
|
|
|
147
149
|
readonly type: "string";
|
|
148
150
|
readonly array: true;
|
|
149
151
|
readonly default: [{
|
|
150
|
-
readonly value: [];
|
|
152
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
151
153
|
}];
|
|
152
154
|
readonly description: "Tags that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language.";
|
|
153
155
|
};
|
|
@@ -176,7 +178,7 @@ export declare const options: {
|
|
|
176
178
|
readonly type: "string";
|
|
177
179
|
readonly array: true;
|
|
178
180
|
readonly default: [{
|
|
179
|
-
readonly value: [];
|
|
181
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
180
182
|
}];
|
|
181
183
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin.";
|
|
182
184
|
};
|
|
@@ -185,7 +187,7 @@ export declare const options: {
|
|
|
185
187
|
readonly type: "string";
|
|
186
188
|
readonly array: true;
|
|
187
189
|
readonly default: [{
|
|
188
|
-
readonly value: [];
|
|
190
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
189
191
|
}];
|
|
190
192
|
readonly description: "Tags that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin.";
|
|
191
193
|
};
|
|
@@ -204,7 +206,7 @@ export declare const options: {
|
|
|
204
206
|
readonly type: "string";
|
|
205
207
|
readonly array: true;
|
|
206
208
|
readonly default: [{
|
|
207
|
-
readonly value: [];
|
|
209
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
208
210
|
}];
|
|
209
211
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded GraphQL language.";
|
|
210
212
|
};
|
|
@@ -213,7 +215,7 @@ export declare const options: {
|
|
|
213
215
|
readonly type: "string";
|
|
214
216
|
readonly array: true;
|
|
215
217
|
readonly default: [{
|
|
216
|
-
readonly value: [];
|
|
218
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
217
219
|
}];
|
|
218
220
|
readonly description: "Tags that make their subsequent template literals be identified as embedded GraphQL language.";
|
|
219
221
|
};
|
|
@@ -232,7 +234,7 @@ export declare const options: {
|
|
|
232
234
|
readonly type: "string";
|
|
233
235
|
readonly array: true;
|
|
234
236
|
readonly default: [{
|
|
235
|
-
readonly value: [];
|
|
237
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
236
238
|
}];
|
|
237
239
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded HTML language.";
|
|
238
240
|
};
|
|
@@ -241,7 +243,7 @@ export declare const options: {
|
|
|
241
243
|
readonly type: "string";
|
|
242
244
|
readonly array: true;
|
|
243
245
|
readonly default: [{
|
|
244
|
-
readonly value: [];
|
|
246
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
245
247
|
}];
|
|
246
248
|
readonly description: "Tags that make their subsequent template literals be identified as embedded HTML language.";
|
|
247
249
|
};
|
|
@@ -270,7 +272,7 @@ export declare const options: {
|
|
|
270
272
|
readonly type: "string";
|
|
271
273
|
readonly array: true;
|
|
272
274
|
readonly default: [{
|
|
273
|
-
readonly value: [];
|
|
275
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
274
276
|
}];
|
|
275
277
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin.";
|
|
276
278
|
};
|
|
@@ -279,7 +281,7 @@ export declare const options: {
|
|
|
279
281
|
readonly type: "string";
|
|
280
282
|
readonly array: true;
|
|
281
283
|
readonly default: [{
|
|
282
|
-
readonly value: [];
|
|
284
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
283
285
|
}];
|
|
284
286
|
readonly description: "Tags that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin.";
|
|
285
287
|
};
|
|
@@ -298,7 +300,7 @@ export declare const options: {
|
|
|
298
300
|
readonly type: "string";
|
|
299
301
|
readonly array: true;
|
|
300
302
|
readonly default: [{
|
|
301
|
-
readonly value: [];
|
|
303
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
302
304
|
}];
|
|
303
305
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin.";
|
|
304
306
|
};
|
|
@@ -307,7 +309,7 @@ export declare const options: {
|
|
|
307
309
|
readonly type: "string";
|
|
308
310
|
readonly array: true;
|
|
309
311
|
readonly default: [{
|
|
310
|
-
readonly value: [];
|
|
312
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
311
313
|
}];
|
|
312
314
|
readonly description: "Tags that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin.";
|
|
313
315
|
};
|
|
@@ -326,7 +328,7 @@ export declare const options: {
|
|
|
326
328
|
readonly type: "string";
|
|
327
329
|
readonly array: true;
|
|
328
330
|
readonly default: [{
|
|
329
|
-
readonly value: [];
|
|
331
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
330
332
|
}];
|
|
331
333
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded JSON language.";
|
|
332
334
|
};
|
|
@@ -335,7 +337,7 @@ export declare const options: {
|
|
|
335
337
|
readonly type: "string";
|
|
336
338
|
readonly array: true;
|
|
337
339
|
readonly default: [{
|
|
338
|
-
readonly value: [];
|
|
340
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
339
341
|
}];
|
|
340
342
|
readonly description: "Tags that make their subsequent template literals be identified as embedded JSON language.";
|
|
341
343
|
};
|
|
@@ -359,15 +361,12 @@ export declare const options: {
|
|
|
359
361
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin.";
|
|
360
362
|
readonly deprecated: "Please use `embeddedJsonataComments` or `embeddedJsonataTags`.";
|
|
361
363
|
};
|
|
362
|
-
/**
|
|
363
|
-
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
364
|
-
*/
|
|
365
364
|
readonly embeddedJsonataComments: {
|
|
366
365
|
readonly category: "Embed";
|
|
367
366
|
readonly type: "string";
|
|
368
367
|
readonly array: true;
|
|
369
368
|
readonly default: [{
|
|
370
|
-
readonly value: [];
|
|
369
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
371
370
|
}];
|
|
372
371
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin.";
|
|
373
372
|
};
|
|
@@ -376,7 +375,7 @@ export declare const options: {
|
|
|
376
375
|
readonly type: "string";
|
|
377
376
|
readonly array: true;
|
|
378
377
|
readonly default: [{
|
|
379
|
-
readonly value: [];
|
|
378
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
380
379
|
}];
|
|
381
380
|
readonly description: "Tags that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin.";
|
|
382
381
|
};
|
|
@@ -395,7 +394,7 @@ export declare const options: {
|
|
|
395
394
|
readonly type: "string";
|
|
396
395
|
readonly array: true;
|
|
397
396
|
readonly default: [{
|
|
398
|
-
readonly value: [];
|
|
397
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
399
398
|
}];
|
|
400
399
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin.";
|
|
401
400
|
};
|
|
@@ -404,7 +403,7 @@ export declare const options: {
|
|
|
404
403
|
readonly type: "string";
|
|
405
404
|
readonly array: true;
|
|
406
405
|
readonly default: [{
|
|
407
|
-
readonly value: [];
|
|
406
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
408
407
|
}];
|
|
409
408
|
readonly description: "Tags that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin.";
|
|
410
409
|
};
|
|
@@ -423,7 +422,7 @@ export declare const options: {
|
|
|
423
422
|
readonly type: "string";
|
|
424
423
|
readonly array: true;
|
|
425
424
|
readonly default: [{
|
|
426
|
-
readonly value: [];
|
|
425
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
427
426
|
}];
|
|
428
427
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded Markdown language.";
|
|
429
428
|
};
|
|
@@ -432,7 +431,7 @@ export declare const options: {
|
|
|
432
431
|
readonly type: "string";
|
|
433
432
|
readonly array: true;
|
|
434
433
|
readonly default: [{
|
|
435
|
-
readonly value: [];
|
|
434
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
436
435
|
}];
|
|
437
436
|
readonly description: "Tags that make their subsequent template literals be identified as embedded Markdown language.";
|
|
438
437
|
};
|
|
@@ -454,14 +453,16 @@ export declare const options: {
|
|
|
454
453
|
readonly value: ["nginx"];
|
|
455
454
|
}];
|
|
456
455
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.";
|
|
457
|
-
readonly deprecated: "Please use `embeddedNginxComments` or `embeddedNginxTags`.";
|
|
456
|
+
readonly deprecated: "Please use `embeddedNginxComments` or `embeddedNginxTags`."; /**
|
|
457
|
+
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
458
|
+
*/
|
|
458
459
|
};
|
|
459
460
|
readonly embeddedNginxComments: {
|
|
460
461
|
readonly category: "Embed";
|
|
461
462
|
readonly type: "string";
|
|
462
463
|
readonly array: true;
|
|
463
464
|
readonly default: [{
|
|
464
|
-
readonly value: [];
|
|
465
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
465
466
|
}];
|
|
466
467
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.";
|
|
467
468
|
};
|
|
@@ -470,7 +471,7 @@ export declare const options: {
|
|
|
470
471
|
readonly type: "string";
|
|
471
472
|
readonly array: true;
|
|
472
473
|
readonly default: [{
|
|
473
|
-
readonly value: [];
|
|
474
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
474
475
|
}];
|
|
475
476
|
readonly description: "Tags that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.";
|
|
476
477
|
};
|
|
@@ -483,15 +484,13 @@ export declare const options: {
|
|
|
483
484
|
}];
|
|
484
485
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin.";
|
|
485
486
|
readonly deprecated: "Please use `embeddedPegjsComments` or `embeddedPegjsTags`.";
|
|
486
|
-
};
|
|
487
|
-
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
488
|
-
*/
|
|
487
|
+
};
|
|
489
488
|
readonly embeddedPegjsComments: {
|
|
490
489
|
readonly category: "Embed";
|
|
491
490
|
readonly type: "string";
|
|
492
491
|
readonly array: true;
|
|
493
492
|
readonly default: [{
|
|
494
|
-
readonly value: [];
|
|
493
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
495
494
|
}];
|
|
496
495
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin.";
|
|
497
496
|
};
|
|
@@ -500,7 +499,7 @@ export declare const options: {
|
|
|
500
499
|
readonly type: "string";
|
|
501
500
|
readonly array: true;
|
|
502
501
|
readonly default: [{
|
|
503
|
-
readonly value: [];
|
|
502
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
504
503
|
}];
|
|
505
504
|
readonly description: "Tags that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin.";
|
|
506
505
|
};
|
|
@@ -519,7 +518,7 @@ export declare const options: {
|
|
|
519
518
|
readonly type: "string";
|
|
520
519
|
readonly array: true;
|
|
521
520
|
readonly default: [{
|
|
522
|
-
readonly value: [];
|
|
521
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
523
522
|
}];
|
|
524
523
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded TypeScript language.";
|
|
525
524
|
};
|
|
@@ -528,7 +527,7 @@ export declare const options: {
|
|
|
528
527
|
readonly type: "string";
|
|
529
528
|
readonly array: true;
|
|
530
529
|
readonly default: [{
|
|
531
|
-
readonly value: [];
|
|
530
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
532
531
|
}];
|
|
533
532
|
readonly description: "Tags that make their subsequent template literals be identified as embedded TypeScript language.";
|
|
534
533
|
};
|
|
@@ -557,7 +556,7 @@ export declare const options: {
|
|
|
557
556
|
readonly type: "string";
|
|
558
557
|
readonly array: true;
|
|
559
558
|
readonly default: [{
|
|
560
|
-
readonly value: [];
|
|
559
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
561
560
|
}];
|
|
562
561
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin.";
|
|
563
562
|
};
|
|
@@ -566,7 +565,7 @@ export declare const options: {
|
|
|
566
565
|
readonly type: "string";
|
|
567
566
|
readonly array: true;
|
|
568
567
|
readonly default: [{
|
|
569
|
-
readonly value: [];
|
|
568
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
570
569
|
}];
|
|
571
570
|
readonly description: "Tags that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin.";
|
|
572
571
|
};
|
|
@@ -585,7 +584,7 @@ export declare const options: {
|
|
|
585
584
|
readonly type: "string";
|
|
586
585
|
readonly array: true;
|
|
587
586
|
readonly default: [{
|
|
588
|
-
readonly value: [];
|
|
587
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
589
588
|
}];
|
|
590
589
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin.";
|
|
591
590
|
};
|
|
@@ -594,7 +593,7 @@ export declare const options: {
|
|
|
594
593
|
readonly type: "string";
|
|
595
594
|
readonly array: true;
|
|
596
595
|
readonly default: [{
|
|
597
|
-
readonly value: [];
|
|
596
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
598
597
|
}];
|
|
599
598
|
readonly description: "Tags that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin.";
|
|
600
599
|
};
|
|
@@ -607,15 +606,13 @@ export declare const options: {
|
|
|
607
606
|
}];
|
|
608
607
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin.";
|
|
609
608
|
readonly deprecated: "Please use `embeddedPropertiesComments` or `embeddedPropertiesTags`.";
|
|
610
|
-
};
|
|
611
|
-
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
612
|
-
*/
|
|
609
|
+
};
|
|
613
610
|
readonly embeddedPropertiesComments: {
|
|
614
611
|
readonly category: "Embed";
|
|
615
612
|
readonly type: "string";
|
|
616
613
|
readonly array: true;
|
|
617
614
|
readonly default: [{
|
|
618
|
-
readonly value: [];
|
|
615
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
619
616
|
}];
|
|
620
617
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin.";
|
|
621
618
|
};
|
|
@@ -624,7 +621,7 @@ export declare const options: {
|
|
|
624
621
|
readonly type: "string";
|
|
625
622
|
readonly array: true;
|
|
626
623
|
readonly default: [{
|
|
627
|
-
readonly value: [];
|
|
624
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
628
625
|
}];
|
|
629
626
|
readonly description: "Tags that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin.";
|
|
630
627
|
};
|
|
@@ -643,7 +640,7 @@ export declare const options: {
|
|
|
643
640
|
readonly type: "string";
|
|
644
641
|
readonly array: true;
|
|
645
642
|
readonly default: [{
|
|
646
|
-
readonly value: [];
|
|
643
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
647
644
|
}];
|
|
648
645
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin.";
|
|
649
646
|
};
|
|
@@ -652,7 +649,7 @@ export declare const options: {
|
|
|
652
649
|
readonly type: "string";
|
|
653
650
|
readonly array: true;
|
|
654
651
|
readonly default: [{
|
|
655
|
-
readonly value: [];
|
|
652
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
656
653
|
}];
|
|
657
654
|
readonly description: "Tags that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin.";
|
|
658
655
|
};
|
|
@@ -671,7 +668,7 @@ export declare const options: {
|
|
|
671
668
|
readonly type: "string";
|
|
672
669
|
readonly array: true;
|
|
673
670
|
readonly default: [{
|
|
674
|
-
readonly value: [];
|
|
671
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
675
672
|
}];
|
|
676
673
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.";
|
|
677
674
|
};
|
|
@@ -680,7 +677,7 @@ export declare const options: {
|
|
|
680
677
|
readonly type: "string";
|
|
681
678
|
readonly array: true;
|
|
682
679
|
readonly default: [{
|
|
683
|
-
readonly value: [];
|
|
680
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
684
681
|
}];
|
|
685
682
|
readonly description: "Tags that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.";
|
|
686
683
|
};
|
|
@@ -703,13 +700,15 @@ export declare const options: {
|
|
|
703
700
|
}];
|
|
704
701
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin.";
|
|
705
702
|
readonly deprecated: "Please use `embeddedShComments` or `embeddedShTags`.";
|
|
706
|
-
};
|
|
703
|
+
}; /**
|
|
704
|
+
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
705
|
+
*/
|
|
707
706
|
readonly embeddedShComments: {
|
|
708
707
|
readonly category: "Embed";
|
|
709
708
|
readonly type: "string";
|
|
710
709
|
readonly array: true;
|
|
711
710
|
readonly default: [{
|
|
712
|
-
readonly value: [];
|
|
711
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
713
712
|
}];
|
|
714
713
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin.";
|
|
715
714
|
};
|
|
@@ -718,7 +717,7 @@ export declare const options: {
|
|
|
718
717
|
readonly type: "string";
|
|
719
718
|
readonly array: true;
|
|
720
719
|
readonly default: [{
|
|
721
|
-
readonly value: [];
|
|
720
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
722
721
|
}];
|
|
723
722
|
readonly description: "Tags that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin.";
|
|
724
723
|
};
|
|
@@ -737,7 +736,7 @@ export declare const options: {
|
|
|
737
736
|
readonly type: "string";
|
|
738
737
|
readonly array: true;
|
|
739
738
|
readonly default: [{
|
|
740
|
-
readonly value: [];
|
|
739
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
741
740
|
}];
|
|
742
741
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin.";
|
|
743
742
|
};
|
|
@@ -746,7 +745,7 @@ export declare const options: {
|
|
|
746
745
|
readonly type: "string";
|
|
747
746
|
readonly array: true;
|
|
748
747
|
readonly default: [{
|
|
749
|
-
readonly value: [];
|
|
748
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
750
749
|
}];
|
|
751
750
|
readonly description: "Tags that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin.";
|
|
752
751
|
};
|
|
@@ -785,7 +784,7 @@ export declare const options: {
|
|
|
785
784
|
readonly type: "string";
|
|
786
785
|
readonly array: true;
|
|
787
786
|
readonly default: [{
|
|
788
|
-
readonly value: [];
|
|
787
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
789
788
|
}];
|
|
790
789
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin.";
|
|
791
790
|
};
|
|
@@ -794,7 +793,7 @@ export declare const options: {
|
|
|
794
793
|
readonly type: "string";
|
|
795
794
|
readonly array: true;
|
|
796
795
|
readonly default: [{
|
|
797
|
-
readonly value: [];
|
|
796
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
798
797
|
}];
|
|
799
798
|
readonly description: "Tags that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin.";
|
|
800
799
|
};
|
|
@@ -807,15 +806,13 @@ export declare const options: {
|
|
|
807
806
|
}];
|
|
808
807
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin.";
|
|
809
808
|
readonly deprecated: "Please use `embeddedXmlComments` or `embeddedXmlTags`.";
|
|
810
|
-
};
|
|
811
|
-
* @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
|
|
812
|
-
*/
|
|
809
|
+
};
|
|
813
810
|
readonly embeddedXmlComments: {
|
|
814
811
|
readonly category: "Embed";
|
|
815
812
|
readonly type: "string";
|
|
816
813
|
readonly array: true;
|
|
817
814
|
readonly default: [{
|
|
818
|
-
readonly value: [];
|
|
815
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
819
816
|
}];
|
|
820
817
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin.";
|
|
821
818
|
};
|
|
@@ -824,7 +821,7 @@ export declare const options: {
|
|
|
824
821
|
readonly type: "string";
|
|
825
822
|
readonly array: true;
|
|
826
823
|
readonly default: [{
|
|
827
|
-
readonly value: [];
|
|
824
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
828
825
|
}];
|
|
829
826
|
readonly description: "Tags that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin.";
|
|
830
827
|
};
|
|
@@ -852,7 +849,7 @@ export declare const options: {
|
|
|
852
849
|
readonly type: "string";
|
|
853
850
|
readonly array: true;
|
|
854
851
|
readonly default: [{
|
|
855
|
-
readonly value: [];
|
|
852
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
856
853
|
}];
|
|
857
854
|
readonly description: "Block comments that make their subsequent template literals be identified as embedded YAML language.";
|
|
858
855
|
};
|
|
@@ -861,7 +858,7 @@ export declare const options: {
|
|
|
861
858
|
readonly type: "string";
|
|
862
859
|
readonly array: true;
|
|
863
860
|
readonly default: [{
|
|
864
|
-
readonly value: [];
|
|
861
|
+
readonly value: ["9ff2b366e8ca4c97b9aed1a29b5b94ed"];
|
|
865
862
|
}];
|
|
866
863
|
readonly description: "Tags that make their subsequent template literals be identified as embedded YAML language.";
|
|
867
864
|
};
|
package/dist/utils.d.ts
CHANGED
|
@@ -130,8 +130,8 @@ export declare function parseCommentFromTemplateLiteralAstPath({ node, parent, }
|
|
|
130
130
|
export declare function parseTagFromTemplateLiteralAstPath({ parent, }: AstPath<Node> & {
|
|
131
131
|
node: TemplateLiteral;
|
|
132
132
|
}): string | TemplateLiteral | import("estree").ArrayExpression | import("estree").ArrowFunctionExpression | import("estree").AssignmentExpression | import("estree").AwaitExpression | import("estree").BinaryExpression | import("estree").CallExpression | import("estree").ChainExpression | import("estree").ClassExpression | import("estree").ConditionalExpression | import("estree").FunctionExpression | import("estree").ImportExpression | import("estree").Literal | import("estree").LogicalExpression | import("estree").MemberExpression | import("estree").MetaProperty | import("estree").ObjectExpression | import("estree").SequenceExpression | import("estree").TaggedTemplateExpression | import("estree").ThisExpression | import("estree").UnaryExpression | import("estree").UpdateExpression | import("estree").YieldExpression | undefined;
|
|
133
|
-
export declare function createCommentsInOptionsGenerator(options: Options, comment: string): (
|
|
134
|
-
export declare function createTagsInOptionsGenerator(options: Options, tag?: string): (
|
|
133
|
+
export declare function createCommentsInOptionsGenerator(options: Options, comment: string): (_: EmbeddedLanguage) => Generator<string, void, undefined>;
|
|
134
|
+
export declare function createTagsInOptionsGenerator(options: Options, tag?: string): (_: EmbeddedLanguage) => Generator<string, void, undefined>;
|
|
135
135
|
export declare function createEmbeddedDoc(node: TemplateLiteral, embeddedLanguage: EmbeddedLanguage, commentOrTag: EmbeddedComment | EmbeddedTag, kind: "comment" | "tag", options: Options): ReturnType<Exclude<Printer["embed"], undefined>>;
|
|
136
136
|
export declare function assumeAs<T>(_: unknown): asserts _ is T;
|
|
137
137
|
export declare function compareObjects<T1 extends Record<string | number | symbol, unknown>, T2 extends Record<string | number | symbol, unknown>>(value1: T1, value2: T2, ignoreSet?: Set<keyof T1 | keyof T2>): boolean;
|
package/package.json
CHANGED
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
"name": "prettier-plugin-embed",
|
|
3
3
|
"description": "A configurable Prettier plugin to format embedded languages in JS/TS files.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.4.
|
|
5
|
+
"version": "0.4.15",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"files": [
|
|
8
|
-
"./dist"
|
|
9
|
-
],
|
|
7
|
+
"files": ["./dist"],
|
|
10
8
|
"main": "./dist/index.js",
|
|
11
9
|
"module": "./dist/index.js",
|
|
12
10
|
"exports": {
|
|
@@ -58,6 +56,7 @@
|
|
|
58
56
|
"access": "public"
|
|
59
57
|
},
|
|
60
58
|
"scripts": {
|
|
59
|
+
"install:ci": "npm ci && ./scripts/prepare.sh",
|
|
61
60
|
"update-hooks": "simple-git-hooks",
|
|
62
61
|
"changeset": "changeset",
|
|
63
62
|
"bump": "changeset version 2>/dev/null | grep . && npm i; exit 0",
|
|
@@ -75,9 +74,6 @@
|
|
|
75
74
|
"nocheck-chevrotain-types": "tsx ./scripts/nocheck-chevrotain-types.ts",
|
|
76
75
|
"copy": "copy-files-from-to",
|
|
77
76
|
"postbuild": "tsc --project ./tsconfig.production.json && conc \"npm:add-glob-import-types\" \"npm:nocheck-chevrotain-types\" \"npm:copy\"",
|
|
78
|
-
"prebuild:ci": "npm run type-check",
|
|
79
|
-
"build:ci": "vite build",
|
|
80
|
-
"postbuild:ci": "npm run postbuild",
|
|
81
77
|
"test": "vitest",
|
|
82
78
|
"test:ui": "vitest --ui",
|
|
83
79
|
"preview": "vite preview",
|
|
@@ -87,10 +83,11 @@
|
|
|
87
83
|
"postpublish": "npm run restore-readme",
|
|
88
84
|
"ncu": "ncu",
|
|
89
85
|
"postncu": "npm i",
|
|
90
|
-
"bump-biome": "npm i @biomejs/biome@latest
|
|
86
|
+
"bump-biome:latest": "npm i -DE @biomejs/biome@latest",
|
|
87
|
+
"bump-biome:nightly": "npm i -DE @biomejs/biome@nightly"
|
|
91
88
|
},
|
|
92
89
|
"devDependencies": {
|
|
93
|
-
"@biomejs/biome": "1.5.3",
|
|
90
|
+
"@biomejs/biome": "1.5.3-nightly.69f9031",
|
|
94
91
|
"@changesets/cli": "^2.27.1",
|
|
95
92
|
"@commitlint/cli": "^18.6.1",
|
|
96
93
|
"@commitlint/config-conventional": "^18.6.2",
|
|
@@ -99,9 +96,9 @@
|
|
|
99
96
|
"@prettier/plugin-ruby": "^4.0.4",
|
|
100
97
|
"@prettier/plugin-xml": "^3.2.2",
|
|
101
98
|
"@stedi/prettier-plugin-jsonata": "^2.1.1",
|
|
102
|
-
"@types/node": "^20.11.
|
|
103
|
-
"@vitest/coverage-istanbul": "^1.3.
|
|
104
|
-
"@vitest/ui": "^1.3.
|
|
99
|
+
"@types/node": "^20.11.20",
|
|
100
|
+
"@vitest/coverage-istanbul": "^1.3.1",
|
|
101
|
+
"@vitest/ui": "^1.3.1",
|
|
105
102
|
"@xml-tools/parser": "^1.0.11",
|
|
106
103
|
"chevrotain": "7.1.1",
|
|
107
104
|
"concurrently": "^8.2.2",
|
|
@@ -126,8 +123,8 @@
|
|
|
126
123
|
"simple-git-hooks": "^2.9.0",
|
|
127
124
|
"tsx": "^4.7.1",
|
|
128
125
|
"typescript": "^5.3.3",
|
|
129
|
-
"vite": "^5.1.
|
|
130
|
-
"vitest": "^1.3.
|
|
126
|
+
"vite": "^5.1.4",
|
|
127
|
+
"vitest": "^1.3.1"
|
|
131
128
|
},
|
|
132
129
|
"dependencies": {
|
|
133
130
|
"@types/estree": "^1.0.5",
|
|
@@ -135,6 +132,6 @@
|
|
|
135
132
|
"micro-memoize": "^4.1.2",
|
|
136
133
|
"package-up": "^5.0.0",
|
|
137
134
|
"tiny-jsonc": "^1.0.1",
|
|
138
|
-
"type-fest": "^4.10.
|
|
135
|
+
"type-fest": "^4.10.3"
|
|
139
136
|
}
|
|
140
137
|
}
|