prettier-plugin-embed 0.4.10 → 0.4.11
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 +578 -89
- package/dist/embedded/css/options.d.ts +36 -11
- package/dist/embedded/es/options.d.ts +36 -11
- package/dist/embedded/glsl/options.d.ts +36 -11
- package/dist/embedded/graphql/options.d.ts +36 -10
- package/dist/embedded/html/options.d.ts +36 -11
- package/dist/embedded/index.d.ts +2 -2
- package/dist/embedded/ini/options.d.ts +36 -10
- package/dist/embedded/java/options.d.ts +36 -5
- package/dist/embedded/json/options.d.ts +37 -11
- package/dist/embedded/jsonata/options.d.ts +36 -5
- package/dist/embedded/latex/options.d.ts +36 -10
- package/dist/embedded/markdown/options.d.ts +36 -11
- package/dist/embedded/nginx/options.d.ts +36 -5
- package/dist/embedded/noop/options.d.ts +29 -3
- package/dist/embedded/pegjs/options.d.ts +36 -5
- package/dist/embedded/php/options.d.ts +36 -11
- package/dist/embedded/prisma/options.d.ts +36 -5
- package/dist/embedded/properties/options.d.ts +36 -10
- package/dist/embedded/pug/options.d.ts +36 -5
- package/dist/embedded/ruby/options.d.ts +36 -10
- package/dist/embedded/sh/options.d.ts +36 -10
- package/dist/embedded/sql/options.d.ts +36 -11
- package/dist/embedded/toml/options.d.ts +36 -10
- package/dist/embedded/ts/options.d.ts +37 -12
- package/dist/embedded/types.d.ts +8 -2
- package/dist/embedded/utils.d.ts +3 -1
- package/dist/embedded/xml/options.d.ts +36 -11
- package/dist/embedded/yaml/options.d.ts +36 -10
- package/dist/index.js +1537 -1068
- package/dist/options.d.ts +509 -11
- package/dist/types.d.ts +36 -6
- package/dist/utils.d.ts +136 -5
- package/package.json +5 -6
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
9
|
-
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["latex", "tex", "aux", "cls", "bbl", "bib", "toc", "sty"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["latex", "tex", "aux", "cls", "bbl", "bib", "toc", "sty"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
10
8
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedLatexIdentifiers";
|
|
9
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedLatexComments";
|
|
10
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedLatexTags";
|
|
11
11
|
export declare const options: {
|
|
12
12
|
readonly embeddedLatexIdentifiers: {
|
|
13
13
|
readonly category: "Embed";
|
|
@@ -17,16 +17,42 @@ export declare const options: {
|
|
|
17
17
|
readonly value: ["latex", "tex", "aux", "cls", "bbl", "bib", "toc", "sty"];
|
|
18
18
|
}];
|
|
19
19
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin.";
|
|
20
|
+
readonly deprecated: "Please use `embeddedLatexComments` or `embeddedLatexTags`.";
|
|
21
|
+
};
|
|
22
|
+
readonly embeddedLatexComments: {
|
|
23
|
+
readonly category: "Embed";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly array: true;
|
|
26
|
+
readonly default: [{
|
|
27
|
+
readonly value: [];
|
|
28
|
+
}];
|
|
29
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin.";
|
|
30
|
+
};
|
|
31
|
+
readonly embeddedLatexTags: {
|
|
32
|
+
readonly category: "Embed";
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly array: true;
|
|
35
|
+
readonly default: [{
|
|
36
|
+
readonly value: [];
|
|
37
|
+
}];
|
|
38
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin.";
|
|
20
39
|
};
|
|
21
40
|
};
|
|
22
41
|
type Options = typeof options;
|
|
23
42
|
declare module "../types.js" {
|
|
24
43
|
interface EmbeddedOptions extends Options {
|
|
25
44
|
}
|
|
26
|
-
interface
|
|
45
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
46
|
+
}
|
|
47
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
27
48
|
}
|
|
28
49
|
interface PluginEmbedOptions {
|
|
29
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Please use `embeddedLatexComments` or `embeddedLatexTags`.
|
|
52
|
+
*/
|
|
53
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
54
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
55
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
30
56
|
}
|
|
31
57
|
}
|
|
32
58
|
export {};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare const DEFAULT_IDENTIFIERS: readonly ["md", "markdown"];
|
|
9
|
-
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
10
|
-
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["md", "markdown"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["md", "markdown"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
11
8
|
declare const MARKDOWN_PARSERS: readonly ["markdown", "mdx", "remark"];
|
|
12
9
|
type MarkdownParser = (typeof MARKDOWN_PARSERS)[number];
|
|
13
10
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedMarkdownIdentifiers";
|
|
11
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedMarkdownComments";
|
|
12
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedMarkdownTags";
|
|
14
13
|
declare const EMBEDDED_LANGUAGE_PARSER: "embeddedMarkdownParser";
|
|
15
14
|
export declare const options: {
|
|
16
15
|
readonly embeddedMarkdownIdentifiers: {
|
|
@@ -21,6 +20,25 @@ export declare const options: {
|
|
|
21
20
|
readonly value: ["md", "markdown"];
|
|
22
21
|
}];
|
|
23
22
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Markdown language.";
|
|
23
|
+
readonly deprecated: "Please use `embeddedMarkdownComments` or `embeddedMarkdownTags`.";
|
|
24
|
+
};
|
|
25
|
+
readonly embeddedMarkdownComments: {
|
|
26
|
+
readonly category: "Embed";
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly array: true;
|
|
29
|
+
readonly default: [{
|
|
30
|
+
readonly value: [];
|
|
31
|
+
}];
|
|
32
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded Markdown language.";
|
|
33
|
+
};
|
|
34
|
+
readonly embeddedMarkdownTags: {
|
|
35
|
+
readonly category: "Embed";
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
readonly array: true;
|
|
38
|
+
readonly default: [{
|
|
39
|
+
readonly value: [];
|
|
40
|
+
}];
|
|
41
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded Markdown language.";
|
|
24
42
|
};
|
|
25
43
|
readonly embeddedMarkdownParser: {
|
|
26
44
|
category: string;
|
|
@@ -37,10 +55,17 @@ type Options = typeof options;
|
|
|
37
55
|
declare module "../types.js" {
|
|
38
56
|
interface EmbeddedOptions extends Options {
|
|
39
57
|
}
|
|
40
|
-
interface
|
|
58
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
59
|
+
}
|
|
60
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
41
61
|
}
|
|
42
62
|
interface PluginEmbedOptions {
|
|
43
|
-
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Please use `embeddedMarkdownComments` or `embeddedMarkdownTags`.
|
|
65
|
+
*/
|
|
66
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
67
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
68
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
44
69
|
[EMBEDDED_LANGUAGE_PARSER]?: MarkdownParser;
|
|
45
70
|
}
|
|
46
71
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
declare const
|
|
3
|
-
type
|
|
4
|
-
type
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["nginx"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["nginx"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
5
8
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedNginxIdentifiers";
|
|
9
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedNginxComments";
|
|
10
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedNginxTags";
|
|
6
11
|
export declare const options: {
|
|
7
12
|
readonly embeddedNginxIdentifiers: {
|
|
8
13
|
readonly category: "Embed";
|
|
@@ -12,16 +17,42 @@ export declare const options: {
|
|
|
12
17
|
readonly value: ["nginx"];
|
|
13
18
|
}];
|
|
14
19
|
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.";
|
|
20
|
+
readonly deprecated: "Please use `embeddedNginxComments` or `embeddedNginxTags`.";
|
|
21
|
+
};
|
|
22
|
+
readonly embeddedNginxComments: {
|
|
23
|
+
readonly category: "Embed";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly array: true;
|
|
26
|
+
readonly default: [{
|
|
27
|
+
readonly value: [];
|
|
28
|
+
}];
|
|
29
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.";
|
|
30
|
+
};
|
|
31
|
+
readonly embeddedNginxTags: {
|
|
32
|
+
readonly category: "Embed";
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly array: true;
|
|
35
|
+
readonly default: [{
|
|
36
|
+
readonly value: [];
|
|
37
|
+
}];
|
|
38
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.";
|
|
15
39
|
};
|
|
16
40
|
};
|
|
17
41
|
type Options = typeof options;
|
|
18
42
|
declare module "../types.js" {
|
|
19
43
|
interface EmbeddedOptions extends Options {
|
|
20
44
|
}
|
|
21
|
-
interface
|
|
45
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
46
|
+
}
|
|
47
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
22
48
|
}
|
|
23
49
|
interface PluginEmbedOptions {
|
|
24
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Please use `embeddedNginxComments` or `embeddedNginxTags`.
|
|
52
|
+
*/
|
|
53
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
54
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
55
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
25
56
|
}
|
|
26
57
|
}
|
|
27
58
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EmbeddedDefaultComment, EmbeddedDefaultTag } from "../types.js";
|
|
2
2
|
import { type AutocompleteStringList } from "../utils.js";
|
|
3
|
-
type
|
|
3
|
+
type EmbeddedCommentsOrTags = AutocompleteStringList<EmbeddedDefaultComment | EmbeddedDefaultTag>;
|
|
4
4
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedNoopIdentifiers";
|
|
5
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedNoopComments";
|
|
6
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedNoopTags";
|
|
5
7
|
export declare const options: {
|
|
6
8
|
readonly embeddedNoopIdentifiers: {
|
|
7
9
|
readonly category: "Embed";
|
|
@@ -11,6 +13,25 @@ export declare const options: {
|
|
|
11
13
|
readonly value: [];
|
|
12
14
|
}];
|
|
13
15
|
readonly description: "Tag or comment identifiers that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.";
|
|
16
|
+
readonly deprecated: "Please use `embeddedNoopComments` or `embeddedNoopTags`.";
|
|
17
|
+
};
|
|
18
|
+
readonly embeddedNoopComments: {
|
|
19
|
+
readonly category: "Embed";
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly array: true;
|
|
22
|
+
readonly default: [{
|
|
23
|
+
readonly value: [];
|
|
24
|
+
}];
|
|
25
|
+
readonly description: "Block comments that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.";
|
|
26
|
+
};
|
|
27
|
+
readonly embeddedNoopTags: {
|
|
28
|
+
readonly category: "Embed";
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly array: true;
|
|
31
|
+
readonly default: [{
|
|
32
|
+
readonly value: [];
|
|
33
|
+
}];
|
|
34
|
+
readonly description: "Tags that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.";
|
|
14
35
|
};
|
|
15
36
|
};
|
|
16
37
|
type Options = typeof options;
|
|
@@ -18,7 +39,12 @@ declare module "../types.js" {
|
|
|
18
39
|
interface EmbeddedOptions extends Options {
|
|
19
40
|
}
|
|
20
41
|
interface PluginEmbedOptions {
|
|
21
|
-
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Please use `embeddedNoopComments` or `embeddedNoopTags`.
|
|
44
|
+
*/
|
|
45
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: EmbeddedCommentsOrTags;
|
|
46
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: EmbeddedCommentsOrTags;
|
|
47
|
+
[EMBEDDED_LANGUAGE_TAGS]?: EmbeddedCommentsOrTags;
|
|
22
48
|
}
|
|
23
49
|
}
|
|
24
50
|
export {};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
declare const
|
|
3
|
-
type
|
|
4
|
-
type
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["pegjs", "peggy", "peg"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["pegjs", "peggy", "peg"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
5
8
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPegjsIdentifiers";
|
|
9
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedPegjsComments";
|
|
10
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedPegjsTags";
|
|
6
11
|
export declare const options: {
|
|
7
12
|
readonly embeddedPegjsIdentifiers: {
|
|
8
13
|
readonly category: "Embed";
|
|
@@ -12,16 +17,42 @@ export declare const options: {
|
|
|
12
17
|
readonly value: ["pegjs", "peggy", "peg"];
|
|
13
18
|
}];
|
|
14
19
|
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.";
|
|
20
|
+
readonly deprecated: "Please use `embeddedPegjsComments` or `embeddedPegjsTags`.";
|
|
21
|
+
};
|
|
22
|
+
readonly embeddedPegjsComments: {
|
|
23
|
+
readonly category: "Embed";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly array: true;
|
|
26
|
+
readonly default: [{
|
|
27
|
+
readonly value: [];
|
|
28
|
+
}];
|
|
29
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin.";
|
|
30
|
+
};
|
|
31
|
+
readonly embeddedPegjsTags: {
|
|
32
|
+
readonly category: "Embed";
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly array: true;
|
|
35
|
+
readonly default: [{
|
|
36
|
+
readonly value: [];
|
|
37
|
+
}];
|
|
38
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin.";
|
|
15
39
|
};
|
|
16
40
|
};
|
|
17
41
|
type Options = typeof options;
|
|
18
42
|
declare module "../types.js" {
|
|
19
43
|
interface EmbeddedOptions extends Options {
|
|
20
44
|
}
|
|
21
|
-
interface
|
|
45
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
46
|
+
}
|
|
47
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
22
48
|
}
|
|
23
49
|
interface PluginEmbedOptions {
|
|
24
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Please use `embeddedPegjsComments` or `embeddedPegjsTags`.
|
|
52
|
+
*/
|
|
53
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
54
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
55
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
25
56
|
}
|
|
26
57
|
}
|
|
27
58
|
export {};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare const DEFAULT_IDENTIFIERS: readonly ["php", "php5"];
|
|
9
|
-
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
10
|
-
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["php", "php5"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["php", "php5"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
11
8
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPhpIdentifiers";
|
|
9
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedPhpComments";
|
|
10
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedPhpTags";
|
|
12
11
|
export declare const options: {
|
|
13
12
|
readonly embeddedPhpIdentifiers: {
|
|
14
13
|
readonly category: "Embed";
|
|
@@ -18,16 +17,42 @@ export declare const options: {
|
|
|
18
17
|
readonly value: ["php", "php5"];
|
|
19
18
|
}];
|
|
20
19
|
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.";
|
|
20
|
+
readonly deprecated: "Please use `embeddedPhpComments` or `embeddedPhpTags`.";
|
|
21
|
+
};
|
|
22
|
+
readonly embeddedPhpComments: {
|
|
23
|
+
readonly category: "Embed";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly array: true;
|
|
26
|
+
readonly default: [{
|
|
27
|
+
readonly value: [];
|
|
28
|
+
}];
|
|
29
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin.";
|
|
30
|
+
};
|
|
31
|
+
readonly embeddedPhpTags: {
|
|
32
|
+
readonly category: "Embed";
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly array: true;
|
|
35
|
+
readonly default: [{
|
|
36
|
+
readonly value: [];
|
|
37
|
+
}];
|
|
38
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin.";
|
|
21
39
|
};
|
|
22
40
|
};
|
|
23
41
|
type Options = typeof options;
|
|
24
42
|
declare module "../types.js" {
|
|
25
43
|
interface EmbeddedOptions extends Options {
|
|
26
44
|
}
|
|
27
|
-
interface
|
|
45
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
46
|
+
}
|
|
47
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
28
48
|
}
|
|
29
49
|
interface PluginEmbedOptions {
|
|
30
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Please use `embeddedPhpComments` or `embeddedPhpTags`.
|
|
52
|
+
*/
|
|
53
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
54
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
55
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
31
56
|
}
|
|
32
57
|
}
|
|
33
58
|
export {};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
declare const
|
|
3
|
-
type
|
|
4
|
-
type
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["prisma"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["prisma"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
5
8
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPrismaIdentifiers";
|
|
9
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedPrismaComments";
|
|
10
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedPrismaTags";
|
|
6
11
|
export declare const options: {
|
|
7
12
|
readonly embeddedPrismaIdentifiers: {
|
|
8
13
|
readonly category: "Embed";
|
|
@@ -12,16 +17,42 @@ export declare const options: {
|
|
|
12
17
|
readonly value: ["prisma"];
|
|
13
18
|
}];
|
|
14
19
|
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.";
|
|
20
|
+
readonly deprecated: "Please use `embeddedPrismaComments` or `embeddedPrismaTags`.";
|
|
21
|
+
};
|
|
22
|
+
readonly embeddedPrismaComments: {
|
|
23
|
+
readonly category: "Embed";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly array: true;
|
|
26
|
+
readonly default: [{
|
|
27
|
+
readonly value: [];
|
|
28
|
+
}];
|
|
29
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin.";
|
|
30
|
+
};
|
|
31
|
+
readonly embeddedPrismaTags: {
|
|
32
|
+
readonly category: "Embed";
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly array: true;
|
|
35
|
+
readonly default: [{
|
|
36
|
+
readonly value: [];
|
|
37
|
+
}];
|
|
38
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin.";
|
|
15
39
|
};
|
|
16
40
|
};
|
|
17
41
|
type Options = typeof options;
|
|
18
42
|
declare module "../types.js" {
|
|
19
43
|
interface EmbeddedOptions extends Options {
|
|
20
44
|
}
|
|
21
|
-
interface
|
|
45
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
46
|
+
}
|
|
47
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
22
48
|
}
|
|
23
49
|
interface PluginEmbedOptions {
|
|
24
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Please use `embeddedPrismaComments` or `embeddedPrismaTags`.
|
|
52
|
+
*/
|
|
53
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
54
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
55
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
25
56
|
}
|
|
26
57
|
}
|
|
27
58
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
9
|
-
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["properties"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["properties"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
10
8
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPropertiesIdentifiers";
|
|
9
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedPropertiesComments";
|
|
10
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedPropertiesTags";
|
|
11
11
|
export declare const options: {
|
|
12
12
|
readonly embeddedPropertiesIdentifiers: {
|
|
13
13
|
readonly category: "Embed";
|
|
@@ -17,16 +17,42 @@ export declare const options: {
|
|
|
17
17
|
readonly value: ["properties"];
|
|
18
18
|
}];
|
|
19
19
|
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.";
|
|
20
|
+
readonly deprecated: "Please use `embeddedPropertiesComments` or `embeddedPropertiesTags`.";
|
|
21
|
+
};
|
|
22
|
+
readonly embeddedPropertiesComments: {
|
|
23
|
+
readonly category: "Embed";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly array: true;
|
|
26
|
+
readonly default: [{
|
|
27
|
+
readonly value: [];
|
|
28
|
+
}];
|
|
29
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin.";
|
|
30
|
+
};
|
|
31
|
+
readonly embeddedPropertiesTags: {
|
|
32
|
+
readonly category: "Embed";
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly array: true;
|
|
35
|
+
readonly default: [{
|
|
36
|
+
readonly value: [];
|
|
37
|
+
}];
|
|
38
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin.";
|
|
20
39
|
};
|
|
21
40
|
};
|
|
22
41
|
type Options = typeof options;
|
|
23
42
|
declare module "../types.js" {
|
|
24
43
|
interface EmbeddedOptions extends Options {
|
|
25
44
|
}
|
|
26
|
-
interface
|
|
45
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
46
|
+
}
|
|
47
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
27
48
|
}
|
|
28
49
|
interface PluginEmbedOptions {
|
|
29
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Please use `embeddedPropertiesComments` or `embeddedPropertiesTags`.
|
|
52
|
+
*/
|
|
53
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
54
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
55
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
30
56
|
}
|
|
31
57
|
}
|
|
32
58
|
export {};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
declare const
|
|
3
|
-
type
|
|
4
|
-
type
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["pug", "jade"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["pug", "jade"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
5
8
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPugIdentifiers";
|
|
9
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedPugComments";
|
|
10
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedPugTags";
|
|
6
11
|
export declare const options: {
|
|
7
12
|
readonly embeddedPugIdentifiers: {
|
|
8
13
|
readonly category: "Embed";
|
|
@@ -12,16 +17,42 @@ export declare const options: {
|
|
|
12
17
|
readonly value: ["pug", "jade"];
|
|
13
18
|
}];
|
|
14
19
|
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.";
|
|
20
|
+
readonly deprecated: "Please use `embeddedPugComments` or `embeddedPugTags`.";
|
|
21
|
+
};
|
|
22
|
+
readonly embeddedPugComments: {
|
|
23
|
+
readonly category: "Embed";
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly array: true;
|
|
26
|
+
readonly default: [{
|
|
27
|
+
readonly value: [];
|
|
28
|
+
}];
|
|
29
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin.";
|
|
30
|
+
};
|
|
31
|
+
readonly embeddedPugTags: {
|
|
32
|
+
readonly category: "Embed";
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly array: true;
|
|
35
|
+
readonly default: [{
|
|
36
|
+
readonly value: [];
|
|
37
|
+
}];
|
|
38
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin.";
|
|
15
39
|
};
|
|
16
40
|
};
|
|
17
41
|
type Options = typeof options;
|
|
18
42
|
declare module "../types.js" {
|
|
19
43
|
interface EmbeddedOptions extends Options {
|
|
20
44
|
}
|
|
21
|
-
interface
|
|
45
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
46
|
+
}
|
|
47
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
22
48
|
}
|
|
23
49
|
interface PluginEmbedOptions {
|
|
24
|
-
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Please use `embeddedPugComments` or `embeddedPugTags`.
|
|
52
|
+
*/
|
|
53
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
54
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
55
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
25
56
|
}
|
|
26
57
|
}
|
|
27
58
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
9
|
-
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
2
|
+
declare const DEFAULT_COMMENTS: readonly ["ruby"];
|
|
3
|
+
type Comments = AutocompleteStringList<(typeof DEFAULT_COMMENTS)[number]>;
|
|
4
|
+
type DefaultCommentsHolder = StringListToInterfaceKey<typeof DEFAULT_COMMENTS>;
|
|
5
|
+
declare const DEFAULT_TAGS: readonly ["ruby"];
|
|
6
|
+
type Tags = AutocompleteStringList<(typeof DEFAULT_TAGS)[number]>;
|
|
7
|
+
type DefaultTagsHolder = StringListToInterfaceKey<typeof DEFAULT_TAGS>;
|
|
10
8
|
declare const RUBY_PARSERS: readonly ["ruby", "rbs", "haml"];
|
|
11
9
|
export type RubyParser = (typeof RUBY_PARSERS)[number];
|
|
12
10
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedRubyIdentifiers";
|
|
11
|
+
declare const EMBEDDED_LANGUAGE_COMMENTS: "embeddedRubyComments";
|
|
12
|
+
declare const EMBEDDED_LANGUAGE_TAGS: "embeddedRubyTags";
|
|
13
13
|
declare const EMBEDDED_LANGUAGE_PARSER: "embeddedRubyParser";
|
|
14
14
|
export declare const options: {
|
|
15
15
|
readonly embeddedRubyIdentifiers: {
|
|
@@ -20,6 +20,25 @@ export declare const options: {
|
|
|
20
20
|
readonly value: ["ruby"];
|
|
21
21
|
}];
|
|
22
22
|
readonly description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.";
|
|
23
|
+
readonly deprecated: "Please use `embeddedRubyComments` or `embeddedRubyTags`.";
|
|
24
|
+
};
|
|
25
|
+
readonly embeddedRubyComments: {
|
|
26
|
+
readonly category: "Embed";
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly array: true;
|
|
29
|
+
readonly default: [{
|
|
30
|
+
readonly value: [];
|
|
31
|
+
}];
|
|
32
|
+
readonly description: "Block comments that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.";
|
|
33
|
+
};
|
|
34
|
+
readonly embeddedRubyTags: {
|
|
35
|
+
readonly category: "Embed";
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
readonly array: true;
|
|
38
|
+
readonly default: [{
|
|
39
|
+
readonly value: [];
|
|
40
|
+
}];
|
|
41
|
+
readonly description: "Tags that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.";
|
|
23
42
|
};
|
|
24
43
|
readonly embeddedRubyParser: {
|
|
25
44
|
category: string;
|
|
@@ -36,10 +55,17 @@ type Options = typeof options;
|
|
|
36
55
|
declare module "../types.js" {
|
|
37
56
|
interface EmbeddedOptions extends Options {
|
|
38
57
|
}
|
|
39
|
-
interface
|
|
58
|
+
interface EmbeddedDefaultCommentsHolder extends DefaultCommentsHolder {
|
|
59
|
+
}
|
|
60
|
+
interface EmbeddedDefaultTagsHolder extends DefaultTagsHolder {
|
|
40
61
|
}
|
|
41
62
|
interface PluginEmbedOptions {
|
|
42
|
-
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Please use `embeddedRubyComments` or `embeddedRubyTags`.
|
|
65
|
+
*/
|
|
66
|
+
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: (Comments[number] | Tags[number])[];
|
|
67
|
+
[EMBEDDED_LANGUAGE_COMMENTS]?: Comments;
|
|
68
|
+
[EMBEDDED_LANGUAGE_TAGS]?: Tags;
|
|
43
69
|
[EMBEDDED_LANGUAGE_PARSER]?: RubyParser;
|
|
44
70
|
}
|
|
45
71
|
}
|