prettier 3.0.0-alpha.9-for-vscode → 3.0.0
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/LICENSE +38 -65
- package/bin/prettier.cjs +0 -0
- package/doc.js +35 -86
- package/doc.mjs +48 -94
- package/index.cjs +440 -20576
- package/index.d.ts +1 -7
- package/index.mjs +2171 -1113
- package/internal/cli.mjs +45 -42
- package/internal/internal.mjs +171 -77
- package/package.json +4 -7
- package/plugins/acorn.js +12 -12
- package/plugins/acorn.mjs +12 -12
- package/plugins/angular.d.ts +1 -1
- package/plugins/angular.js +2 -2
- package/plugins/angular.mjs +2 -2
- package/plugins/babel.js +12 -12
- package/plugins/babel.mjs +12 -12
- package/plugins/estree.js +30 -30
- package/plugins/estree.mjs +30 -30
- package/plugins/flow.js +17 -17
- package/plugins/flow.mjs +17 -17
- package/plugins/glimmer.js +22 -22
- package/plugins/glimmer.mjs +22 -22
- package/plugins/graphql.js +26 -15
- package/plugins/graphql.mjs +26 -15
- package/plugins/html.d.ts +2 -2
- package/plugins/html.js +16 -16
- package/plugins/html.mjs +16 -16
- package/plugins/markdown.d.ts +1 -1
- package/plugins/markdown.js +49 -49
- package/plugins/markdown.mjs +49 -49
- package/plugins/meriyah.js +5 -5
- package/plugins/meriyah.mjs +5 -5
- package/plugins/postcss.js +44 -44
- package/plugins/postcss.mjs +44 -44
- package/plugins/typescript.js +21 -21
- package/plugins/typescript.mjs +21 -21
- package/plugins/yaml.js +104 -104
- package/plugins/yaml.mjs +104 -104
- package/standalone.js +26 -28
- package/standalone.mjs +27 -29
- package/internal/internal.cjs +0 -6430
package/index.d.ts
CHANGED
|
@@ -405,10 +405,6 @@ export interface RequiredOptions extends doc.printer.Options {
|
|
|
405
405
|
* Provide ability to support new languages to prettier.
|
|
406
406
|
*/
|
|
407
407
|
plugins: Array<string | Plugin>;
|
|
408
|
-
/**
|
|
409
|
-
* Specify plugin directory paths to search for plugins if not installed in the same `node_modules` where prettier is located.
|
|
410
|
-
*/
|
|
411
|
-
pluginSearchDirs: string[] | false;
|
|
412
408
|
/**
|
|
413
409
|
* How to handle whitespaces in HTML.
|
|
414
410
|
* @default "css"
|
|
@@ -449,9 +445,7 @@ export interface ParserOptions<T = any> extends RequiredOptions {
|
|
|
449
445
|
|
|
450
446
|
export interface Plugin<T = any> {
|
|
451
447
|
languages?: SupportLanguage[] | undefined;
|
|
452
|
-
parsers?:
|
|
453
|
-
| { [parserName: string]: Parser<T> | (() => Promise<Parser<T>>) }
|
|
454
|
-
| undefined;
|
|
448
|
+
parsers?: { [parserName: string]: Parser<T> } | undefined;
|
|
455
449
|
printers?: { [astFormat: string]: Printer<T> } | undefined;
|
|
456
450
|
options?: SupportOptions | undefined;
|
|
457
451
|
defaultOptions?: Partial<RequiredOptions> | undefined;
|