prettier-plugin-embed 0.6.0 → 0.7.1
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 +362 -51
- package/dist/embedded/astro/embedder.d.ts +7 -0
- package/dist/embedded/astro/index.d.ts +3 -0
- package/dist/embedded/astro/language.d.ts +6 -0
- package/dist/embedded/astro/options.d.ts +40 -0
- package/dist/embedded/create-embedder.d.ts +14 -0
- package/dist/embedded/css/embedder.d.ts +1 -6
- package/dist/embedded/dockerfile/embedder.d.ts +7 -0
- package/dist/embedded/dockerfile/index.d.ts +3 -0
- package/dist/embedded/dockerfile/language.d.ts +6 -0
- package/dist/embedded/dockerfile/options.d.ts +40 -0
- package/dist/embedded/es/embedder.d.ts +1 -6
- package/dist/embedded/gherkin/embedder.d.ts +7 -0
- package/dist/embedded/gherkin/index.d.ts +3 -0
- package/dist/embedded/gherkin/language.d.ts +6 -0
- package/dist/embedded/gherkin/options.d.ts +40 -0
- package/dist/embedded/glsl/embedder.d.ts +1 -6
- package/dist/embedded/go-template/embedder.d.ts +7 -0
- package/dist/embedded/go-template/index.d.ts +3 -0
- package/dist/embedded/go-template/language.d.ts +6 -0
- package/dist/embedded/go-template/options.d.ts +40 -0
- package/dist/embedded/graphql/embedder.d.ts +1 -6
- package/dist/embedded/handlebars/embedder.d.ts +7 -0
- package/dist/embedded/handlebars/index.d.ts +3 -0
- package/dist/embedded/handlebars/language.d.ts +6 -0
- package/dist/embedded/handlebars/options.d.ts +40 -0
- package/dist/embedded/html/embedder.d.ts +1 -6
- package/dist/embedded/hugo/embedder.d.ts +7 -0
- package/dist/embedded/hugo/index.d.ts +3 -0
- package/dist/embedded/hugo/language.d.ts +6 -0
- package/dist/embedded/hugo/options.d.ts +40 -0
- package/dist/embedded/ini/embedder.d.ts +1 -6
- package/dist/embedded/java/embedder.d.ts +1 -6
- package/dist/embedded/jinja/embedder.d.ts +7 -0
- package/dist/embedded/jinja/index.d.ts +3 -0
- package/dist/embedded/jinja/language.d.ts +6 -0
- package/dist/embedded/jinja/options.d.ts +40 -0
- package/dist/embedded/jsonata/embedder.d.ts +1 -6
- package/dist/embedded/jte/embedder.d.ts +7 -0
- package/dist/embedded/jte/index.d.ts +3 -0
- package/dist/embedded/jte/language.d.ts +6 -0
- package/dist/embedded/jte/options.d.ts +40 -0
- package/dist/embedded/latex/embedder.d.ts +1 -6
- package/dist/embedded/liquid/embedder.d.ts +7 -0
- package/dist/embedded/liquid/index.d.ts +3 -0
- package/dist/embedded/liquid/language.d.ts +6 -0
- package/dist/embedded/liquid/options.d.ts +40 -0
- package/dist/embedded/marko/embedder.d.ts +7 -0
- package/dist/embedded/marko/index.d.ts +3 -0
- package/dist/embedded/marko/language.d.ts +6 -0
- package/dist/embedded/marko/options.d.ts +40 -0
- package/dist/embedded/motoko/embedder.d.ts +7 -0
- package/dist/embedded/motoko/index.d.ts +3 -0
- package/dist/embedded/motoko/language.d.ts +6 -0
- package/dist/embedded/motoko/options.d.ts +40 -0
- package/dist/embedded/mustache/embedder.d.ts +7 -0
- package/dist/embedded/mustache/index.d.ts +3 -0
- package/dist/embedded/mustache/language.d.ts +6 -0
- package/dist/embedded/mustache/options.d.ts +40 -0
- package/dist/embedded/nginx/embedder.d.ts +1 -6
- package/dist/embedded/nunjucks/embedder.d.ts +7 -0
- package/dist/embedded/nunjucks/index.d.ts +3 -0
- package/dist/embedded/nunjucks/language.d.ts +6 -0
- package/dist/embedded/nunjucks/options.d.ts +40 -0
- package/dist/embedded/pegjs/embedder.d.ts +1 -6
- package/dist/embedded/php/embedder.d.ts +1 -6
- package/dist/embedded/powershell/embedder.d.ts +7 -0
- package/dist/embedded/powershell/index.d.ts +3 -0
- package/dist/embedded/powershell/language.d.ts +6 -0
- package/dist/embedded/powershell/options.d.ts +40 -0
- package/dist/embedded/prisma/embedder.d.ts +1 -6
- package/dist/embedded/properties/embedder.d.ts +1 -6
- package/dist/embedded/pug/embedder.d.ts +1 -6
- package/dist/embedded/register.d.ts +42 -25
- package/dist/embedded/ruby/embedder.d.ts +1 -6
- package/dist/embedded/sh/embedder.d.ts +1 -6
- package/dist/embedded/solidity/embedder.d.ts +7 -0
- package/dist/embedded/solidity/index.d.ts +3 -0
- package/dist/embedded/solidity/language.d.ts +6 -0
- package/dist/embedded/solidity/options.d.ts +58 -0
- package/dist/embedded/svelte/embedder.d.ts +7 -0
- package/dist/embedded/svelte/index.d.ts +3 -0
- package/dist/embedded/svelte/language.d.ts +6 -0
- package/dist/embedded/svelte/options.d.ts +40 -0
- package/dist/embedded/toml/embedder.d.ts +1 -6
- package/dist/embedded/ts/embedder.d.ts +1 -6
- package/dist/embedded/utils.d.ts +1 -1
- package/dist/embedded/xquery/embedder.d.ts +7 -0
- package/dist/embedded/xquery/index.d.ts +3 -0
- package/dist/embedded/xquery/language.d.ts +6 -0
- package/dist/embedded/xquery/options.d.ts +55 -0
- package/dist/index.js +1126 -819
- package/dist/options.d.ts +335 -0
- package/package.json +18 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
declare const DEFAULT_COMMENTS_OR_TAGS: readonly ["liquid"];
|
|
3
|
+
type CommentsOrTags = AutocompleteStringList<(typeof DEFAULT_COMMENTS_OR_TAGS)[number]>;
|
|
4
|
+
type Defaults = StringListToInterfaceKey<typeof DEFAULT_COMMENTS_OR_TAGS>;
|
|
5
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedLiquidComments";
|
|
6
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedLiquidTags";
|
|
7
|
+
export declare const options: {
|
|
8
|
+
readonly embeddedLiquidComments: {
|
|
9
|
+
readonly category: "Embed";
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly array: true;
|
|
12
|
+
readonly default: [{
|
|
13
|
+
readonly value: ["liquid"];
|
|
14
|
+
}];
|
|
15
|
+
readonly description: "Block comments that identify embedded Liquid in template literals. Requires the `@shopify/prettier-plugin-liquid` plugin.";
|
|
16
|
+
};
|
|
17
|
+
readonly embeddedLiquidTags: {
|
|
18
|
+
readonly category: "Embed";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly array: true;
|
|
21
|
+
readonly default: [{
|
|
22
|
+
readonly value: ["liquid"];
|
|
23
|
+
}];
|
|
24
|
+
readonly description: "Tags that identify embedded Liquid in template literals. Requires the `@shopify/prettier-plugin-liquid` plugin.";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type Options = typeof options;
|
|
28
|
+
declare module "../types.js" {
|
|
29
|
+
interface EmbeddedOptions extends Options {
|
|
30
|
+
}
|
|
31
|
+
interface EmbeddedDefaultCommentsHolder extends Defaults {
|
|
32
|
+
}
|
|
33
|
+
interface EmbeddedDefaultTagsHolder extends Defaults {
|
|
34
|
+
}
|
|
35
|
+
interface PluginEmbedOptions {
|
|
36
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: CommentsOrTags;
|
|
37
|
+
[EMBEDDED_LANGUAGE_TAGS]?: CommentsOrTags;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
declare const DEFAULT_COMMENTS_OR_TAGS: readonly ["marko"];
|
|
3
|
+
type CommentsOrTags = AutocompleteStringList<(typeof DEFAULT_COMMENTS_OR_TAGS)[number]>;
|
|
4
|
+
type Defaults = StringListToInterfaceKey<typeof DEFAULT_COMMENTS_OR_TAGS>;
|
|
5
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedMarkoComments";
|
|
6
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedMarkoTags";
|
|
7
|
+
export declare const options: {
|
|
8
|
+
readonly embeddedMarkoComments: {
|
|
9
|
+
readonly category: "Embed";
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly array: true;
|
|
12
|
+
readonly default: [{
|
|
13
|
+
readonly value: ["marko"];
|
|
14
|
+
}];
|
|
15
|
+
readonly description: "Block comments that identify embedded Marko in template literals. Requires the `prettier-plugin-marko` plugin.";
|
|
16
|
+
};
|
|
17
|
+
readonly embeddedMarkoTags: {
|
|
18
|
+
readonly category: "Embed";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly array: true;
|
|
21
|
+
readonly default: [{
|
|
22
|
+
readonly value: ["marko"];
|
|
23
|
+
}];
|
|
24
|
+
readonly description: "Tags that identify embedded Marko in template literals. Requires the `prettier-plugin-marko` plugin.";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type Options = typeof options;
|
|
28
|
+
declare module "../types.js" {
|
|
29
|
+
interface EmbeddedOptions extends Options {
|
|
30
|
+
}
|
|
31
|
+
interface EmbeddedDefaultCommentsHolder extends Defaults {
|
|
32
|
+
}
|
|
33
|
+
interface EmbeddedDefaultTagsHolder extends Defaults {
|
|
34
|
+
}
|
|
35
|
+
interface PluginEmbedOptions {
|
|
36
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: CommentsOrTags;
|
|
37
|
+
[EMBEDDED_LANGUAGE_TAGS]?: CommentsOrTags;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
declare const DEFAULT_COMMENTS_OR_TAGS: readonly ["motoko", "mo"];
|
|
3
|
+
type CommentsOrTags = AutocompleteStringList<(typeof DEFAULT_COMMENTS_OR_TAGS)[number]>;
|
|
4
|
+
type Defaults = StringListToInterfaceKey<typeof DEFAULT_COMMENTS_OR_TAGS>;
|
|
5
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedMotokoComments";
|
|
6
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedMotokoTags";
|
|
7
|
+
export declare const options: {
|
|
8
|
+
readonly embeddedMotokoComments: {
|
|
9
|
+
readonly category: "Embed";
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly array: true;
|
|
12
|
+
readonly default: [{
|
|
13
|
+
readonly value: ["motoko", "mo"];
|
|
14
|
+
}];
|
|
15
|
+
readonly description: "Block comments that identify embedded Motoko in template literals. Requires the `prettier-plugin-motoko` plugin.";
|
|
16
|
+
};
|
|
17
|
+
readonly embeddedMotokoTags: {
|
|
18
|
+
readonly category: "Embed";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly array: true;
|
|
21
|
+
readonly default: [{
|
|
22
|
+
readonly value: ["motoko", "mo"];
|
|
23
|
+
}];
|
|
24
|
+
readonly description: "Tags that identify embedded Motoko in template literals. Requires the `prettier-plugin-motoko` plugin.";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type Options = typeof options;
|
|
28
|
+
declare module "../types.js" {
|
|
29
|
+
interface EmbeddedOptions extends Options {
|
|
30
|
+
}
|
|
31
|
+
interface EmbeddedDefaultCommentsHolder extends Defaults {
|
|
32
|
+
}
|
|
33
|
+
interface EmbeddedDefaultTagsHolder extends Defaults {
|
|
34
|
+
}
|
|
35
|
+
interface PluginEmbedOptions {
|
|
36
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: CommentsOrTags;
|
|
37
|
+
[EMBEDDED_LANGUAGE_TAGS]?: CommentsOrTags;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
declare const DEFAULT_COMMENTS_OR_TAGS: readonly ["mustache"];
|
|
3
|
+
type CommentsOrTags = AutocompleteStringList<(typeof DEFAULT_COMMENTS_OR_TAGS)[number]>;
|
|
4
|
+
type Defaults = StringListToInterfaceKey<typeof DEFAULT_COMMENTS_OR_TAGS>;
|
|
5
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedMustacheComments";
|
|
6
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedMustacheTags";
|
|
7
|
+
export declare const options: {
|
|
8
|
+
readonly embeddedMustacheComments: {
|
|
9
|
+
readonly category: "Embed";
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly array: true;
|
|
12
|
+
readonly default: [{
|
|
13
|
+
readonly value: ["mustache"];
|
|
14
|
+
}];
|
|
15
|
+
readonly description: "Block comments that identify embedded Mustache in template literals. Requires the `prettier-plugin-mustache` plugin.";
|
|
16
|
+
};
|
|
17
|
+
readonly embeddedMustacheTags: {
|
|
18
|
+
readonly category: "Embed";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly array: true;
|
|
21
|
+
readonly default: [{
|
|
22
|
+
readonly value: ["mustache"];
|
|
23
|
+
}];
|
|
24
|
+
readonly description: "Tags that identify embedded Mustache in template literals. Requires the `prettier-plugin-mustache` plugin.";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type Options = typeof options;
|
|
28
|
+
declare module "../types.js" {
|
|
29
|
+
interface EmbeddedOptions extends Options {
|
|
30
|
+
}
|
|
31
|
+
interface EmbeddedDefaultCommentsHolder extends Defaults {
|
|
32
|
+
}
|
|
33
|
+
interface EmbeddedDefaultTagsHolder extends Defaults {
|
|
34
|
+
}
|
|
35
|
+
interface PluginEmbedOptions {
|
|
36
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: CommentsOrTags;
|
|
37
|
+
[EMBEDDED_LANGUAGE_TAGS]?: CommentsOrTags;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Options } from "prettier";
|
|
2
|
-
import type { Embedder } from "../../types.js";
|
|
3
1
|
import { language } from "./language.js";
|
|
4
|
-
export declare const embedder: Embedder
|
|
5
|
-
/**
|
|
6
|
-
* Register the embedder to the EmbeddedEmbedders
|
|
7
|
-
*/
|
|
2
|
+
export declare const embedder: import("../../types.js").Embedder;
|
|
8
3
|
declare module "../types.js" {
|
|
9
4
|
interface EmbeddedEmbedders {
|
|
10
5
|
[language]: typeof embedder;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
declare const DEFAULT_COMMENTS_OR_TAGS: readonly ["nunjucks", "njk"];
|
|
3
|
+
type CommentsOrTags = AutocompleteStringList<(typeof DEFAULT_COMMENTS_OR_TAGS)[number]>;
|
|
4
|
+
type Defaults = StringListToInterfaceKey<typeof DEFAULT_COMMENTS_OR_TAGS>;
|
|
5
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedNunjucksComments";
|
|
6
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedNunjucksTags";
|
|
7
|
+
export declare const options: {
|
|
8
|
+
readonly embeddedNunjucksComments: {
|
|
9
|
+
readonly category: "Embed";
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly array: true;
|
|
12
|
+
readonly default: [{
|
|
13
|
+
readonly value: ["nunjucks", "njk"];
|
|
14
|
+
}];
|
|
15
|
+
readonly description: "Block comments that identify embedded Nunjucks in template literals. Requires the `prettier-plugin-nunjucks` plugin.";
|
|
16
|
+
};
|
|
17
|
+
readonly embeddedNunjucksTags: {
|
|
18
|
+
readonly category: "Embed";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly array: true;
|
|
21
|
+
readonly default: [{
|
|
22
|
+
readonly value: ["nunjucks", "njk"];
|
|
23
|
+
}];
|
|
24
|
+
readonly description: "Tags that identify embedded Nunjucks in template literals. Requires the `prettier-plugin-nunjucks` plugin.";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type Options = typeof options;
|
|
28
|
+
declare module "../types.js" {
|
|
29
|
+
interface EmbeddedOptions extends Options {
|
|
30
|
+
}
|
|
31
|
+
interface EmbeddedDefaultCommentsHolder extends Defaults {
|
|
32
|
+
}
|
|
33
|
+
interface EmbeddedDefaultTagsHolder extends Defaults {
|
|
34
|
+
}
|
|
35
|
+
interface PluginEmbedOptions {
|
|
36
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: CommentsOrTags;
|
|
37
|
+
[EMBEDDED_LANGUAGE_TAGS]?: CommentsOrTags;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Options } from "prettier";
|
|
2
|
-
import type { Embedder } from "../../types.js";
|
|
3
1
|
import { language } from "./language.js";
|
|
4
|
-
export declare const embedder: Embedder
|
|
5
|
-
/**
|
|
6
|
-
* Register the embedder to the EmbeddedEmbedders
|
|
7
|
-
*/
|
|
2
|
+
export declare const embedder: import("../../types.js").Embedder;
|
|
8
3
|
declare module "../types.js" {
|
|
9
4
|
interface EmbeddedEmbedders {
|
|
10
5
|
[language]: typeof embedder;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Options } from "prettier";
|
|
2
|
-
import type { Embedder } from "../../types.js";
|
|
3
1
|
import { language } from "./language.js";
|
|
4
|
-
export declare const embedder: Embedder
|
|
5
|
-
/**
|
|
6
|
-
* Register the embedder to the EmbeddedEmbedders
|
|
7
|
-
*/
|
|
2
|
+
export declare const embedder: import("../../types.js").Embedder;
|
|
8
3
|
declare module "../types.js" {
|
|
9
4
|
interface EmbeddedEmbedders {
|
|
10
5
|
[language]: typeof embedder;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
declare const DEFAULT_COMMENTS_OR_TAGS: readonly ["powershell", "ps1"];
|
|
3
|
+
type CommentsOrTags = AutocompleteStringList<(typeof DEFAULT_COMMENTS_OR_TAGS)[number]>;
|
|
4
|
+
type Defaults = StringListToInterfaceKey<typeof DEFAULT_COMMENTS_OR_TAGS>;
|
|
5
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedPowerShellComments";
|
|
6
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedPowerShellTags";
|
|
7
|
+
export declare const options: {
|
|
8
|
+
readonly embeddedPowerShellComments: {
|
|
9
|
+
readonly category: "Embed";
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly array: true;
|
|
12
|
+
readonly default: [{
|
|
13
|
+
readonly value: ["powershell", "ps1"];
|
|
14
|
+
}];
|
|
15
|
+
readonly description: "Block comments that identify embedded PowerShell in template literals. Requires the `prettier-plugin-powershell` plugin.";
|
|
16
|
+
};
|
|
17
|
+
readonly embeddedPowerShellTags: {
|
|
18
|
+
readonly category: "Embed";
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly array: true;
|
|
21
|
+
readonly default: [{
|
|
22
|
+
readonly value: ["powershell", "ps1"];
|
|
23
|
+
}];
|
|
24
|
+
readonly description: "Tags that identify embedded PowerShell in template literals. Requires the `prettier-plugin-powershell` plugin.";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type Options = typeof options;
|
|
28
|
+
declare module "../types.js" {
|
|
29
|
+
interface EmbeddedOptions extends Options {
|
|
30
|
+
}
|
|
31
|
+
interface EmbeddedDefaultCommentsHolder extends Defaults {
|
|
32
|
+
}
|
|
33
|
+
interface EmbeddedDefaultTagsHolder extends Defaults {
|
|
34
|
+
}
|
|
35
|
+
interface PluginEmbedOptions {
|
|
36
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: CommentsOrTags;
|
|
37
|
+
[EMBEDDED_LANGUAGE_TAGS]?: CommentsOrTags;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Options } from "prettier";
|
|
2
|
-
import type { Embedder } from "../../types.js";
|
|
3
1
|
import { language } from "./language.js";
|
|
4
|
-
export declare const embedder: Embedder
|
|
5
|
-
/**
|
|
6
|
-
* Register the embedder to the EmbeddedEmbedders
|
|
7
|
-
*/
|
|
2
|
+
export declare const embedder: import("../../types.js").Embedder;
|
|
8
3
|
declare module "../types.js" {
|
|
9
4
|
interface EmbeddedEmbedders {
|
|
10
5
|
[language]: typeof embedder;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Options } from "prettier";
|
|
2
|
-
import type { Embedder } from "../../types.js";
|
|
3
1
|
import { language } from "./language.js";
|
|
4
|
-
export declare const embedder: Embedder
|
|
5
|
-
/**
|
|
6
|
-
* Register the embedder to the EmbeddedEmbedders
|
|
7
|
-
*/
|
|
2
|
+
export declare const embedder: import("../../types.js").Embedder;
|
|
8
3
|
declare module "../types.js" {
|
|
9
4
|
interface EmbeddedEmbedders {
|
|
10
5
|
[language]: typeof embedder;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Options } from "prettier";
|
|
2
|
-
import type { Embedder } from "../../types.js";
|
|
3
1
|
import { language } from "./language.js";
|
|
4
|
-
export declare const embedder: Embedder
|
|
5
|
-
/**
|
|
6
|
-
* Register the embedder to the EmbeddedEmbedders
|
|
7
|
-
*/
|
|
2
|
+
export declare const embedder: import("../../types.js").Embedder;
|
|
8
3
|
declare module "../types.js" {
|
|
9
4
|
interface EmbeddedEmbedders {
|
|
10
5
|
[language]: typeof embedder;
|
|
@@ -3,28 +3,45 @@ export declare const embeddedLanguages: EmbeddedLanguage[];
|
|
|
3
3
|
export declare const embeddedParsers: EmbeddedParsers;
|
|
4
4
|
export declare const embeddedEmbedders: EmbeddedEmbedders;
|
|
5
5
|
export declare const embeddedOptions: EmbeddedOptions;
|
|
6
|
-
import * as __glob__0_0 from "./
|
|
7
|
-
import * as __glob__0_1 from "./
|
|
8
|
-
import * as __glob__0_2 from "./
|
|
9
|
-
import * as __glob__0_3 from "./
|
|
10
|
-
import * as __glob__0_4 from "./
|
|
11
|
-
import * as __glob__0_5 from "./
|
|
12
|
-
import * as __glob__0_6 from "./
|
|
13
|
-
import * as __glob__0_7 from "./
|
|
14
|
-
import * as __glob__0_8 from "./
|
|
15
|
-
import * as __glob__0_9 from "./
|
|
16
|
-
import * as __glob__0_10 from "./
|
|
17
|
-
import * as __glob__0_11 from "./
|
|
18
|
-
import * as __glob__0_12 from "./
|
|
19
|
-
import * as __glob__0_13 from "./
|
|
20
|
-
import * as __glob__0_14 from "./
|
|
21
|
-
import * as __glob__0_15 from "./
|
|
22
|
-
import * as __glob__0_16 from "./
|
|
23
|
-
import * as __glob__0_17 from "./
|
|
24
|
-
import * as __glob__0_18 from "./
|
|
25
|
-
import * as __glob__0_19 from "./
|
|
26
|
-
import * as __glob__0_20 from "./
|
|
27
|
-
import * as __glob__0_21 from "./
|
|
28
|
-
import * as __glob__0_22 from "./
|
|
29
|
-
import * as __glob__0_23 from "./
|
|
30
|
-
import * as __glob__0_24 from "./
|
|
6
|
+
import * as __glob__0_0 from "./astro/index.js";
|
|
7
|
+
import * as __glob__0_1 from "./css/index.js";
|
|
8
|
+
import * as __glob__0_2 from "./dockerfile/index.js";
|
|
9
|
+
import * as __glob__0_3 from "./es/index.js";
|
|
10
|
+
import * as __glob__0_4 from "./gherkin/index.js";
|
|
11
|
+
import * as __glob__0_5 from "./glsl/index.js";
|
|
12
|
+
import * as __glob__0_6 from "./go-template/index.js";
|
|
13
|
+
import * as __glob__0_7 from "./graphql/index.js";
|
|
14
|
+
import * as __glob__0_8 from "./handlebars/index.js";
|
|
15
|
+
import * as __glob__0_9 from "./html/index.js";
|
|
16
|
+
import * as __glob__0_10 from "./hugo/index.js";
|
|
17
|
+
import * as __glob__0_11 from "./java/index.js";
|
|
18
|
+
import * as __glob__0_12 from "./jinja/index.js";
|
|
19
|
+
import * as __glob__0_13 from "./json/index.js";
|
|
20
|
+
import * as __glob__0_14 from "./jsonata/index.js";
|
|
21
|
+
import * as __glob__0_15 from "./jte/index.js";
|
|
22
|
+
import * as __glob__0_16 from "./latex/index.js";
|
|
23
|
+
import * as __glob__0_17 from "./liquid/index.js";
|
|
24
|
+
import * as __glob__0_18 from "./markdown/index.js";
|
|
25
|
+
import * as __glob__0_19 from "./marko/index.js";
|
|
26
|
+
import * as __glob__0_20 from "./motoko/index.js";
|
|
27
|
+
import * as __glob__0_21 from "./mustache/index.js";
|
|
28
|
+
import * as __glob__0_22 from "./nginx/index.js";
|
|
29
|
+
import * as __glob__0_23 from "./noop/index.js";
|
|
30
|
+
import * as __glob__0_24 from "./nunjucks/index.js";
|
|
31
|
+
import * as __glob__0_25 from "./pegjs/index.js";
|
|
32
|
+
import * as __glob__0_26 from "./php/index.js";
|
|
33
|
+
import * as __glob__0_27 from "./powershell/index.js";
|
|
34
|
+
import * as __glob__0_28 from "./prisma/index.js";
|
|
35
|
+
import * as __glob__0_29 from "./properties/index.js";
|
|
36
|
+
import * as __glob__0_30 from "./pug/index.js";
|
|
37
|
+
import * as __glob__0_31 from "./ruby/index.js";
|
|
38
|
+
import * as __glob__0_32 from "./sh/index.js";
|
|
39
|
+
import * as __glob__0_33 from "./solidity/index.js";
|
|
40
|
+
import * as __glob__0_34 from "./sql/index.js";
|
|
41
|
+
import * as __glob__0_35 from "./svelte/index.js";
|
|
42
|
+
import * as __glob__0_36 from "./toml/index.js";
|
|
43
|
+
import * as __glob__0_37 from "./ts/index.js";
|
|
44
|
+
import * as __glob__0_38 from "./xml/index.js";
|
|
45
|
+
import * as __glob__0_39 from "./xquery/index.js";
|
|
46
|
+
import * as __glob__0_40 from "./yaml/index.js";
|
|
47
|
+
import * as __glob__0_41 from "./ini/index.js";
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Options } from "prettier";
|
|
2
|
-
import type { Embedder } from "../../types.js";
|
|
3
1
|
import { language } from "./language.js";
|
|
4
|
-
export declare const embedder: Embedder
|
|
5
|
-
/**
|
|
6
|
-
* Register the embedder to the EmbeddedEmbedders
|
|
7
|
-
*/
|
|
2
|
+
export declare const embedder: import("../../types.js").Embedder;
|
|
8
3
|
declare module "../types.js" {
|
|
9
4
|
interface EmbeddedEmbedders {
|
|
10
5
|
[language]: typeof embedder;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { Options } from "prettier";
|
|
2
|
-
import type { Embedder } from "../../types.js";
|
|
3
1
|
import { language } from "./language.js";
|
|
4
|
-
export declare const embedder: Embedder
|
|
5
|
-
/**
|
|
6
|
-
* Register the embedder to the EmbeddedEmbedders
|
|
7
|
-
*/
|
|
2
|
+
export declare const embedder: import("../../types.js").Embedder;
|
|
8
3
|
declare module "../types.js" {
|
|
9
4
|
interface EmbeddedEmbedders {
|
|
10
5
|
[language]: typeof embedder;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
declare const DEFAULT_COMMENTS_OR_TAGS: readonly ["solidity", "sol"];
|
|
3
|
+
type CommentsOrTags = AutocompleteStringList<(typeof DEFAULT_COMMENTS_OR_TAGS)[number]>;
|
|
4
|
+
type Defaults = StringListToInterfaceKey<typeof DEFAULT_COMMENTS_OR_TAGS>;
|
|
5
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedSolidityComments";
|
|
6
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedSolidityTags";
|
|
7
|
+
declare const EMBEDDED_LANGUAGE_PARSER: "embeddedSolidityParser";
|
|
8
|
+
export declare const options: {
|
|
9
|
+
readonly embeddedSolidityComments: {
|
|
10
|
+
readonly category: "Embed";
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly array: true;
|
|
13
|
+
readonly default: [{
|
|
14
|
+
readonly value: ["solidity", "sol"];
|
|
15
|
+
}];
|
|
16
|
+
readonly description: "Block comments that identify embedded Solidity in template literals. Requires the `prettier-plugin-solidity` plugin.";
|
|
17
|
+
};
|
|
18
|
+
readonly embeddedSolidityTags: {
|
|
19
|
+
readonly category: "Embed";
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly array: true;
|
|
22
|
+
readonly default: [{
|
|
23
|
+
readonly value: ["solidity", "sol"];
|
|
24
|
+
}];
|
|
25
|
+
readonly description: "Tags that identify embedded Solidity in template literals. Requires the `prettier-plugin-solidity` plugin.";
|
|
26
|
+
};
|
|
27
|
+
readonly embeddedSolidityParser: {
|
|
28
|
+
readonly category: "Embed";
|
|
29
|
+
readonly type: "choice";
|
|
30
|
+
readonly default: "slang";
|
|
31
|
+
readonly description: "The parser used to format embedded Solidity.";
|
|
32
|
+
readonly choices: [{
|
|
33
|
+
readonly value: "slang";
|
|
34
|
+
readonly description: "Use the `slang` parser.";
|
|
35
|
+
}, {
|
|
36
|
+
readonly value: "antlr";
|
|
37
|
+
readonly description: "Use the `antlr` parser.";
|
|
38
|
+
}, {
|
|
39
|
+
readonly value: "solidity-parse";
|
|
40
|
+
readonly description: "Use the `solidity-parse` parser.";
|
|
41
|
+
}];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type Options = typeof options;
|
|
45
|
+
declare module "../types.js" {
|
|
46
|
+
interface EmbeddedOptions extends Options {
|
|
47
|
+
}
|
|
48
|
+
interface EmbeddedDefaultCommentsHolder extends Defaults {
|
|
49
|
+
}
|
|
50
|
+
interface EmbeddedDefaultTagsHolder extends Defaults {
|
|
51
|
+
}
|
|
52
|
+
interface PluginEmbedOptions {
|
|
53
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: CommentsOrTags;
|
|
54
|
+
[EMBEDDED_LANGUAGE_TAGS]?: CommentsOrTags;
|
|
55
|
+
[EMBEDDED_LANGUAGE_PARSER]?: "slang" | "antlr" | "solidity-parse";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export {};
|