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
@@ -0,0 +1,27 @@
1
+ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
2
+ declare const DEFAULT_IDENTIFIERS: readonly ["jsonata"];
3
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
4
+ type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
5
+ declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedJsonataIdentifiers";
6
+ export declare const options: {
7
+ readonly embeddedJsonataIdentifiers: {
8
+ readonly category: "Embed";
9
+ readonly type: "string";
10
+ readonly array: true;
11
+ readonly default: [{
12
+ readonly value: ["jsonata"];
13
+ }];
14
+ 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.";
15
+ };
16
+ };
17
+ type Options = typeof options;
18
+ declare module "../types.js" {
19
+ interface EmbeddedOptions extends Options {
20
+ }
21
+ interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
22
+ }
23
+ interface PluginEmbedOptions {
24
+ [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
25
+ }
26
+ }
27
+ export {};
@@ -4,6 +4,6 @@ export declare const language = "embeddedLatex";
4
4
  */
5
5
  declare module "../types.js" {
6
6
  interface EmbeddedLanguagesHolder {
7
- [language]: void;
7
+ [language]: undefined;
8
8
  }
9
9
  }
@@ -5,11 +5,9 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
5
5
  * - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L6994
6
6
  */
7
7
  declare const DEFAULT_IDENTIFIERS: readonly ["latex", "tex", "aux", "cls", "bbl", "bib", "toc", "sty"];
8
- type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
8
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
9
9
  type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
10
10
  declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedLatexIdentifiers";
11
- export interface PrettierPluginDepsOptions {
12
- }
13
11
  export declare const options: {
14
12
  readonly embeddedLatexIdentifiers: {
15
13
  readonly category: "Embed";
@@ -27,12 +25,8 @@ declare module "../types.js" {
27
25
  }
28
26
  interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
29
27
  }
30
- interface PrettierPluginEmbedOptions {
28
+ interface PluginEmbedOptions {
31
29
  [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
32
30
  }
33
31
  }
34
- declare module "prettier" {
35
- interface Options extends PrettierPluginDepsOptions {
36
- }
37
- }
38
32
  export {};
@@ -1,4 +1,4 @@
1
- import { type Options } from "prettier";
1
+ import type { Options } from "prettier";
2
2
  import type { Embedder } from "../../types.js";
3
3
  import { language } from "./language.js";
4
4
  export declare const embedder: Embedder<Options>;
@@ -4,6 +4,6 @@ export declare const language = "embeddedMarkdown";
4
4
  */
5
5
  declare module "../types.js" {
6
6
  interface EmbeddedLanguagesHolder {
7
- [language]: void;
7
+ [language]: undefined;
8
8
  }
9
9
  }
@@ -6,15 +6,12 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
6
6
  * - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L4060
7
7
  */
8
8
  declare const DEFAULT_IDENTIFIERS: readonly ["md", "markdown"];
9
- type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
9
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
10
10
  type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
11
11
  declare const MARKDOWN_PARSERS: readonly ["markdown", "mdx", "remark"];
12
12
  type MarkdownParser = (typeof MARKDOWN_PARSERS)[number];
13
13
  declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedMarkdownIdentifiers";
14
14
  declare const EMBEDDED_LANGUAGE_PARSER: "embeddedMarkdownParser";
15
- export interface PrettierPluginDepsOptions {
16
- __inJsTemplate?: boolean;
17
- }
18
15
  export declare const options: {
19
16
  readonly embeddedMarkdownIdentifiers: {
20
17
  readonly category: "Embed";
@@ -42,13 +39,9 @@ declare module "../types.js" {
42
39
  }
43
40
  interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
44
41
  }
45
- interface PrettierPluginEmbedOptions {
42
+ interface PluginEmbedOptions {
46
43
  [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
47
44
  [EMBEDDED_LANGUAGE_PARSER]?: MarkdownParser;
48
45
  }
49
46
  }
50
- declare module "prettier" {
51
- interface Options extends PrettierPluginDepsOptions {
52
- }
53
- }
54
47
  export {};
@@ -0,0 +1,3 @@
1
+ export interface PluginMarkdownOptions {
2
+ __inJsTemplate?: boolean;
3
+ }
@@ -0,0 +1,6 @@
1
+ import "prettier";
2
+ import type { PluginMarkdownOptions } from "./plugin-markdown-types.js";
3
+
4
+ declare module "prettier" {
5
+ interface Options extends PluginMarkdownOptions {}
6
+ }
@@ -0,0 +1,12 @@
1
+ import type { Options } from "prettier";
2
+ import type { Embedder } from "../../types.js";
3
+ import { language } from "./language.js";
4
+ export declare const embedder: Embedder<Options>;
5
+ /**
6
+ * Register the embedder to the EmbeddedEmbedders
7
+ */
8
+ declare module "../types.js" {
9
+ interface EmbeddedEmbedders {
10
+ [language]: typeof embedder;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./embedder.js";
2
+ export * from "./language.js";
3
+ export * from "./options.js";
@@ -0,0 +1,9 @@
1
+ export declare const language = "embeddedNginx";
2
+ /**
3
+ * Register the language to the EmbeddedLanguagesHolder
4
+ */
5
+ declare module "../types.js" {
6
+ interface EmbeddedLanguagesHolder {
7
+ [language]: undefined;
8
+ }
9
+ }
@@ -0,0 +1,27 @@
1
+ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
2
+ declare const DEFAULT_IDENTIFIERS: readonly ["nginx"];
3
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
4
+ type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
5
+ declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedNginxIdentifiers";
6
+ export declare const options: {
7
+ readonly embeddedNginxIdentifiers: {
8
+ readonly category: "Embed";
9
+ readonly type: "string";
10
+ readonly array: true;
11
+ readonly default: [{
12
+ readonly value: ["nginx"];
13
+ }];
14
+ 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.";
15
+ };
16
+ };
17
+ type Options = typeof options;
18
+ declare module "../types.js" {
19
+ interface EmbeddedOptions extends Options {
20
+ }
21
+ interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
22
+ }
23
+ interface PluginEmbedOptions {
24
+ [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
25
+ }
26
+ }
27
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { NginxOptions } from "prettier-plugin-nginx";
2
+ import type { NormalizeOptions } from "../utils.js";
3
+ export interface PluginNginxOptions extends NormalizeOptions<NginxOptions> {
4
+ }
@@ -0,0 +1,6 @@
1
+ import "prettier";
2
+ import type { PluginNginxOptions } from "./plugin-nginx-types.js";
3
+
4
+ declare module "prettier" {
5
+ interface Options extends PluginNginxOptions {}
6
+ }
@@ -4,6 +4,6 @@ export declare const language = "embeddedNoop";
4
4
  */
5
5
  declare module "../types.js" {
6
6
  interface EmbeddedLanguagesHolder {
7
- [language]: void;
7
+ [language]: undefined;
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import type { EmbeddedDefaultIdentifier } from "../types.js";
2
2
  import { type AutocompleteStringList } from "../utils.js";
3
- type EmbeddedIdentifiers = AutocompleteStringList<EmbeddedDefaultIdentifier[]>;
3
+ type EmbeddedIdentifiers = AutocompleteStringList<EmbeddedDefaultIdentifier>;
4
4
  declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedNoopIdentifiers";
5
5
  export declare const options: {
6
6
  readonly embeddedNoopIdentifiers: {
@@ -17,7 +17,7 @@ type Options = typeof options;
17
17
  declare module "../types.js" {
18
18
  interface EmbeddedOptions extends Options {
19
19
  }
20
- interface PrettierPluginEmbedOptions {
20
+ interface PluginEmbedOptions {
21
21
  [EMBEDDED_LANGUAGE_IDENTIFIERS]?: EmbeddedIdentifiers;
22
22
  }
23
23
  }
@@ -0,0 +1,12 @@
1
+ import type { Options } from "prettier";
2
+ import type { Embedder } from "../../types.js";
3
+ import { language } from "./language.js";
4
+ export declare const embedder: Embedder<Options>;
5
+ /**
6
+ * Register the embedder to the EmbeddedEmbedders
7
+ */
8
+ declare module "../types.js" {
9
+ interface EmbeddedEmbedders {
10
+ [language]: typeof embedder;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./embedder.js";
2
+ export * from "./language.js";
3
+ export * from "./options.js";
@@ -0,0 +1,9 @@
1
+ export declare const language = "embeddedPegjs";
2
+ /**
3
+ * Register the language to the EmbeddedLanguagesHolder
4
+ */
5
+ declare module "../types.js" {
6
+ interface EmbeddedLanguagesHolder {
7
+ [language]: undefined;
8
+ }
9
+ }
@@ -0,0 +1,27 @@
1
+ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
2
+ declare const DEFAULT_IDENTIFIERS: readonly ["pegjs", "peggy", "peg"];
3
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
4
+ type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
5
+ declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPegjsIdentifiers";
6
+ export declare const options: {
7
+ readonly embeddedPegjsIdentifiers: {
8
+ readonly category: "Embed";
9
+ readonly type: "string";
10
+ readonly array: true;
11
+ readonly default: [{
12
+ readonly value: ["pegjs", "peggy", "peg"];
13
+ }];
14
+ 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.";
15
+ };
16
+ };
17
+ type Options = typeof options;
18
+ declare module "../types.js" {
19
+ interface EmbeddedOptions extends Options {
20
+ }
21
+ interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
22
+ }
23
+ interface PluginEmbedOptions {
24
+ [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
25
+ }
26
+ }
27
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { EsParser } from "../es/index.js";
2
+ import type { TsParser } from "../ts/index.js";
3
+ export interface PluginPegjsOptions {
4
+ actionParser?: EsParser | TsParser;
5
+ }
@@ -0,0 +1,6 @@
1
+ import "prettier";
2
+ import type { PluginPegjsOptions } from "./plugin-pegjs-types.js";
3
+
4
+ declare module "prettier" {
5
+ interface Options extends PluginPegjsOptions {}
6
+ }
@@ -4,6 +4,6 @@ export declare const language = "embeddedPhp";
4
4
  */
5
5
  declare module "../types.js" {
6
6
  interface EmbeddedLanguagesHolder {
7
- [language]: void;
7
+ [language]: undefined;
8
8
  }
9
9
  }
@@ -6,14 +6,9 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
6
6
  * - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L4971
7
7
  */
8
8
  declare const DEFAULT_IDENTIFIERS: readonly ["php", "php5"];
9
- type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
9
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
10
10
  type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
11
11
  declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPhpIdentifiers";
12
- export interface PrettierPluginDepsOptions {
13
- phpVersion?: "5.0" | "5.1" | "5.2" | "5.3" | "5.4" | "5.5" | "5.6" | "7.0" | "7.1" | "7.2" | "7.3" | "7.4" | "8.0" | "8.1" | "8.2";
14
- trailingCommaPHP?: boolean;
15
- braceStyle?: "psr-2" | "per-cs" | "1tbs";
16
- }
17
12
  export declare const options: {
18
13
  readonly embeddedPhpIdentifiers: {
19
14
  readonly category: "Embed";
@@ -31,12 +26,8 @@ declare module "../types.js" {
31
26
  }
32
27
  interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
33
28
  }
34
- interface PrettierPluginEmbedOptions {
29
+ interface PluginEmbedOptions {
35
30
  [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
36
31
  }
37
32
  }
38
- declare module "prettier" {
39
- interface Options extends PrettierPluginDepsOptions {
40
- }
41
- }
42
33
  export {};
@@ -0,0 +1,5 @@
1
+ export interface PluginPhpOptions {
2
+ phpVersion?: "5.0" | "5.1" | "5.2" | "5.3" | "5.4" | "5.5" | "5.6" | "7.0" | "7.1" | "7.2" | "7.3" | "7.4" | "8.0" | "8.1" | "8.2";
3
+ trailingCommaPHP?: boolean;
4
+ braceStyle?: "psr-2" | "per-cs" | "1tbs";
5
+ }
@@ -0,0 +1,6 @@
1
+ import "prettier";
2
+ import type { PluginPhpOptions } from "./plugin-php-types.js";
3
+
4
+ declare module "prettier" {
5
+ interface Options extends PluginPhpOptions {}
6
+ }
@@ -0,0 +1,12 @@
1
+ import type { Options } from "prettier";
2
+ import type { Embedder } from "../../types.js";
3
+ import { language } from "./language.js";
4
+ export declare const embedder: Embedder<Options>;
5
+ /**
6
+ * Register the embedder to the EmbeddedEmbedders
7
+ */
8
+ declare module "../types.js" {
9
+ interface EmbeddedEmbedders {
10
+ [language]: typeof embedder;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./embedder.js";
2
+ export * from "./language.js";
3
+ export * from "./options.js";
@@ -0,0 +1,9 @@
1
+ export declare const language = "embeddedPrisma";
2
+ /**
3
+ * Register the language to the EmbeddedLanguagesHolder
4
+ */
5
+ declare module "../types.js" {
6
+ interface EmbeddedLanguagesHolder {
7
+ [language]: undefined;
8
+ }
9
+ }
@@ -0,0 +1,27 @@
1
+ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
2
+ declare const DEFAULT_IDENTIFIERS: readonly ["prisma"];
3
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
4
+ type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
5
+ declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPrismaIdentifiers";
6
+ export declare const options: {
7
+ readonly embeddedPrismaIdentifiers: {
8
+ readonly category: "Embed";
9
+ readonly type: "string";
10
+ readonly array: true;
11
+ readonly default: [{
12
+ readonly value: ["prisma"];
13
+ }];
14
+ 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.";
15
+ };
16
+ };
17
+ type Options = typeof options;
18
+ declare module "../types.js" {
19
+ interface EmbeddedOptions extends Options {
20
+ }
21
+ interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
22
+ }
23
+ interface PluginEmbedOptions {
24
+ [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
25
+ }
26
+ }
27
+ export {};
@@ -4,6 +4,6 @@ export declare const language = "embeddedProperties";
4
4
  */
5
5
  declare module "../types.js" {
6
6
  interface EmbeddedLanguagesHolder {
7
- [language]: void;
7
+ [language]: undefined;
8
8
  }
9
9
  }
@@ -5,13 +5,9 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
5
5
  * - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L3283
6
6
  */
7
7
  declare const DEFAULT_IDENTIFIERS: readonly ["properties"];
8
- type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
8
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
9
9
  type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
10
10
  declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPropertiesIdentifiers";
11
- export interface PrettierPluginDepsOptions {
12
- escapeNonLatin1?: boolean;
13
- keySeparator?: " " | ":" | "=" | ": " | "= " | " : " | " = ";
14
- }
15
11
  export declare const options: {
16
12
  readonly embeddedPropertiesIdentifiers: {
17
13
  readonly category: "Embed";
@@ -29,12 +25,8 @@ declare module "../types.js" {
29
25
  }
30
26
  interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
31
27
  }
32
- interface PrettierPluginEmbedOptions {
28
+ interface PluginEmbedOptions {
33
29
  [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
34
30
  }
35
31
  }
36
- declare module "prettier" {
37
- interface Options extends PrettierPluginDepsOptions {
38
- }
39
- }
40
32
  export {};
@@ -0,0 +1,4 @@
1
+ export interface PluginPropertiesOptions {
2
+ escapeNonLatin1?: boolean;
3
+ keySeparator?: " " | ":" | "=" | ": " | "= " | " : " | " = ";
4
+ }
@@ -0,0 +1,6 @@
1
+ import "prettier";
2
+ import type { PluginPropertiesOptions } from "./plugin-properties-types.js";
3
+
4
+ declare module "prettier" {
5
+ interface Options extends PluginPropertiesOptions {}
6
+ }
@@ -0,0 +1,12 @@
1
+ import type { Options } from "prettier";
2
+ import type { Embedder } from "../../types.js";
3
+ import { language } from "./language.js";
4
+ export declare const embedder: Embedder<Options>;
5
+ /**
6
+ * Register the embedder to the EmbeddedEmbedders
7
+ */
8
+ declare module "../types.js" {
9
+ interface EmbeddedEmbedders {
10
+ [language]: typeof embedder;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./embedder.js";
2
+ export * from "./language.js";
3
+ export * from "./options.js";
@@ -0,0 +1,9 @@
1
+ export declare const language = "embeddedPug";
2
+ /**
3
+ * Register the language to the EmbeddedLanguagesHolder
4
+ */
5
+ declare module "../types.js" {
6
+ interface EmbeddedLanguagesHolder {
7
+ [language]: undefined;
8
+ }
9
+ }
@@ -0,0 +1,27 @@
1
+ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
2
+ declare const DEFAULT_IDENTIFIERS: readonly ["pug", "jade"];
3
+ type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
4
+ type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
5
+ declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPugIdentifiers";
6
+ export declare const options: {
7
+ readonly embeddedPugIdentifiers: {
8
+ readonly category: "Embed";
9
+ readonly type: "string";
10
+ readonly array: true;
11
+ readonly default: [{
12
+ readonly value: ["pug", "jade"];
13
+ }];
14
+ 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.";
15
+ };
16
+ };
17
+ type Options = typeof options;
18
+ declare module "../types.js" {
19
+ interface EmbeddedOptions extends Options {
20
+ }
21
+ interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
22
+ }
23
+ interface PluginEmbedOptions {
24
+ [EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
25
+ }
26
+ }
27
+ export {};
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Location: node_modules/@prettier/plugin-pug/src/printer.ts
3
+ */
4
+ export interface PluginPugOptions {
5
+ pugPrintWidth?: number;
6
+ pugSingleQuote?: boolean;
7
+ pugTabWidth?: number;
8
+ pugUseTabs?: boolean;
9
+ pugBracketSpacing?: boolean;
10
+ pugArrowParens?: "avoid" | "always";
11
+ pugSemi?: boolean;
12
+ pugBracketSameLine?: boolean;
13
+ pugAttributeSeparator?: "always" | "as-needed" | "none";
14
+ pugCommentPreserveSpaces?: "keep-all" | "keep-leading" | "trim-all";
15
+ pugSortAttributes?: "asc" | "desc" | "as-is";
16
+ pugSortAttributesBeginning?: string[];
17
+ pugSortAttributesEnd?: string[];
18
+ pugWrapAttributesThreshold?: number;
19
+ pugWrapAttributesPattern?: string;
20
+ pugClassLocation?: "before-attributes" | "after-attributes";
21
+ pugClassNotation?: "literal" | "attribute" | "as-is";
22
+ pugIdNotation?: "literal" | "as-is";
23
+ pugEmptyAttributes?: "as-is" | "none" | "all";
24
+ pugEmptyAttributesForceQuotes?: "as-is" | "none" | "all";
25
+ pugSingleFileComponentIndentation?: boolean;
26
+ pugFramework?: "auto" | "vue" | "svelte" | "angular";
27
+ pugExplicitDiv?: boolean;
28
+ pugPreserveAttributeBrackets?: boolean;
29
+ }
@@ -0,0 +1,6 @@
1
+ import "prettier";
2
+ import type { PluginPugOptions } from "./plugin-pug-types.js";
3
+
4
+ declare module "prettier" {
5
+ interface Options extends PluginPugOptions {}
6
+ }
@@ -5,20 +5,26 @@ export declare const embeddedEmbedders: EmbeddedEmbedders;
5
5
  export declare const embeddedOptions: EmbeddedOptions;
6
6
  import * as __glob__0_0 from "./css/index.js";
7
7
  import * as __glob__0_1 from "./es/index.js";
8
- import * as __glob__0_2 from "./html/index.js";
9
- import * as __glob__0_3 from "./glsl/index.js";
10
- import * as __glob__0_4 from "./graphql/index.js";
8
+ import * as __glob__0_2 from "./glsl/index.js";
9
+ import * as __glob__0_3 from "./graphql/index.js";
10
+ import * as __glob__0_4 from "./html/index.js";
11
11
  import * as __glob__0_5 from "./ini/index.js";
12
- import * as __glob__0_6 from "./json/index.js";
13
- import * as __glob__0_7 from "./latex/index.js";
14
- import * as __glob__0_8 from "./markdown/index.js";
15
- import * as __glob__0_9 from "./noop/index.js";
16
- import * as __glob__0_10 from "./properties/index.js";
17
- import * as __glob__0_11 from "./php/index.js";
18
- import * as __glob__0_12 from "./ruby/index.js";
19
- import * as __glob__0_13 from "./sh/index.js";
20
- import * as __glob__0_14 from "./sql/index.js";
21
- import * as __glob__0_15 from "./toml/index.js";
22
- import * as __glob__0_16 from "./ts/index.js";
23
- import * as __glob__0_17 from "./xml/index.js";
24
- import * as __glob__0_18 from "./yaml/index.js";
12
+ import * as __glob__0_6 from "./java/index.js";
13
+ import * as __glob__0_7 from "./json/index.js";
14
+ import * as __glob__0_8 from "./jsonata/index.js";
15
+ import * as __glob__0_9 from "./latex/index.js";
16
+ import * as __glob__0_10 from "./markdown/index.js";
17
+ import * as __glob__0_11 from "./nginx/index.js";
18
+ import * as __glob__0_12 from "./pegjs/index.js";
19
+ import * as __glob__0_13 from "./noop/index.js";
20
+ import * as __glob__0_14 from "./php/index.js";
21
+ import * as __glob__0_15 from "./prisma/index.js";
22
+ import * as __glob__0_16 from "./properties/index.js";
23
+ import * as __glob__0_17 from "./pug/index.js";
24
+ import * as __glob__0_18 from "./ruby/index.js";
25
+ import * as __glob__0_19 from "./sh/index.js";
26
+ import * as __glob__0_20 from "./sql/index.js";
27
+ import * as __glob__0_21 from "./toml/index.js";
28
+ import * as __glob__0_22 from "./ts/index.js";
29
+ import * as __glob__0_23 from "./xml/index.js";
30
+ import * as __glob__0_24 from "./yaml/index.js";
@@ -4,6 +4,6 @@ export declare const language = "embeddedRuby";
4
4
  */
5
5
  declare module "../types.js" {
6
6
  interface EmbeddedLanguagesHolder {
7
- [language]: void;
7
+ [language]: undefined;
8
8
  }
9
9
  }