prettier-plugin-embed 0.1.0 → 0.2.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.bak +211 -0
- package/README.md +62 -37
- package/dist/embedded/css/embedded-language.d.ts +6 -0
- package/dist/embedded/css/embedder.d.ts +9 -0
- package/dist/embedded/css/index.d.ts +3 -0
- package/dist/embedded/css/options.d.ts +37 -0
- package/dist/embedded/es/options.d.ts +14 -10
- package/dist/embedded/glsl/embedded-language.d.ts +6 -0
- package/dist/embedded/glsl/embedder.d.ts +9 -0
- package/dist/embedded/glsl/index.d.ts +3 -0
- package/dist/embedded/glsl/options.d.ts +37 -0
- package/dist/embedded/html/options.d.ts +10 -6
- package/dist/embedded/index.d.ts +1 -0
- package/dist/embedded/markdown/embedded-language.d.ts +6 -0
- package/dist/embedded/markdown/embedder.d.ts +9 -0
- package/dist/embedded/markdown/index.d.ts +3 -0
- package/dist/embedded/markdown/options.d.ts +38 -0
- package/dist/embedded/noop/options.d.ts +6 -3
- package/dist/embedded/php/options.d.ts +15 -11
- package/dist/embedded/register.d.ts +11 -7
- package/dist/embedded/ruby/embedded-language.d.ts +6 -0
- package/dist/embedded/ruby/embedder.d.ts +9 -0
- package/dist/embedded/ruby/index.d.ts +3 -0
- package/dist/embedded/ruby/options.d.ts +60 -0
- package/dist/embedded/sql/options.d.ts +9 -6
- package/dist/embedded/ts/options.d.ts +14 -10
- package/dist/embedded/utils.d.ts +4 -2
- package/dist/embedded/xml/options.d.ts +12 -8
- package/dist/index.js +819 -525
- package/dist/options.d.ts +55 -12
- package/package.json +18 -11
- package/dist/prettier-plugin-embed-wide-dark.svg +0 -309
- package/dist/prettier-plugin-embed-wide-light.svg +0 -309
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Options } from "prettier";
|
|
2
|
+
import type { Embedder } from "../../types.js";
|
|
3
|
+
import { embeddedLanguage } from "./embedded-language.js";
|
|
4
|
+
export declare const embedder: Embedder<Options>;
|
|
5
|
+
declare module "../types.js" {
|
|
6
|
+
interface EmbeddedEmbedders {
|
|
7
|
+
[embeddedLanguage]: typeof embedder;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
/** References:
|
|
3
|
+
* - https://github.com/microsoft/vscode/blob/de0121cf0e05d1673903551b6dbb2871556bfae9/extensions/markdown-basics/package.json#L19
|
|
4
|
+
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L4060
|
|
5
|
+
*/
|
|
6
|
+
declare const DEFAULT_IDENTIFIERS: readonly ["md", "livemd", "markdown", "mdown", "mdwn", "mkd", "mkdn", "mkdown", "ronn", "scd", "workbook"];
|
|
7
|
+
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
8
|
+
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
9
|
+
declare const embeddedLanguageIdentifiersOptionName: "embeddedMarkdownIdentifiers";
|
|
10
|
+
export interface PrettierPluginDepsOptions {
|
|
11
|
+
__inJsTemplate?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const options: {
|
|
14
|
+
embeddedMarkdownIdentifiers: {
|
|
15
|
+
category: "Global";
|
|
16
|
+
type: "string";
|
|
17
|
+
array: true;
|
|
18
|
+
default: {
|
|
19
|
+
value: ("md" | "livemd" | "markdown" | "mdown" | "mdwn" | "mkd" | "mkdn" | "mkdown" | "ronn" | "scd" | "workbook")[];
|
|
20
|
+
}[];
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type Options = typeof options;
|
|
25
|
+
declare module "../types.js" {
|
|
26
|
+
interface EmbeddedOptions extends Options {
|
|
27
|
+
}
|
|
28
|
+
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
29
|
+
}
|
|
30
|
+
interface PrettierPluginEmbedOptions {
|
|
31
|
+
[embeddedLanguageIdentifiersOptionName]?: Identifiers;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
declare module "prettier" {
|
|
35
|
+
interface Options extends PrettierPluginDepsOptions {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type AutocompleteStringList } from "../utils.js";
|
|
2
|
+
import type { EmbeddedDefaultIdentifier } from "../types.js";
|
|
3
|
+
type EmbeddedIdentifiers = AutocompleteStringList<EmbeddedDefaultIdentifier[]>;
|
|
4
|
+
declare const embeddedLanguageIdentifiers: "embeddedNoopIdentifiers";
|
|
2
5
|
export declare const options: {
|
|
3
|
-
|
|
6
|
+
embeddedNoopIdentifiers: {
|
|
4
7
|
category: "Global";
|
|
5
8
|
type: "string";
|
|
6
9
|
array: true;
|
|
@@ -15,7 +18,7 @@ declare module "../types.js" {
|
|
|
15
18
|
interface EmbeddedOptions extends Options {
|
|
16
19
|
}
|
|
17
20
|
interface PrettierPluginEmbedOptions {
|
|
18
|
-
[
|
|
21
|
+
[embeddedLanguageIdentifiers]?: EmbeddedIdentifiers;
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
export {};
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
/** References
|
|
3
|
+
* - https://github.com/microsoft/vscode/blob/de0121cf0e05d1673903551b6dbb2871556bfae9/extensions/php/package.json#L15
|
|
4
|
+
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L4971
|
|
5
|
+
*/
|
|
3
6
|
declare const DEFAULT_IDENTIFIERS: readonly ["php", "php5", "phtml", "ctp"];
|
|
4
|
-
type Identifiers =
|
|
5
|
-
type DefaultIdentifiersHolder =
|
|
7
|
+
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
8
|
+
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
9
|
+
declare const embeddedLanguageIdentifiers: "embeddedPhpIdentifiers";
|
|
10
|
+
export interface PrettierPluginDepsOptions {
|
|
11
|
+
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";
|
|
12
|
+
trailingCommaPHP?: boolean;
|
|
13
|
+
braceStyle?: "psr-2" | "per-cs" | "1tbs";
|
|
14
|
+
}
|
|
6
15
|
export declare const options: {
|
|
7
|
-
|
|
16
|
+
embeddedPhpIdentifiers: {
|
|
8
17
|
category: "Global";
|
|
9
18
|
type: "string";
|
|
10
19
|
array: true;
|
|
@@ -15,18 +24,13 @@ export declare const options: {
|
|
|
15
24
|
};
|
|
16
25
|
};
|
|
17
26
|
type Options = typeof options;
|
|
18
|
-
export interface PrettierPluginDepsOptions {
|
|
19
|
-
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";
|
|
20
|
-
trailingCommaPHP?: boolean;
|
|
21
|
-
braceStyle?: "psr-2" | "per-cs" | "1tbs";
|
|
22
|
-
}
|
|
23
27
|
declare module "../types.js" {
|
|
24
28
|
interface EmbeddedOptions extends Options {
|
|
25
29
|
}
|
|
26
30
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
27
31
|
}
|
|
28
32
|
interface PrettierPluginEmbedOptions {
|
|
29
|
-
[
|
|
33
|
+
[embeddedLanguageIdentifiers]?: Identifiers;
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
declare module "prettier" {
|
|
@@ -3,10 +3,14 @@ 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 "./
|
|
6
|
+
import * as __glob__0_0 from "./css/index.js";
|
|
7
|
+
import * as __glob__0_1 from "./es/index.js";
|
|
8
|
+
import * as __glob__0_2 from "./glsl/index.js";
|
|
9
|
+
import * as __glob__0_3 from "./html/index.js";
|
|
10
|
+
import * as __glob__0_4 from "./markdown/index.js";
|
|
11
|
+
import * as __glob__0_5 from "./noop/index.js";
|
|
12
|
+
import * as __glob__0_6 from "./php/index.js";
|
|
13
|
+
import * as __glob__0_7 from "./ruby/index.js";
|
|
14
|
+
import * as __glob__0_8 from "./sql/index.js";
|
|
15
|
+
import * as __glob__0_9 from "./ts/index.js";
|
|
16
|
+
import * as __glob__0_10 from "./xml/index.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Options } from "prettier";
|
|
2
|
+
import type { Embedder } from "../../types.js";
|
|
3
|
+
import { embeddedLanguage } from "./embedded-language.js";
|
|
4
|
+
export declare const embedder: Embedder<Options>;
|
|
5
|
+
declare module "../types.js" {
|
|
6
|
+
interface EmbeddedEmbedders {
|
|
7
|
+
[embeddedLanguage]: typeof embedder;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
declare const RUBY_PARSERS: readonly ["ruby", "rbs", "haml"];
|
|
3
|
+
export type RubyParser = (typeof RUBY_PARSERS)[number];
|
|
4
|
+
/** References
|
|
5
|
+
* - https://github.com/prettier/plugin-ruby/blob/0a2100ca3b8b53d9491270ece64806d95da181a6/src/plugin.js#L194
|
|
6
|
+
*/
|
|
7
|
+
export declare const RUBY_PARSER_IDENTIFIERS: readonly ["ruby", "arb", "axlsx", "builder", "eye", "fcgi", "gemfile", "gemspec", "god", "jb", "jbuilder", "mspec", "opal", "pluginspec", "podspec", "rabl", "rake", "rb", "rbi", "rbuild", "rbw", "rbx", "ru", "thor", "watchr"];
|
|
8
|
+
export type RubyParserIdentifier = (typeof RUBY_PARSER_IDENTIFIERS)[number];
|
|
9
|
+
export declare const RBS_PARSER_IDENTIFIERS: readonly ["rbs"];
|
|
10
|
+
export type RbsParserIdentifier = (typeof RBS_PARSER_IDENTIFIERS)[number];
|
|
11
|
+
export declare const HAML_PARSER_IDENTIFIERS: readonly ["haml"];
|
|
12
|
+
export type HamlParserIdentifier = (typeof HAML_PARSER_IDENTIFIERS)[number];
|
|
13
|
+
declare const DEFAULT_IDENTIFIERS: readonly ["ruby", "arb", "axlsx", "builder", "eye", "fcgi", "gemfile", "gemspec", "god", "jb", "jbuilder", "mspec", "opal", "pluginspec", "podspec", "rabl", "rake", "rb", "rbi", "rbuild", "rbw", "rbx", "ru", "thor", "watchr", "rbs", "haml"];
|
|
14
|
+
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
15
|
+
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
16
|
+
declare const EMBEDDED_LANGUAGE_PARSER = "embeddedRubyParser";
|
|
17
|
+
declare const embeddedLanguageIdentifiers: "embeddedRubyIdentifiers";
|
|
18
|
+
export interface PrettierPluginDepsOptions {
|
|
19
|
+
rubyPlugins?: AutocompleteStringList<[
|
|
20
|
+
"plugin/single_quotes",
|
|
21
|
+
"plugin/trailing_comma",
|
|
22
|
+
"plugin/disable_auto_ternary"
|
|
23
|
+
]>;
|
|
24
|
+
rubySingleQuote?: boolean;
|
|
25
|
+
rubyExecutablePath?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const options: {
|
|
28
|
+
embeddedRubyIdentifiers: {
|
|
29
|
+
category: "Global";
|
|
30
|
+
type: "string";
|
|
31
|
+
array: true;
|
|
32
|
+
default: {
|
|
33
|
+
value: ("ruby" | "rbs" | "haml" | "arb" | "axlsx" | "builder" | "eye" | "fcgi" | "gemfile" | "gemspec" | "god" | "jb" | "jbuilder" | "mspec" | "opal" | "pluginspec" | "podspec" | "rabl" | "rake" | "rb" | "rbi" | "rbuild" | "rbw" | "rbx" | "ru" | "thor" | "watchr")[];
|
|
34
|
+
}[];
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
embeddedRubyParser: {
|
|
38
|
+
category: "Global";
|
|
39
|
+
type: "string";
|
|
40
|
+
array: false;
|
|
41
|
+
default: undefined;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
type Options = typeof options;
|
|
46
|
+
declare module "../types.js" {
|
|
47
|
+
interface EmbeddedOptions extends Options {
|
|
48
|
+
}
|
|
49
|
+
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
50
|
+
}
|
|
51
|
+
interface PrettierPluginEmbedOptions {
|
|
52
|
+
[embeddedLanguageIdentifiers]?: Identifiers;
|
|
53
|
+
[EMBEDDED_LANGUAGE_PARSER]?: RubyParser;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
declare module "prettier" {
|
|
57
|
+
interface Options extends PrettierPluginDepsOptions {
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import type { SqlBaseOptions as PrettierPluginDepsOptions } from "prettier-plugin-sql";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
3
|
+
/** References
|
|
4
|
+
* - https://github.com/un-ts/prettier/blob/214a5ff53c2485aabc6e78e1c346b69b712bee42/packages/sql/src/index.ts
|
|
5
|
+
*/
|
|
4
6
|
export declare const SQL_FORMATTER_LANGUAGES: readonly ["sql", "bigquery", "hive", "mariadb", "mysql", "postgresql", "db2", "plsql", "n1ql", "redshift", "singlestoredb", "spark", "sqlite", "transactsql", "tsql", "trino"];
|
|
5
7
|
export declare const NODE_SQL_PARSER_DATABASES: readonly ["bigquery", "db2", "hive", "mariadb", "mysql", "postgresql", "transactsql", "flinksql"];
|
|
6
|
-
type Identifiers =
|
|
7
|
-
type DefaultIdentifiersHolder =
|
|
8
|
+
type Identifiers = AutocompleteStringList<typeof SQL_FORMATTER_LANGUAGES | typeof NODE_SQL_PARSER_DATABASES>;
|
|
9
|
+
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof SQL_FORMATTER_LANGUAGES | typeof NODE_SQL_PARSER_DATABASES>;
|
|
8
10
|
export type SqlFormatterLanguage = (typeof SQL_FORMATTER_LANGUAGES)[number];
|
|
9
11
|
export type NodeSqlParserDataBase = (typeof NODE_SQL_PARSER_DATABASES)[number];
|
|
12
|
+
declare const embeddedLanguageIdentifiers: "embeddedSqlIdentifiers";
|
|
10
13
|
export { PrettierPluginDepsOptions };
|
|
11
14
|
export declare const options: {
|
|
12
|
-
|
|
15
|
+
embeddedSqlIdentifiers: {
|
|
13
16
|
category: "Global";
|
|
14
17
|
type: "string";
|
|
15
18
|
array: true;
|
|
@@ -26,7 +29,7 @@ declare module "../types.js" {
|
|
|
26
29
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
27
30
|
}
|
|
28
31
|
interface PrettierPluginEmbedOptions {
|
|
29
|
-
[
|
|
32
|
+
[embeddedLanguageIdentifiers]?: Identifiers;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
declare module "prettier" {
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
/** References:
|
|
3
|
+
* - https://github.com/microsoft/vscode/blob/de0121cf0e05d1673903551b6dbb2871556bfae9/extensions/typescript-basics/package.json#L24
|
|
4
|
+
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L7158
|
|
5
|
+
*/
|
|
6
|
+
declare const DEFAULT_IDENTIFIERS: readonly ["ts", "tsx", "cts", "mts", "typescript"];
|
|
7
|
+
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
8
|
+
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
6
9
|
declare const DEFAULT_TS_PARSERS: readonly ["typescript", "babel-ts"];
|
|
7
10
|
type TsParser = (typeof DEFAULT_TS_PARSERS)[number];
|
|
8
|
-
declare const
|
|
11
|
+
declare const EMBEDDED_LANGUAGE_PARSER = "embeddedTsParser";
|
|
12
|
+
declare const embeddedLanguageIdentifiers: "embeddedTsIdentifiers";
|
|
9
13
|
export interface PrettierPluginDepsOptions {
|
|
10
14
|
}
|
|
11
15
|
export declare const options: {
|
|
12
|
-
|
|
16
|
+
embeddedTsIdentifiers: {
|
|
13
17
|
category: "Global";
|
|
14
18
|
type: "string";
|
|
15
19
|
array: true;
|
|
16
20
|
default: {
|
|
17
|
-
value: ("ts" | "cts" | "mts" | "typescript")[];
|
|
21
|
+
value: ("ts" | "tsx" | "cts" | "mts" | "typescript")[];
|
|
18
22
|
}[];
|
|
19
23
|
description: string;
|
|
20
24
|
};
|
|
@@ -33,8 +37,8 @@ declare module "../types.js" {
|
|
|
33
37
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
34
38
|
}
|
|
35
39
|
interface PrettierPluginEmbedOptions {
|
|
36
|
-
[
|
|
37
|
-
[
|
|
40
|
+
[embeddedLanguageIdentifiers]?: Identifiers;
|
|
41
|
+
[EMBEDDED_LANGUAGE_PARSER]?: TsParser;
|
|
38
42
|
}
|
|
39
43
|
}
|
|
40
44
|
declare module "prettier" {
|
package/dist/embedded/utils.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export declare function preparePlaceholder(leading?: string, trailing?: string):
|
|
|
15
15
|
placeholderRegex: RegExp;
|
|
16
16
|
};
|
|
17
17
|
export declare function escapeRegExp(text: string): string;
|
|
18
|
-
export
|
|
19
|
-
export
|
|
18
|
+
export declare function makeIdentifiersOptionName<T extends string>(language: T): `${T}Identifiers`;
|
|
19
|
+
export declare function makeParserOptionName<T extends string>(language: T): `${T}Parser`;
|
|
20
|
+
export type AutocompleteStringList<T extends readonly string[]> = (T[number][] & string[]) | string[];
|
|
21
|
+
export type StringListToInterfaceKey<T extends readonly string[]> = {
|
|
20
22
|
[key in T[number]]: void;
|
|
21
23
|
};
|
|
22
24
|
export type Satisfies<U, T extends U> = T;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
|
+
/** References:
|
|
3
|
+
* - https://github.com/microsoft/vscode/blob/de0121cf0e05d1673903551b6dbb2871556bfae9/extensions/xml/package.json#L15
|
|
4
|
+
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L7712
|
|
5
|
+
*/
|
|
6
|
+
declare const DEFAULT_IDENTIFIERS: readonly ["xml", "xsd", "ascx", "atom", "axml", "axaml", "bpmn", "cpt", "csl", "csproj", "dita", "ditamap", "dtd", "ent", "mod", "dtml", "fsproj", "fxml", "iml", "isml", "jmx", "launch", "menu", "nuspec", "opml", "owl", "proj", "props", "pt", "publishsettings", "pubxml", "rbxlx", "rbxmx", "rdf", "rng", "rss", "shproj", "storyboard", "svg", "targets", "tld", "tmx", "vbproj", "vcxproj", "wsdl", "wxi", "wxl", "wxs", "xaml", "xbl", "xib", "xlf", "xliff", "xpdl", "xul", "xoml"];
|
|
7
|
+
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
8
|
+
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
9
|
+
declare const embeddedLanguageIdentifiers: "embeddedXmlIdentifiers";
|
|
6
10
|
export interface PrettierPluginDepsOptions {
|
|
7
11
|
xmlSelfClosingSpace?: boolean;
|
|
8
12
|
xmlWhitespaceSensitivity?: "strict" | "preserve" | "ignore";
|
|
@@ -10,12 +14,12 @@ export interface PrettierPluginDepsOptions {
|
|
|
10
14
|
xmlQuoteAttributes?: "preserve" | "single" | "double";
|
|
11
15
|
}
|
|
12
16
|
export declare const options: {
|
|
13
|
-
|
|
17
|
+
embeddedXmlIdentifiers: {
|
|
14
18
|
category: "Global";
|
|
15
19
|
type: "string";
|
|
16
20
|
array: true;
|
|
17
21
|
default: {
|
|
18
|
-
value: ("xml" | "xsd" | "ascx" | "atom" | "axml" | "axaml" | "bpmn" | "cpt" | "csl" | "csproj" | "dita" | "ditamap" | "dtd" | "ent" | "mod" | "dtml" | "fsproj" | "fxml" | "iml" | "isml" | "jmx" | "launch" | "menu" | "
|
|
22
|
+
value: ("xml" | "xsd" | "ascx" | "atom" | "axml" | "axaml" | "bpmn" | "cpt" | "csl" | "csproj" | "dita" | "ditamap" | "dtd" | "ent" | "mod" | "dtml" | "fsproj" | "fxml" | "iml" | "isml" | "jmx" | "launch" | "menu" | "nuspec" | "opml" | "owl" | "proj" | "props" | "pt" | "publishsettings" | "pubxml" | "rbxlx" | "rbxmx" | "rdf" | "rng" | "rss" | "shproj" | "storyboard" | "svg" | "targets" | "tld" | "tmx" | "vbproj" | "vcxproj" | "wsdl" | "wxi" | "wxl" | "wxs" | "xaml" | "xbl" | "xib" | "xlf" | "xliff" | "xpdl" | "xul" | "xoml")[];
|
|
19
23
|
}[];
|
|
20
24
|
description: string;
|
|
21
25
|
};
|
|
@@ -37,7 +41,7 @@ declare module "../types.js" {
|
|
|
37
41
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
38
42
|
}
|
|
39
43
|
interface PrettierPluginEmbedOptions {
|
|
40
|
-
[
|
|
44
|
+
[embeddedLanguageIdentifiers]?: Identifiers;
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
declare module "prettier" {
|