Fix links to Prettier/Babel/Jest website (#17079)
This commit is contained in:
1 parent
7044fbe827
commit
64e7dab1fd
67 files changed
+186
-186
No files matched your search
Vendored
+2
-2
@@ -578,7 +578,7 @@ export interface CursorResult {
|
||||
}
|
||||
|
||||
/**
|
||||
* `format` is used to format text using Prettier. [Options](https://prettier.io/docs/en/options.html) may be provided to override the defaults.
|
||||
* `format` is used to format text using Prettier. [Options](https://prettier.io/docs/options) may be provided to override the defaults.
|
||||
*/
|
||||
export function format(source: string, options?: Options): Promise<string>;
|
||||
|
||||
@@ -627,7 +627,7 @@ export interface ResolveConfigOptions {
|
||||
*
|
||||
* A promise is returned which will resolve to:
|
||||
*
|
||||
* - An options object, providing a [config file](https://prettier.io/docs/en/configuration.html) was found.
|
||||
* - An options object, providing a [config file](https://prettier.io/docs/configuration) was found.
|
||||
* - `null`, if no file was found.
|
||||
*
|
||||
* The promise will be rejected if there was an error parsing the configuration file.
|
||||
|
||||
@@ -27,7 +27,7 @@ async function printEmbeddedLanguages(
|
||||
|
||||
if (embed.length > 2) {
|
||||
throw new Error(
|
||||
"printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed",
|
||||
"printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -17,7 +17,7 @@ export function formatWithCursor(
|
||||
): Promise<CursorResult>;
|
||||
|
||||
/**
|
||||
* `format` is used to format text using Prettier. [Options](https://prettier.io/docs/en/options.html) may be provided to override the defaults.
|
||||
* `format` is used to format text using Prettier. [Options](https://prettier.io/docs/options) may be provided to override the defaults.
|
||||
*/
|
||||
export function format(source: string, options?: Options): Promise<string>;
|
||||
|
||||
|
||||
Reference in new issue
Block a user