prettier-plugin-embed 0.4.7 → 0.4.9

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.
Files changed (104) hide show
  1. package/README.md +124 -3
  2. package/dist/embedded/css/language.d.ts +1 -1
  3. package/dist/embedded/css/options.d.ts +2 -8
  4. package/dist/embedded/es/language.d.ts +1 -1
  5. package/dist/embedded/es/options.d.ts +3 -9
  6. package/dist/embedded/glsl/language.d.ts +1 -1
  7. package/dist/embedded/glsl/options.d.ts +2 -8
  8. package/dist/embedded/graphql/language.d.ts +1 -1
  9. package/dist/embedded/graphql/options.d.ts +2 -8
  10. package/dist/embedded/html/language.d.ts +1 -1
  11. package/dist/embedded/html/options.d.ts +2 -8
  12. package/dist/embedded/index.d.ts +1 -1
  13. package/dist/embedded/ini/language.d.ts +1 -1
  14. package/dist/embedded/ini/options.d.ts +2 -9
  15. package/dist/embedded/ini/plugin-ini-types.d.ts +3 -0
  16. package/dist/embedded/ini/plugin-ini.d.ts +6 -0
  17. package/dist/embedded/java/embedder.d.ts +12 -0
  18. package/dist/embedded/java/index.d.ts +3 -0
  19. package/dist/embedded/java/language.d.ts +9 -0
  20. package/dist/embedded/java/options.d.ts +27 -0
  21. package/dist/embedded/java/plugin-java-types.d.ts +7 -0
  22. package/dist/embedded/java/plugin-java.d.ts +6 -0
  23. package/dist/embedded/json/language.d.ts +1 -1
  24. package/dist/embedded/json/options.d.ts +2 -8
  25. package/dist/embedded/jsonata/embedder.d.ts +12 -0
  26. package/dist/embedded/jsonata/index.d.ts +3 -0
  27. package/dist/embedded/jsonata/language.d.ts +9 -0
  28. package/dist/embedded/jsonata/options.d.ts +27 -0
  29. package/dist/embedded/latex/language.d.ts +1 -1
  30. package/dist/embedded/latex/options.d.ts +2 -8
  31. package/dist/embedded/markdown/embedder.d.ts +1 -1
  32. package/dist/embedded/markdown/language.d.ts +1 -1
  33. package/dist/embedded/markdown/options.d.ts +2 -9
  34. package/dist/embedded/markdown/plugin-markdown-types.d.ts +3 -0
  35. package/dist/embedded/markdown/plugin-markdown.d.ts +6 -0
  36. package/dist/embedded/nginx/embedder.d.ts +12 -0
  37. package/dist/embedded/nginx/index.d.ts +3 -0
  38. package/dist/embedded/nginx/language.d.ts +9 -0
  39. package/dist/embedded/nginx/options.d.ts +27 -0
  40. package/dist/embedded/nginx/plugin-nginx-types.d.ts +4 -0
  41. package/dist/embedded/nginx/plugin-nginx.d.ts +6 -0
  42. package/dist/embedded/noop/language.d.ts +1 -1
  43. package/dist/embedded/noop/options.d.ts +2 -2
  44. package/dist/embedded/pegjs/embedder.d.ts +12 -0
  45. package/dist/embedded/pegjs/index.d.ts +3 -0
  46. package/dist/embedded/pegjs/language.d.ts +9 -0
  47. package/dist/embedded/pegjs/options.d.ts +27 -0
  48. package/dist/embedded/pegjs/plugin-pegjs-types.d.ts +5 -0
  49. package/dist/embedded/pegjs/plugin-pegjs.d.ts +6 -0
  50. package/dist/embedded/php/language.d.ts +1 -1
  51. package/dist/embedded/php/options.d.ts +2 -11
  52. package/dist/embedded/php/plugin-php-types.d.ts +5 -0
  53. package/dist/embedded/php/plugin-php.d.ts +6 -0
  54. package/dist/embedded/prisma/embedder.d.ts +12 -0
  55. package/dist/embedded/prisma/index.d.ts +3 -0
  56. package/dist/embedded/prisma/language.d.ts +9 -0
  57. package/dist/embedded/prisma/options.d.ts +27 -0
  58. package/dist/embedded/properties/language.d.ts +1 -1
  59. package/dist/embedded/properties/options.d.ts +2 -10
  60. package/dist/embedded/properties/plugin-properties-types.d.ts +4 -0
  61. package/dist/embedded/properties/plugin-properties.d.ts +6 -0
  62. package/dist/embedded/pug/embedder.d.ts +12 -0
  63. package/dist/embedded/pug/index.d.ts +3 -0
  64. package/dist/embedded/pug/language.d.ts +9 -0
  65. package/dist/embedded/pug/options.d.ts +27 -0
  66. package/dist/embedded/pug/plugin-pug-types.d.ts +29 -0
  67. package/dist/embedded/pug/plugin-pug.d.ts +6 -0
  68. package/dist/embedded/register.d.ts +22 -16
  69. package/dist/embedded/ruby/language.d.ts +1 -1
  70. package/dist/embedded/ruby/options.d.ts +3 -16
  71. package/dist/embedded/ruby/plugin-ruby-types.d.ts +6 -0
  72. package/dist/embedded/ruby/plugin-ruby.d.ts +6 -0
  73. package/dist/embedded/sh/language.d.ts +1 -1
  74. package/dist/embedded/sh/options.d.ts +3 -10
  75. package/dist/embedded/sh/plugin-sh-types.d.ts +4 -0
  76. package/dist/embedded/sh/plugin-sh.d.ts +6 -0
  77. package/dist/embedded/sql/language.d.ts +1 -1
  78. package/dist/embedded/sql/options.d.ts +4 -13
  79. package/dist/embedded/sql/plugin-sql-cst-types.d.ts +4 -0
  80. package/dist/embedded/sql/plugin-sql-cst.d.ts +6 -0
  81. package/dist/embedded/sql/plugin-sql-types.d.ts +4 -0
  82. package/dist/embedded/sql/plugin-sql.d.ts +6 -0
  83. package/dist/embedded/toml/language.d.ts +1 -1
  84. package/dist/embedded/toml/options.d.ts +3 -10
  85. package/dist/embedded/toml/plugin-toml-types.d.ts +4 -0
  86. package/dist/embedded/toml/plugin-toml.d.ts +6 -0
  87. package/dist/embedded/ts/language.d.ts +1 -1
  88. package/dist/embedded/ts/options.d.ts +3 -9
  89. package/dist/embedded/types.d.ts +1 -1
  90. package/dist/embedded/utils.d.ts +7 -4
  91. package/dist/embedded/xml/language.d.ts +1 -1
  92. package/dist/embedded/xml/options.d.ts +2 -12
  93. package/dist/embedded/xml/parser.d.ts +1 -0
  94. package/dist/embedded/xml/plugin-xml-types.d.ts +6 -0
  95. package/dist/embedded/xml/plugin-xml.d.ts +6 -0
  96. package/dist/embedded/yaml/language.d.ts +1 -1
  97. package/dist/embedded/yaml/options.d.ts +2 -8
  98. package/dist/index.d.ts +7 -2
  99. package/dist/index.js +1270 -1043
  100. package/dist/options.d.ts +78 -28
  101. package/dist/plugin-embed.d.ts +6 -0
  102. package/dist/types.d.ts +5 -24
  103. package/dist/utils.d.ts +1 -4
  104. package/package.json +51 -14
package/dist/options.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { type AutocompleteStringList, type EmbeddedDefaultIdentifier, type PrettierPluginEmbedOptions } from "./embedded/index.js";
2
- type EmbeddedIdentifiers = AutocompleteStringList<EmbeddedDefaultIdentifier[]>;
1
+ import { type AutocompleteStringList, type EmbeddedDefaultIdentifier } from "./embedded/index.js";
2
+ type EmbeddedIdentifiers = AutocompleteStringList<EmbeddedDefaultIdentifier>;
3
3
  declare const NO_EMBEDDED_IDENTIFICATION_BY_COMMENT = "noEmbeddedIdentificationByComment";
4
4
  declare const NO_EMBEDDED_IDENTIFICATION_BY_TAG = "noEmbeddedIdentificationByTag";
5
5
  declare const PRESERVE_EMBEDDED_EXTERIOR_WHITESPACES = "preserveEmbeddedExteriorWhitespaces";
@@ -142,6 +142,15 @@ export declare const options: {
142
142
  }];
143
143
  readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin.";
144
144
  };
145
+ readonly embeddedJavaIdentifiers: {
146
+ readonly category: "Embed";
147
+ readonly type: "string";
148
+ readonly array: true;
149
+ readonly default: [{
150
+ readonly value: ["java"];
151
+ }];
152
+ readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin.";
153
+ };
145
154
  readonly embeddedJsonIdentifiers: {
146
155
  readonly category: "Embed";
147
156
  readonly type: "string";
@@ -161,6 +170,15 @@ export declare const options: {
161
170
  description: string;
162
171
  }[];
163
172
  };
173
+ readonly embeddedJsonataIdentifiers: {
174
+ readonly category: "Embed";
175
+ readonly type: "string";
176
+ readonly array: true;
177
+ readonly default: [{
178
+ readonly value: ["jsonata"];
179
+ }];
180
+ 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.";
181
+ };
164
182
  readonly embeddedLatexIdentifiers: {
165
183
  readonly category: "Embed";
166
184
  readonly type: "string";
@@ -189,6 +207,43 @@ export declare const options: {
189
207
  description: string;
190
208
  }[];
191
209
  };
210
+ readonly embeddedNginxIdentifiers: {
211
+ readonly category: "Embed";
212
+ readonly type: "string";
213
+ readonly array: true;
214
+ readonly default: [{
215
+ readonly value: ["nginx"];
216
+ }];
217
+ 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.";
218
+ };
219
+ readonly embeddedPegjsIdentifiers: {
220
+ readonly category: "Embed";
221
+ readonly type: "string";
222
+ readonly array: true;
223
+ readonly default: [{
224
+ readonly value: ["pegjs", "peggy", "peg"];
225
+ }];
226
+ 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.";
227
+ };
228
+ readonly embeddedTsIdentifiers: {
229
+ readonly category: "Embed";
230
+ readonly type: "string";
231
+ readonly array: true;
232
+ readonly default: [{
233
+ readonly value: ["ts", "tsx", "cts", "mts", "typescript"];
234
+ }];
235
+ readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TypeScript language.";
236
+ };
237
+ readonly embeddedTsParser: {
238
+ category: string;
239
+ type: "choice";
240
+ default: "typescript";
241
+ description: string;
242
+ choices: {
243
+ value: "typescript" | "babel-ts";
244
+ description: string;
245
+ }[];
246
+ };
192
247
  readonly embeddedPhpIdentifiers: {
193
248
  readonly category: "Embed";
194
249
  readonly type: "string";
@@ -198,6 +253,15 @@ export declare const options: {
198
253
  }];
199
254
  readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin.";
200
255
  };
256
+ readonly embeddedPrismaIdentifiers: {
257
+ readonly category: "Embed";
258
+ readonly type: "string";
259
+ readonly array: true;
260
+ readonly default: [{
261
+ readonly value: ["prisma"];
262
+ }];
263
+ readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin.";
264
+ };
201
265
  readonly embeddedPropertiesIdentifiers: {
202
266
  readonly category: "Embed";
203
267
  readonly type: "string";
@@ -207,6 +271,15 @@ export declare const options: {
207
271
  }];
208
272
  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.";
209
273
  };
274
+ readonly embeddedPugIdentifiers: {
275
+ readonly category: "Embed";
276
+ readonly type: "string";
277
+ readonly array: true;
278
+ readonly default: [{
279
+ readonly value: ["pug", "jade"];
280
+ }];
281
+ readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin.";
282
+ };
210
283
  readonly embeddedRubyIdentifiers: {
211
284
  readonly category: "Embed";
212
285
  readonly type: "string";
@@ -260,7 +333,7 @@ export declare const options: {
260
333
  default: "sqlite";
261
334
  description: string;
262
335
  choices: {
263
- value: "sqlite" | "bigquery" | "mysql" | "mariadb" | "postgresql";
336
+ value: "bigquery" | "mariadb" | "mysql" | "postgresql" | "sqlite";
264
337
  description: string;
265
338
  }[];
266
339
  };
@@ -273,25 +346,6 @@ export declare const options: {
273
346
  }];
274
347
  readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin.";
275
348
  };
276
- readonly embeddedTsIdentifiers: {
277
- readonly category: "Embed";
278
- readonly type: "string";
279
- readonly array: true;
280
- readonly default: [{
281
- readonly value: ["ts", "tsx", "cts", "mts", "typescript"];
282
- }];
283
- readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TypeScript language.";
284
- };
285
- readonly embeddedTsParser: {
286
- category: string;
287
- type: "choice";
288
- default: "typescript";
289
- description: string;
290
- choices: {
291
- value: "typescript" | "babel-ts";
292
- description: string;
293
- }[];
294
- };
295
349
  readonly embeddedXmlIdentifiers: {
296
350
  readonly category: "Embed";
297
351
  readonly type: "string";
@@ -320,7 +374,7 @@ export declare const options: {
320
374
  readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded YAML language.";
321
375
  };
322
376
  };
323
- export interface PrettierPluginGlobalOptions {
377
+ export interface PluginEmbedLanguageAgnosticOptions {
324
378
  [NO_EMBEDDED_IDENTIFICATION_BY_COMMENT]?: EmbeddedIdentifiers;
325
379
  [NO_EMBEDDED_IDENTIFICATION_BY_TAG]?: EmbeddedIdentifiers;
326
380
  [PRESERVE_EMBEDDED_EXTERIOR_WHITESPACES]?: EmbeddedIdentifiers;
@@ -328,11 +382,7 @@ export interface PrettierPluginGlobalOptions {
328
382
  [EMBEDDED_OVERRIDES]?: string;
329
383
  }
330
384
  declare module "./embedded/types.js" {
331
- interface PrettierPluginEmbedOptions extends PrettierPluginGlobalOptions {
332
- }
333
- }
334
- declare module "prettier" {
335
- interface Options extends PrettierPluginEmbedOptions {
385
+ interface PluginEmbedOptions extends PluginEmbedLanguageAgnosticOptions {
336
386
  }
337
387
  }
338
388
  export {};
@@ -0,0 +1,6 @@
1
+ import "prettier";
2
+ import type { PluginEmbedOptions } from "./embedded/index.js";
3
+
4
+ declare module "prettier" {
5
+ interface Options extends PluginEmbedOptions {}
6
+ }
package/dist/types.d.ts CHANGED
@@ -1,26 +1,8 @@
1
1
  import type { TemplateLiteral } from "estree";
2
2
  import type { AstPath, Doc, Options } from "prettier";
3
- import { makeIdentifiersOptionName, type AutocompleteStringList, type EmbeddedDefaultIdentifier, type EmbeddedLanguage, type PrettierPluginEmbedOptions } from "./embedded/index.js";
4
- import type { PrettierPluginGlobalOptions } from "./options.js";
5
- import { RemoveIndex } from "./utils.js";
6
- declare module "estree" {
7
- interface Comment {
8
- leading: boolean;
9
- trailing: boolean;
10
- nodeDescription: string;
11
- }
12
- interface BaseNode {
13
- comments?: Comment[];
14
- }
15
- interface File extends BaseNode {
16
- type: "File";
17
- sourceType: "script" | "module";
18
- program: Program;
19
- }
20
- interface NodeMap {
21
- File: File;
22
- }
23
- }
3
+ import type { OmitIndexSignature } from "type-fest";
4
+ import type { AutocompleteStringList, EmbeddedDefaultIdentifier, EmbeddedLanguage, PluginEmbedOptions, makeIdentifiersOptionName } from "./embedded/index.js";
5
+ import type { PluginEmbedLanguageAgnosticOptions } from "./options.js";
24
6
  export type InternalPrintFun = (selector?: string | number | (string | number)[] | AstPath<TemplateLiteral>) => Doc;
25
7
  export interface EmbedderPayload {
26
8
  identifier: string;
@@ -29,7 +11,6 @@ export interface EmbedderPayload {
29
11
  }
30
12
  export type Embedder<T extends Options = Options> = (textToDoc: (text: string, options: T) => Promise<Doc>, print: InternalPrintFun, path: AstPath<TemplateLiteral>, options: T, embedderPayload: EmbedderPayload) => Promise<Doc>;
31
13
  export interface EmbeddedOverride {
32
- identifiers: AutocompleteStringList<EmbeddedDefaultIdentifier[]>;
33
- options: Omit<Omit<RemoveIndex<Options>, keyof PrettierPluginEmbedOptions> & Omit<PrettierPluginEmbedOptions, keyof PrettierPluginGlobalOptions | ReturnType<typeof makeIdentifiersOptionName<EmbeddedLanguage>>>, "printWidth" | "endOfLine" | "useTabs" | "tabWidth" | "parser" | "filepath" | "embeddedLanguageFormatting" | `__${string}`>;
14
+ identifiers: AutocompleteStringList<EmbeddedDefaultIdentifier>;
15
+ options: Omit<Omit<OmitIndexSignature<Options>, keyof PluginEmbedOptions> & Omit<PluginEmbedOptions, keyof PluginEmbedLanguageAgnosticOptions | ReturnType<typeof makeIdentifiersOptionName<EmbeddedLanguage>>>, "printWidth" | "endOfLine" | "useTabs" | "tabWidth" | "parser" | "filepath" | "embeddedLanguageFormatting" | `__${string}`>;
34
16
  }
35
- export type EmbeddedOverrides = EmbeddedOverride[];
package/dist/utils.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  import type { Node } from "estree";
2
2
  import { type AstPath, type Options } from "prettier";
3
- export declare const resolveEmbeddedOverrideOptions: (embeddedOverridesString: string | undefined, identifier: string, sourceFilePath?: string) => Promise<Omit<Omit<RemoveIndex<Options>, keyof import("./index.js").PrettierPluginEmbedOptions> & Omit<import("./index.js").PrettierPluginEmbedOptions, "embeddedNoopIdentifiers" | "embeddedCssIdentifiers" | "embeddedEsIdentifiers" | "embeddedGlslIdentifiers" | "embeddedGraphqlIdentifiers" | "embeddedHtmlIdentifiers" | "embeddedIniIdentifiers" | "embeddedJsonIdentifiers" | "embeddedLatexIdentifiers" | "embeddedMarkdownIdentifiers" | "embeddedPhpIdentifiers" | "embeddedPropertiesIdentifiers" | "embeddedRubyIdentifiers" | "embeddedShIdentifiers" | "embeddedSqlIdentifiers" | "embeddedTomlIdentifiers" | "embeddedTsIdentifiers" | "embeddedXmlIdentifiers" | "embeddedYamlIdentifiers" | keyof import("./options.js").PrettierPluginGlobalOptions>, "parser" | "filepath" | "endOfLine" | "embeddedLanguageFormatting" | "printWidth" | "tabWidth" | "useTabs" | `__${string}`> | undefined>;
3
+ export declare const resolveEmbeddedOverrideOptions: (embeddedOverridesString: string | undefined, identifier: string, sourceFilePath?: string) => Promise<Omit<Omit<import("type-fest").OmitIndexSignature<Options>, keyof import("./index.js").PluginEmbedOptions> & Omit<import("./index.js").PluginEmbedOptions, "embeddedNoopIdentifiers" | "embeddedCssIdentifiers" | "embeddedEsIdentifiers" | "embeddedGlslIdentifiers" | "embeddedGraphqlIdentifiers" | "embeddedHtmlIdentifiers" | "embeddedIniIdentifiers" | "embeddedJavaIdentifiers" | "embeddedJsonIdentifiers" | "embeddedJsonataIdentifiers" | "embeddedLatexIdentifiers" | "embeddedMarkdownIdentifiers" | "embeddedNginxIdentifiers" | "embeddedPegjsIdentifiers" | "embeddedTsIdentifiers" | "embeddedPhpIdentifiers" | "embeddedPrismaIdentifiers" | "embeddedPropertiesIdentifiers" | "embeddedPugIdentifiers" | "embeddedRubyIdentifiers" | "embeddedShIdentifiers" | "embeddedSqlIdentifiers" | "embeddedTomlIdentifiers" | "embeddedXmlIdentifiers" | "embeddedYamlIdentifiers" | keyof import("./options.js").PluginEmbedLanguageAgnosticOptions>, "parser" | "filepath" | "endOfLine" | "embeddedLanguageFormatting" | "printWidth" | "tabWidth" | "useTabs" | `__${string}`> | undefined>;
4
4
  export declare function getIdentifierFromComment({ node, parent }: AstPath<Node>, comments: string[], options: Options): string | undefined;
5
5
  export declare function getIdentifierFromTag({ node, parent }: AstPath<Node>, tags: string[], options: Options): string | undefined;
6
- export type RemoveIndex<T> = {
7
- [K in keyof T as string extends K ? never : number extends K ? never : symbol extends K ? never : K]: T[K];
8
- };
package/package.json CHANGED
@@ -2,7 +2,7 @@
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.7",
5
+ "version": "0.4.9",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "./dist"
@@ -13,7 +13,23 @@
13
13
  ".": {
14
14
  "import": "./dist/index.js",
15
15
  "default": "./dist/index.js"
16
- }
16
+ },
17
+ "./plugin-embed": {
18
+ "types": "./dist/plugin-embed.d.ts"
19
+ },
20
+ "./embedded/*": {
21
+ "types": "./dist/embedded/*.d.ts"
22
+ },
23
+ "./embedded/index": null,
24
+ "./embedded/register": null,
25
+ "./embedded/types": null,
26
+ "./embedded/utils": null,
27
+ "./embedded/*/index": null,
28
+ "./embedded/*/language": null,
29
+ "./embedded/*/options": null,
30
+ "./embedded/*/embedder": null,
31
+ "./embedded/*/parser": null,
32
+ "./embedded/*/printer": null
17
33
  },
18
34
  "repository": {
19
35
  "type": "git",
@@ -42,14 +58,23 @@
42
58
  "access": "public"
43
59
  },
44
60
  "scripts": {
61
+ "prepare": "patch-package",
62
+ "update-hooks": "simple-git-hooks",
63
+ "bump": "bumpp",
45
64
  "dev": "vite",
46
- "lint": "eslint . --ext .ts",
65
+ "lint": "biome lint .",
47
66
  "type-check": "tsc --noEmit --emitDeclarationOnly false",
48
- "format": "prettier . --write",
49
- "prebuild": "npm run lint && npm run type-check && npm run format",
67
+ "format": "biome format . --write",
68
+ "check": "biome check --apply .",
69
+ "prebuild": "npm run check && npm run type-check",
50
70
  "build": "vite build",
51
71
  "add-glob-import-types": "tsx ./scripts/add-glob-import-types.ts",
52
- "postbuild": "tsc --project ./tsconfig.production.json && npm run add-glob-import-types",
72
+ "nocheck-chevrotain-types": "tsx ./scripts/nocheck-chevrotain-types.ts",
73
+ "copy": "copy-files-from-to",
74
+ "postbuild": "tsc --project ./tsconfig.production.json && conc \"npm:add-glob-import-types\" \"npm:nocheck-chevrotain-types\" \"npm:copy\"",
75
+ "prebuild:ci": "npm run type-check",
76
+ "build:ci": "vite build",
77
+ "postbuild:ci": "npm run postbuild",
53
78
  "test": "vitest",
54
79
  "test:ui": "vitest --ui",
55
80
  "preview": "vite preview",
@@ -58,45 +83,57 @@
58
83
  "prepublishOnly": "npm run build && npm run process-readme",
59
84
  "postpublish": "npm run restore-readme",
60
85
  "ncu": "npx ncu",
61
- "postncu": "npm i"
86
+ "postncu": "npm i",
87
+ "bump-biome": "npm i @biomejs/biome@latest --save-exact"
62
88
  },
63
89
  "devDependencies": {
90
+ "@biomejs/biome": "1.5.3",
64
91
  "@commitlint/cli": "^18.4.4",
65
92
  "@commitlint/config-conventional": "^18.4.4",
66
93
  "@prettier/plugin-php": "^0.22.1",
94
+ "@prettier/plugin-pug": "^3.0.0",
67
95
  "@prettier/plugin-ruby": "^4.0.4",
68
96
  "@prettier/plugin-xml": "^3.2.2",
69
- "@types/estree": "^1.0.5",
97
+ "@stedi/prettier-plugin-jsonata": "^2.1.1",
70
98
  "@types/node": "^20.11.5",
71
- "@typescript-eslint/eslint-plugin": "^6.19.0",
72
- "@typescript-eslint/parser": "^6.19.0",
73
99
  "@vitest/coverage-istanbul": "^1.2.1",
74
100
  "@vitest/ui": "^1.2.1",
75
101
  "@xml-tools/parser": "^1.0.11",
102
+ "bumpp": "^9.3.0",
76
103
  "chevrotain": "7.1.1",
104
+ "concurrently": "^8.2.2",
105
+ "copy-files-from-to": "^3.9.1",
77
106
  "esbuild": "^0.19.11",
78
- "eslint": "^8.56.0",
79
107
  "fast-glob": "^3.3.2",
108
+ "lint-staged": "^15.2.0",
80
109
  "npm-check-updates": "^16.14.12",
110
+ "patch-package": "^8.0.0",
81
111
  "prettier": "^3.2.4",
82
112
  "prettier-plugin-glsl": "^0.1.3",
83
113
  "prettier-plugin-ini": "^1.1.0",
114
+ "prettier-plugin-java": "^2.5.0",
84
115
  "prettier-plugin-jsdoc": "^1.3.0",
85
116
  "prettier-plugin-latex": "^2.0.1",
117
+ "prettier-plugin-nginx": "^1.0.3",
86
118
  "prettier-plugin-organize-imports": "^3.2.4",
119
+ "prettier-plugin-pegjs": "^2.0.2",
120
+ "prettier-plugin-prisma": "^5.0.0",
87
121
  "prettier-plugin-properties": "^0.3.0",
88
- "prettier-plugin-sh": "^0.13.1",
122
+ "prettier-plugin-sh": "^0.14.0",
89
123
  "prettier-plugin-sql": "^0.18.0",
90
124
  "prettier-plugin-sql-cst": "^0.10.2",
91
125
  "prettier-plugin-toml": "^2.0.1",
126
+ "simple-git-hooks": "^2.9.0",
92
127
  "tsx": "^4.7.0",
93
128
  "typescript": "^5.3.3",
94
- "vite": "^5.0.11",
129
+ "vite": "^5.0.12",
95
130
  "vitest": "^1.2.1"
96
131
  },
97
132
  "dependencies": {
133
+ "@types/estree": "^1.0.5",
98
134
  "dedent": "^1.5.1",
99
135
  "micro-memoize": "^4.1.2",
100
- "package-up": "^5.0.0"
136
+ "package-up": "^5.0.0",
137
+ "type-fest": "^4.9.0"
101
138
  }
102
139
  }