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.
- package/README.md +124 -3
- package/dist/embedded/css/language.d.ts +1 -1
- package/dist/embedded/css/options.d.ts +2 -8
- package/dist/embedded/es/language.d.ts +1 -1
- package/dist/embedded/es/options.d.ts +3 -9
- package/dist/embedded/glsl/language.d.ts +1 -1
- package/dist/embedded/glsl/options.d.ts +2 -8
- package/dist/embedded/graphql/language.d.ts +1 -1
- package/dist/embedded/graphql/options.d.ts +2 -8
- package/dist/embedded/html/language.d.ts +1 -1
- package/dist/embedded/html/options.d.ts +2 -8
- package/dist/embedded/index.d.ts +1 -1
- package/dist/embedded/ini/language.d.ts +1 -1
- package/dist/embedded/ini/options.d.ts +2 -9
- package/dist/embedded/ini/plugin-ini-types.d.ts +3 -0
- package/dist/embedded/ini/plugin-ini.d.ts +6 -0
- package/dist/embedded/java/embedder.d.ts +12 -0
- package/dist/embedded/java/index.d.ts +3 -0
- package/dist/embedded/java/language.d.ts +9 -0
- package/dist/embedded/java/options.d.ts +27 -0
- package/dist/embedded/java/plugin-java-types.d.ts +7 -0
- package/dist/embedded/java/plugin-java.d.ts +6 -0
- package/dist/embedded/json/language.d.ts +1 -1
- package/dist/embedded/json/options.d.ts +2 -8
- package/dist/embedded/jsonata/embedder.d.ts +12 -0
- package/dist/embedded/jsonata/index.d.ts +3 -0
- package/dist/embedded/jsonata/language.d.ts +9 -0
- package/dist/embedded/jsonata/options.d.ts +27 -0
- package/dist/embedded/latex/language.d.ts +1 -1
- package/dist/embedded/latex/options.d.ts +2 -8
- package/dist/embedded/markdown/embedder.d.ts +1 -1
- package/dist/embedded/markdown/language.d.ts +1 -1
- package/dist/embedded/markdown/options.d.ts +2 -9
- package/dist/embedded/markdown/plugin-markdown-types.d.ts +3 -0
- package/dist/embedded/markdown/plugin-markdown.d.ts +6 -0
- package/dist/embedded/nginx/embedder.d.ts +12 -0
- package/dist/embedded/nginx/index.d.ts +3 -0
- package/dist/embedded/nginx/language.d.ts +9 -0
- package/dist/embedded/nginx/options.d.ts +27 -0
- package/dist/embedded/nginx/plugin-nginx-types.d.ts +4 -0
- package/dist/embedded/nginx/plugin-nginx.d.ts +6 -0
- package/dist/embedded/noop/language.d.ts +1 -1
- package/dist/embedded/noop/options.d.ts +2 -2
- package/dist/embedded/pegjs/embedder.d.ts +12 -0
- package/dist/embedded/pegjs/index.d.ts +3 -0
- package/dist/embedded/pegjs/language.d.ts +9 -0
- package/dist/embedded/pegjs/options.d.ts +27 -0
- package/dist/embedded/pegjs/plugin-pegjs-types.d.ts +5 -0
- package/dist/embedded/pegjs/plugin-pegjs.d.ts +6 -0
- package/dist/embedded/php/language.d.ts +1 -1
- package/dist/embedded/php/options.d.ts +2 -11
- package/dist/embedded/php/plugin-php-types.d.ts +5 -0
- package/dist/embedded/php/plugin-php.d.ts +6 -0
- package/dist/embedded/prisma/embedder.d.ts +12 -0
- package/dist/embedded/prisma/index.d.ts +3 -0
- package/dist/embedded/prisma/language.d.ts +9 -0
- package/dist/embedded/prisma/options.d.ts +27 -0
- package/dist/embedded/properties/language.d.ts +1 -1
- package/dist/embedded/properties/options.d.ts +2 -10
- package/dist/embedded/properties/plugin-properties-types.d.ts +4 -0
- package/dist/embedded/properties/plugin-properties.d.ts +6 -0
- package/dist/embedded/pug/embedder.d.ts +12 -0
- package/dist/embedded/pug/index.d.ts +3 -0
- package/dist/embedded/pug/language.d.ts +9 -0
- package/dist/embedded/pug/options.d.ts +27 -0
- package/dist/embedded/pug/plugin-pug-types.d.ts +29 -0
- package/dist/embedded/pug/plugin-pug.d.ts +6 -0
- package/dist/embedded/register.d.ts +22 -16
- package/dist/embedded/ruby/language.d.ts +1 -1
- package/dist/embedded/ruby/options.d.ts +3 -16
- package/dist/embedded/ruby/plugin-ruby-types.d.ts +6 -0
- package/dist/embedded/ruby/plugin-ruby.d.ts +6 -0
- package/dist/embedded/sh/language.d.ts +1 -1
- package/dist/embedded/sh/options.d.ts +3 -10
- package/dist/embedded/sh/plugin-sh-types.d.ts +4 -0
- package/dist/embedded/sh/plugin-sh.d.ts +6 -0
- package/dist/embedded/sql/language.d.ts +1 -1
- package/dist/embedded/sql/options.d.ts +4 -13
- package/dist/embedded/sql/plugin-sql-cst-types.d.ts +4 -0
- package/dist/embedded/sql/plugin-sql-cst.d.ts +6 -0
- package/dist/embedded/sql/plugin-sql-types.d.ts +4 -0
- package/dist/embedded/sql/plugin-sql.d.ts +6 -0
- package/dist/embedded/toml/language.d.ts +1 -1
- package/dist/embedded/toml/options.d.ts +3 -10
- package/dist/embedded/toml/plugin-toml-types.d.ts +4 -0
- package/dist/embedded/toml/plugin-toml.d.ts +6 -0
- package/dist/embedded/ts/language.d.ts +1 -1
- package/dist/embedded/ts/options.d.ts +3 -9
- package/dist/embedded/types.d.ts +1 -1
- package/dist/embedded/utils.d.ts +7 -4
- package/dist/embedded/xml/language.d.ts +1 -1
- package/dist/embedded/xml/options.d.ts +2 -12
- package/dist/embedded/xml/parser.d.ts +1 -0
- package/dist/embedded/xml/plugin-xml-types.d.ts +6 -0
- package/dist/embedded/xml/plugin-xml.d.ts +6 -0
- package/dist/embedded/yaml/language.d.ts +1 -1
- package/dist/embedded/yaml/options.d.ts +2 -8
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1270 -1043
- package/dist/options.d.ts +78 -28
- package/dist/plugin-embed.d.ts +6 -0
- package/dist/types.d.ts +5 -24
- package/dist/utils.d.ts +1 -4
- 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 {};
|
|
@@ -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
|
|
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 {};
|
|
@@ -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
|
|
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,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,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 {};
|
|
@@ -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
|
|
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,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 {};
|
|
@@ -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
|
|
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,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,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 {};
|
|
@@ -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
|
|
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,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,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
|
+
}
|
|
@@ -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 "./
|
|
9
|
-
import * as __glob__0_3 from "./
|
|
10
|
-
import * as __glob__0_4 from "./
|
|
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 "./
|
|
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 "./
|
|
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";
|