prettier-plugin-embed 0.4.8 → 0.4.10
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 +297 -109
- package/dist/embedded/css/options.d.ts +2 -8
- package/dist/embedded/es/options.d.ts +2 -8
- package/dist/embedded/glsl/options.d.ts +2 -8
- package/dist/embedded/graphql/options.d.ts +2 -8
- package/dist/embedded/html/options.d.ts +2 -8
- package/dist/embedded/index.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/options.d.ts +2 -13
- 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/options.d.ts +2 -8
- package/dist/embedded/jsonata/options.d.ts +2 -8
- package/dist/embedded/latex/options.d.ts +2 -8
- package/dist/embedded/markdown/embedder.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/options.d.ts +3 -10
- 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/options.d.ts +2 -2
- package/dist/embedded/pegjs/options.d.ts +2 -11
- 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/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/options.d.ts +2 -8
- 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/options.d.ts +2 -35
- 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 +7 -7
- 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/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/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/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/options.d.ts +2 -8
- package/dist/embedded/types.d.ts +1 -1
- package/dist/embedded/utils.d.ts +5 -2
- 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/options.d.ts +2 -8
- package/dist/index.d.ts +7 -2
- package/dist/index.js +707 -677
- package/dist/options.d.ts +14 -18
- 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 +37 -9
|
@@ -6,14 +6,12 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
|
|
|
6
6
|
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L887
|
|
7
7
|
*/
|
|
8
8
|
declare const DEFAULT_IDENTIFIERS: readonly ["css"];
|
|
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 CSS_PARSERS: readonly ["css", "less", "scss"];
|
|
12
12
|
type CssParser = (typeof CSS_PARSERS)[number];
|
|
13
13
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedCssIdentifiers";
|
|
14
14
|
declare const EMBEDDED_LANGUAGE_PARSER: "embeddedCssParser";
|
|
15
|
-
export interface PrettierPluginDepsOptions {
|
|
16
|
-
}
|
|
17
15
|
export declare const options: {
|
|
18
16
|
readonly embeddedCssIdentifiers: {
|
|
19
17
|
readonly category: "Embed";
|
|
@@ -41,13 +39,9 @@ declare module "../types.js" {
|
|
|
41
39
|
}
|
|
42
40
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
43
41
|
}
|
|
44
|
-
interface
|
|
42
|
+
interface PluginEmbedOptions {
|
|
45
43
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
46
44
|
[EMBEDDED_LANGUAGE_PARSER]?: CssParser;
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
|
-
declare module "prettier" {
|
|
50
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
47
|
export {};
|
|
@@ -6,14 +6,12 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
|
|
|
6
6
|
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L3314
|
|
7
7
|
*/
|
|
8
8
|
declare const DEFAULT_IDENTIFIERS: readonly ["js", "jsx", "es", "es6", "mjs", "cjs", "pac", "javascript"];
|
|
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 ES_PARSERS: readonly ["babel", "babel-flow", "acorn", "espree", "flow", "meriyah"];
|
|
12
12
|
export type EsParser = (typeof ES_PARSERS)[number];
|
|
13
13
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedEsIdentifiers";
|
|
14
14
|
declare const EMBEDDED_LANGUAGE_PARSER: "embeddedEsParser";
|
|
15
|
-
export interface PrettierPluginDepsOptions {
|
|
16
|
-
}
|
|
17
15
|
export declare const options: {
|
|
18
16
|
readonly embeddedEsIdentifiers: {
|
|
19
17
|
readonly category: "Embed";
|
|
@@ -41,13 +39,9 @@ declare module "../types.js" {
|
|
|
41
39
|
}
|
|
42
40
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
43
41
|
}
|
|
44
|
-
interface
|
|
42
|
+
interface PluginEmbedOptions {
|
|
45
43
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
46
44
|
[EMBEDDED_LANGUAGE_PARSER]?: EsParser;
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
|
-
declare module "prettier" {
|
|
50
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
47
|
export {};
|
|
@@ -6,11 +6,9 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
|
|
|
6
6
|
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L2180
|
|
7
7
|
*/
|
|
8
8
|
declare const DEFAULT_IDENTIFIERS: readonly ["glsl", "shader"];
|
|
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: "embeddedGlslIdentifiers";
|
|
12
|
-
export interface PrettierPluginDepsOptions {
|
|
13
|
-
}
|
|
14
12
|
export declare const options: {
|
|
15
13
|
readonly embeddedGlslIdentifiers: {
|
|
16
14
|
readonly category: "Embed";
|
|
@@ -28,12 +26,8 @@ declare module "../types.js" {
|
|
|
28
26
|
}
|
|
29
27
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
30
28
|
}
|
|
31
|
-
interface
|
|
29
|
+
interface PluginEmbedOptions {
|
|
32
30
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
|
-
declare module "prettier" {
|
|
36
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
33
|
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#L2578
|
|
6
6
|
*/
|
|
7
7
|
declare const DEFAULT_IDENTIFIERS: readonly ["graphql", "gql"];
|
|
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: "embeddedGraphqlIdentifiers";
|
|
11
|
-
export interface PrettierPluginDepsOptions {
|
|
12
|
-
}
|
|
13
11
|
export declare const options: {
|
|
14
12
|
readonly embeddedGraphqlIdentifiers: {
|
|
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,14 +6,12 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
|
|
|
6
6
|
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L2684
|
|
7
7
|
*/
|
|
8
8
|
declare const DEFAULT_IDENTIFIERS: readonly ["html", "xhtml"];
|
|
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 HTML_PARSERS: readonly ["html", "vue", "angular", "lwc"];
|
|
12
12
|
type HtmlParser = (typeof HTML_PARSERS)[number];
|
|
13
13
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedHtmlIdentifiers";
|
|
14
14
|
declare const EMBEDDED_LANGUAGE_PARSER: "embeddedHtmlParser";
|
|
15
|
-
export interface PrettierPluginDepsOptions {
|
|
16
|
-
}
|
|
17
15
|
export declare const options: {
|
|
18
16
|
readonly embeddedHtmlIdentifiers: {
|
|
19
17
|
readonly category: "Embed";
|
|
@@ -41,13 +39,9 @@ declare module "../types.js" {
|
|
|
41
39
|
}
|
|
42
40
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
43
41
|
}
|
|
44
|
-
interface
|
|
42
|
+
interface PluginEmbedOptions {
|
|
45
43
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
46
44
|
[EMBEDDED_LANGUAGE_PARSER]?: HtmlParser;
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
|
-
declare module "prettier" {
|
|
50
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
47
|
export {};
|
package/dist/embedded/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from "./register.js";
|
|
2
|
-
export type { EmbeddedDefaultIdentifier, EmbeddedEmbedders, EmbeddedLanguage, EmbeddedOptions, EmbeddedParsers,
|
|
2
|
+
export type { EmbeddedDefaultIdentifier, EmbeddedEmbedders, EmbeddedLanguage, EmbeddedOptions, EmbeddedParsers, PluginEmbedOptions, } from "./types.js";
|
|
3
3
|
export { makeIdentifiersOptionName, type AutocompleteStringList, } from "./utils.js";
|
|
@@ -5,12 +5,9 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
|
|
|
5
5
|
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L2928
|
|
6
6
|
*/
|
|
7
7
|
declare const DEFAULT_IDENTIFIERS: readonly ["ini", "cfg", "pro"];
|
|
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: "embeddedIniIdentifiers";
|
|
11
|
-
export interface PrettierPluginDepsOptions {
|
|
12
|
-
iniSpaceAroundEquals?: boolean;
|
|
13
|
-
}
|
|
14
11
|
export declare const options: {
|
|
15
12
|
readonly embeddedIniIdentifiers: {
|
|
16
13
|
readonly category: "Embed";
|
|
@@ -28,12 +25,8 @@ declare module "../types.js" {
|
|
|
28
25
|
}
|
|
29
26
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
30
27
|
}
|
|
31
|
-
interface
|
|
28
|
+
interface PluginEmbedOptions {
|
|
32
29
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
33
30
|
}
|
|
34
31
|
}
|
|
35
|
-
declare module "prettier" {
|
|
36
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
32
|
export {};
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
2
|
declare const DEFAULT_IDENTIFIERS: readonly ["java"];
|
|
3
|
-
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
3
|
+
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
4
4
|
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
5
5
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedJavaIdentifiers";
|
|
6
|
-
/**
|
|
7
|
-
* Location:
|
|
8
|
-
* https://github.com/jhipster/prettier-java/blob/983a09d890ae832565ceda1a28b3074e061e3cea/packages/prettier-plugin-java/src/options.js
|
|
9
|
-
*/
|
|
10
|
-
export interface PrettierPluginDepsOptions {
|
|
11
|
-
entrypoint?: "arrayInitializer" | "variableInitializerList" | "block" | "blockStatements" | "blockStatement" | "localVariableDeclarationStatement" | "localVariableDeclaration" | "localVariableType" | "statement" | "statementWithoutTrailingSubstatement" | "emptyStatement" | "labeledStatement" | "expressionStatement" | "statementExpression" | "ifStatement" | "assertStatement" | "switchStatement" | "switchBlock" | "switchBlockStatementGroup" | "switchLabel" | "switchRule" | "caseConstant" | "whileStatement" | "doStatement" | "forStatement" | "basicForStatement" | "forInit" | "forUpdate" | "statementExpressionList" | "enhancedForStatement" | "breakStatement" | "continueStatement" | "returnStatement" | "throwStatement" | "synchronizedStatement" | "tryStatement" | "catches" | "catchClause" | "catchFormalParameter" | "catchType" | "finally" | "tryWithResourcesStatement" | "resourceSpecification" | "resourceList" | "resource" | "yieldStatement" | "variableAccess" | "classDeclaration" | "normalClassDeclaration" | "classModifier" | "typeParameters" | "typeParameterList" | "superclass" | "superinterfaces" | "interfaceTypeList" | "classPermits" | "classBody" | "classBodyDeclaration" | "classMemberDeclaration" | "fieldDeclaration" | "fieldModifier" | "variableDeclaratorList" | "variableDeclarator" | "variableDeclaratorId" | "variableInitializer" | "unannType" | "unannPrimitiveTypeWithOptionalDimsSuffix" | "unannPrimitiveType" | "unannReferenceType" | "unannClassOrInterfaceType" | "unannClassType" | "unannInterfaceType" | "unannTypeVariable" | "methodDeclaration" | "methodModifier" | "methodHeader" | "result" | "methodDeclarator" | "receiverParameter" | "formalParameterList" | "formalParameter" | "variableParaRegularParameter" | "variableArityParameter" | "variableModifier" | "throws" | "exceptionTypeList" | "exceptionType" | "methodBody" | "instanceInitializer" | "staticInitializer" | "constructorDeclaration" | "constructorModifier" | "constructorDeclarator" | "simpleTypeName" | "constructorBody" | "explicitConstructorInvocation" | "unqualifiedExplicitConstructorInvocation" | "qualifiedExplicitConstructorInvocation" | "enumDeclaration" | "enumBody" | "enumConstantList" | "enumConstant" | "enumConstantModifier" | "enumBodyDeclarations" | "recordDeclaration" | "recordHeader" | "recordComponentList" | "recordComponent" | "variableArityRecordComponent" | "recordComponentModifier" | "recordBody" | "recordBodyDeclaration" | "compactConstructorDeclaration" | "isDims" | "expression" | "lambdaExpression" | "lambdaParameters" | "lambdaParametersWithBraces" | "lambdaParameterList" | "inferredLambdaParameterList" | "explicitLambdaParameterList" | "lambdaParameter" | "regularLambdaParameter" | "lambdaParameterType" | "lambdaBody" | "ternaryExpression" | "binaryExpression" | "unaryExpression" | "unaryExpressionNotPlusMinus" | "primary" | "primaryPrefix" | "primarySuffix" | "fqnOrRefType" | "fqnOrRefTypePartRest" | "fqnOrRefTypePartCommon" | "fqnOrRefTypePartFirst" | "parenthesisExpression" | "castExpression" | "primitiveCastExpression" | "referenceTypeCastExpression" | "newExpression" | "unqualifiedClassInstanceCreationExpression" | "classOrInterfaceTypeToInstantiate" | "typeArgumentsOrDiamond" | "diamond" | "methodInvocationSuffix" | "argumentList" | "arrayCreationExpression" | "arrayCreationDefaultInitSuffix" | "arrayCreationExplicitInitSuffix" | "dimExprs" | "dimExpr" | "classLiteralSuffix" | "arrayAccessSuffix" | "methodReferenceSuffix" | "pattern" | "typePattern" | "recordPattern" | "componentPatternList" | "componentPattern" | "unnamedPattern" | "guard" | "isRefTypeInMethodRef" | "interfaceDeclaration" | "normalInterfaceDeclaration" | "interfaceModifier" | "extendsInterfaces" | "interfacePermits" | "interfaceBody" | "interfaceMemberDeclaration" | "constantDeclaration" | "constantModifier" | "interfaceMethodDeclaration" | "interfaceMethodModifier" | "annotationTypeDeclaration" | "annotationTypeBody" | "annotationTypeMemberDeclaration" | "annotationTypeElementDeclaration" | "annotationTypeElementModifier" | "defaultValue" | "annotation" | "elementValuePairList" | "elementValuePair" | "elementValue" | "elementValueArrayInitializer" | "elementValueList" | "literal" | "integerLiteral" | "floatingPointLiteral" | "booleanLiteral" | "moduleName" | "packageName" | "typeName" | "expressionName" | "methodName" | "packageOrTypeName" | "ambiguousName" | "compilationUnit" | "ordinaryCompilationUnit" | "modularCompilationUnit" | "packageDeclaration" | "packageModifier" | "importDeclaration" | "typeDeclaration" | "moduleDeclaration" | "moduleDirective" | "requiresModuleDirective" | "exportsModuleDirective" | "opensModuleDirective" | "usesModuleDirective" | "providesModuleDirective" | "requiresModifier" | "primitiveType" | "numericType" | "integralType" | "floatingPointType" | "referenceType" | "classOrInterfaceType" | "classType" | "interfaceType" | "typeVariable" | "dims" | "typeParameter" | "typeParameterModifier" | "typeBound" | "additionalBound" | "typeArguments" | "typeArgumentList" | "typeArgument" | "wildcard" | "wildcardBounds";
|
|
12
|
-
}
|
|
13
6
|
export declare const options: {
|
|
14
7
|
readonly embeddedJavaIdentifiers: {
|
|
15
8
|
readonly category: "Embed";
|
|
@@ -27,12 +20,8 @@ declare module "../types.js" {
|
|
|
27
20
|
}
|
|
28
21
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
29
22
|
}
|
|
30
|
-
interface
|
|
23
|
+
interface PluginEmbedOptions {
|
|
31
24
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
32
25
|
}
|
|
33
26
|
}
|
|
34
|
-
declare module "prettier" {
|
|
35
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
27
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Location:
|
|
3
|
+
* https://github.com/jhipster/prettier-java/blob/983a09d890ae832565ceda1a28b3074e061e3cea/packages/prettier-plugin-java/src/options.js
|
|
4
|
+
*/
|
|
5
|
+
export interface PluginJavaOptions {
|
|
6
|
+
entrypoint?: "arrayInitializer" | "variableInitializerList" | "block" | "blockStatements" | "blockStatement" | "localVariableDeclarationStatement" | "localVariableDeclaration" | "localVariableType" | "statement" | "statementWithoutTrailingSubstatement" | "emptyStatement" | "labeledStatement" | "expressionStatement" | "statementExpression" | "ifStatement" | "assertStatement" | "switchStatement" | "switchBlock" | "switchBlockStatementGroup" | "switchLabel" | "switchRule" | "caseConstant" | "whileStatement" | "doStatement" | "forStatement" | "basicForStatement" | "forInit" | "forUpdate" | "statementExpressionList" | "enhancedForStatement" | "breakStatement" | "continueStatement" | "returnStatement" | "throwStatement" | "synchronizedStatement" | "tryStatement" | "catches" | "catchClause" | "catchFormalParameter" | "catchType" | "finally" | "tryWithResourcesStatement" | "resourceSpecification" | "resourceList" | "resource" | "yieldStatement" | "variableAccess" | "classDeclaration" | "normalClassDeclaration" | "classModifier" | "typeParameters" | "typeParameterList" | "superclass" | "superinterfaces" | "interfaceTypeList" | "classPermits" | "classBody" | "classBodyDeclaration" | "classMemberDeclaration" | "fieldDeclaration" | "fieldModifier" | "variableDeclaratorList" | "variableDeclarator" | "variableDeclaratorId" | "variableInitializer" | "unannType" | "unannPrimitiveTypeWithOptionalDimsSuffix" | "unannPrimitiveType" | "unannReferenceType" | "unannClassOrInterfaceType" | "unannClassType" | "unannInterfaceType" | "unannTypeVariable" | "methodDeclaration" | "methodModifier" | "methodHeader" | "result" | "methodDeclarator" | "receiverParameter" | "formalParameterList" | "formalParameter" | "variableParaRegularParameter" | "variableArityParameter" | "variableModifier" | "throws" | "exceptionTypeList" | "exceptionType" | "methodBody" | "instanceInitializer" | "staticInitializer" | "constructorDeclaration" | "constructorModifier" | "constructorDeclarator" | "simpleTypeName" | "constructorBody" | "explicitConstructorInvocation" | "unqualifiedExplicitConstructorInvocation" | "qualifiedExplicitConstructorInvocation" | "enumDeclaration" | "enumBody" | "enumConstantList" | "enumConstant" | "enumConstantModifier" | "enumBodyDeclarations" | "recordDeclaration" | "recordHeader" | "recordComponentList" | "recordComponent" | "variableArityRecordComponent" | "recordComponentModifier" | "recordBody" | "recordBodyDeclaration" | "compactConstructorDeclaration" | "isDims" | "expression" | "lambdaExpression" | "lambdaParameters" | "lambdaParametersWithBraces" | "lambdaParameterList" | "inferredLambdaParameterList" | "explicitLambdaParameterList" | "lambdaParameter" | "regularLambdaParameter" | "lambdaParameterType" | "lambdaBody" | "ternaryExpression" | "binaryExpression" | "unaryExpression" | "unaryExpressionNotPlusMinus" | "primary" | "primaryPrefix" | "primarySuffix" | "fqnOrRefType" | "fqnOrRefTypePartRest" | "fqnOrRefTypePartCommon" | "fqnOrRefTypePartFirst" | "parenthesisExpression" | "castExpression" | "primitiveCastExpression" | "referenceTypeCastExpression" | "newExpression" | "unqualifiedClassInstanceCreationExpression" | "classOrInterfaceTypeToInstantiate" | "typeArgumentsOrDiamond" | "diamond" | "methodInvocationSuffix" | "argumentList" | "arrayCreationExpression" | "arrayCreationDefaultInitSuffix" | "arrayCreationExplicitInitSuffix" | "dimExprs" | "dimExpr" | "classLiteralSuffix" | "arrayAccessSuffix" | "methodReferenceSuffix" | "pattern" | "typePattern" | "recordPattern" | "componentPatternList" | "componentPattern" | "unnamedPattern" | "guard" | "isRefTypeInMethodRef" | "interfaceDeclaration" | "normalInterfaceDeclaration" | "interfaceModifier" | "extendsInterfaces" | "interfacePermits" | "interfaceBody" | "interfaceMemberDeclaration" | "constantDeclaration" | "constantModifier" | "interfaceMethodDeclaration" | "interfaceMethodModifier" | "annotationTypeDeclaration" | "annotationTypeBody" | "annotationTypeMemberDeclaration" | "annotationTypeElementDeclaration" | "annotationTypeElementModifier" | "defaultValue" | "annotation" | "elementValuePairList" | "elementValuePair" | "elementValue" | "elementValueArrayInitializer" | "elementValueList" | "literal" | "integerLiteral" | "floatingPointLiteral" | "booleanLiteral" | "moduleName" | "packageName" | "typeName" | "expressionName" | "methodName" | "packageOrTypeName" | "ambiguousName" | "compilationUnit" | "ordinaryCompilationUnit" | "modularCompilationUnit" | "packageDeclaration" | "packageModifier" | "importDeclaration" | "typeDeclaration" | "moduleDeclaration" | "moduleDirective" | "requiresModuleDirective" | "exportsModuleDirective" | "opensModuleDirective" | "usesModuleDirective" | "providesModuleDirective" | "requiresModifier" | "primitiveType" | "numericType" | "integralType" | "floatingPointType" | "referenceType" | "classOrInterfaceType" | "classType" | "interfaceType" | "typeVariable" | "dims" | "typeParameter" | "typeParameterModifier" | "typeBound" | "additionalBound" | "typeArguments" | "typeArgumentList" | "typeArgument" | "wildcard" | "wildcardBounds";
|
|
7
|
+
}
|
|
@@ -5,14 +5,12 @@ import { type AutocompleteStringList, type StringListToInterfaceKey } from "../u
|
|
|
5
5
|
* - https://github.com/github-linguist/linguist/blob/7ca3799b8b5f1acde1dd7a8dfb7ae849d3dfb4cd/lib/linguist/languages.yml#L3141
|
|
6
6
|
*/
|
|
7
7
|
declare const DEFAULT_IDENTIFIERS: readonly ["json", "jsonl"];
|
|
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 JSON_PARSERS: readonly ["json", "json5", "jsonc", "json-stringify"];
|
|
11
11
|
type JsonParser = (typeof JSON_PARSERS)[number];
|
|
12
12
|
declare const EMBEDDED_LANGUAGE_PARSER: "embeddedJsonParser";
|
|
13
13
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedJsonIdentifiers";
|
|
14
|
-
export interface PrettierPluginDepsOptions {
|
|
15
|
-
}
|
|
16
14
|
export declare const options: {
|
|
17
15
|
readonly embeddedJsonIdentifiers: {
|
|
18
16
|
readonly category: "Embed";
|
|
@@ -40,13 +38,9 @@ declare module "../types.js" {
|
|
|
40
38
|
}
|
|
41
39
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
42
40
|
}
|
|
43
|
-
interface
|
|
41
|
+
interface PluginEmbedOptions {
|
|
44
42
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
45
43
|
[EMBEDDED_LANGUAGE_PARSER]?: JsonParser;
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
|
-
declare module "prettier" {
|
|
49
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
46
|
export {};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
2
|
declare const DEFAULT_IDENTIFIERS: readonly ["jsonata"];
|
|
3
|
-
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
3
|
+
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
4
4
|
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
5
5
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedJsonataIdentifiers";
|
|
6
|
-
export interface PrettierPluginDepsOptions {
|
|
7
|
-
}
|
|
8
6
|
export declare const options: {
|
|
9
7
|
readonly embeddedJsonataIdentifiers: {
|
|
10
8
|
readonly category: "Embed";
|
|
@@ -22,12 +20,8 @@ declare module "../types.js" {
|
|
|
22
20
|
}
|
|
23
21
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
24
22
|
}
|
|
25
|
-
interface
|
|
23
|
+
interface PluginEmbedOptions {
|
|
26
24
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
|
-
declare module "prettier" {
|
|
30
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
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 {};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type AutocompleteStringList, type StringListToInterfaceKey, type UnionToIntersection } from "../utils.js";
|
|
1
|
+
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
3
2
|
declare const DEFAULT_IDENTIFIERS: readonly ["nginx"];
|
|
4
|
-
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
3
|
+
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
5
4
|
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
6
5
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedNginxIdentifiers";
|
|
7
|
-
export interface PrettierPluginDepsOptions extends Partial<UnionToIntersection<NginxOptions>> {
|
|
8
|
-
}
|
|
9
6
|
export declare const options: {
|
|
10
7
|
readonly embeddedNginxIdentifiers: {
|
|
11
8
|
readonly category: "Embed";
|
|
@@ -23,12 +20,8 @@ declare module "../types.js" {
|
|
|
23
20
|
}
|
|
24
21
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
25
22
|
}
|
|
26
|
-
interface
|
|
23
|
+
interface PluginEmbedOptions {
|
|
27
24
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
|
-
declare module "prettier" {
|
|
31
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
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
|
}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import type { EsParser } from "../es/options.js";
|
|
2
|
-
import type { TsParser } from "../ts/options.js";
|
|
3
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
4
2
|
declare const DEFAULT_IDENTIFIERS: readonly ["pegjs", "peggy", "peg"];
|
|
5
|
-
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
3
|
+
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
6
4
|
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
7
5
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPegjsIdentifiers";
|
|
8
|
-
export interface PrettierPluginDepsOptions {
|
|
9
|
-
actionParser?: EsParser | TsParser;
|
|
10
|
-
}
|
|
11
6
|
export declare const options: {
|
|
12
7
|
readonly embeddedPegjsIdentifiers: {
|
|
13
8
|
readonly category: "Embed";
|
|
@@ -25,12 +20,8 @@ declare module "../types.js" {
|
|
|
25
20
|
}
|
|
26
21
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
27
22
|
}
|
|
28
|
-
interface
|
|
23
|
+
interface PluginEmbedOptions {
|
|
29
24
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
30
25
|
}
|
|
31
26
|
}
|
|
32
|
-
declare module "prettier" {
|
|
33
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
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 {};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { type AutocompleteStringList, type StringListToInterfaceKey } from "../utils.js";
|
|
2
2
|
declare const DEFAULT_IDENTIFIERS: readonly ["prisma"];
|
|
3
|
-
type Identifiers = AutocompleteStringList<typeof DEFAULT_IDENTIFIERS>;
|
|
3
|
+
type Identifiers = AutocompleteStringList<(typeof DEFAULT_IDENTIFIERS)[number]>;
|
|
4
4
|
type DefaultIdentifiersHolder = StringListToInterfaceKey<typeof DEFAULT_IDENTIFIERS>;
|
|
5
5
|
declare const EMBEDDED_LANGUAGE_IDENTIFIERS: "embeddedPrismaIdentifiers";
|
|
6
|
-
export interface PrettierPluginDepsOptions {
|
|
7
|
-
}
|
|
8
6
|
export declare const options: {
|
|
9
7
|
readonly embeddedPrismaIdentifiers: {
|
|
10
8
|
readonly category: "Embed";
|
|
@@ -22,12 +20,8 @@ declare module "../types.js" {
|
|
|
22
20
|
}
|
|
23
21
|
interface EmbeddedDefaultIdentifiersHolder extends DefaultIdentifiersHolder {
|
|
24
22
|
}
|
|
25
|
-
interface
|
|
23
|
+
interface PluginEmbedOptions {
|
|
26
24
|
[EMBEDDED_LANGUAGE_IDENTIFIERS]?: Identifiers;
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
|
-
declare module "prettier" {
|
|
30
|
-
interface Options extends PrettierPluginDepsOptions {
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
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 {};
|