Bump Prettier dependency to 3.7.0
This commit is contained in:
1 parent
c4905e5be9
commit
3a098e32d4
8 files changed
+27
-28
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "prettier",
|
||||
"version": "3.7.0",
|
||||
"version": "3.8.0-dev",
|
||||
"description": "Prettier is an opinionated code formatter",
|
||||
"bin": "./bin/prettier.cjs",
|
||||
"repository": "prettier/prettier",
|
||||
@@ -165,7 +165,7 @@
|
||||
"node-style-text": "2.1.2",
|
||||
"npm-run-all2": "8.0.4",
|
||||
"open-editor": "6.0.0",
|
||||
"prettier": "3.6.2",
|
||||
"prettier": "3.7.0",
|
||||
"pretty-bytes": "7.1.0",
|
||||
"pretty-ms": "9.3.0",
|
||||
"rollup-plugin-license": "3.6.0",
|
||||
|
||||
@@ -57,9 +57,8 @@ async function loadYaml(file) {
|
||||
const content = await readFile(file);
|
||||
|
||||
if (!parseYaml) {
|
||||
({ __parsePrettierYamlConfig: parseYaml } = await import(
|
||||
"../../plugins/yaml.js"
|
||||
));
|
||||
({ __parsePrettierYamlConfig: parseYaml } =
|
||||
await import("../../plugins/yaml.js"));
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Vendored
+4
-4
@@ -766,14 +766,14 @@ export interface BooleanSupportOption extends BaseSupportOption<"boolean"> {
|
||||
oppositeDescription?: string | undefined;
|
||||
}
|
||||
|
||||
export interface BooleanArraySupportOption
|
||||
extends BaseSupportOption<"boolean"> {
|
||||
export interface BooleanArraySupportOption extends BaseSupportOption<"boolean"> {
|
||||
default?: Array<{ value: boolean[] }> | undefined;
|
||||
array: true;
|
||||
}
|
||||
|
||||
export interface ChoiceSupportOption<Value = any>
|
||||
extends BaseSupportOption<"choice"> {
|
||||
export interface ChoiceSupportOption<
|
||||
Value = any,
|
||||
> extends BaseSupportOption<"choice"> {
|
||||
default?: Value | Array<{ value: Value }> | undefined;
|
||||
description: string;
|
||||
choices: Array<{
|
||||
|
||||
@@ -30,10 +30,10 @@ import { shouldPrintTrailingComma } from "./misc.js";
|
||||
function hasComma({ node, parent }, options) {
|
||||
return Boolean(
|
||||
node.source &&
|
||||
options.originalText
|
||||
.slice(locStart(node), locStart(parent.close))
|
||||
.trimEnd()
|
||||
.endsWith(","),
|
||||
options.originalText
|
||||
.slice(locStart(node), locStart(parent.close))
|
||||
.trimEnd()
|
||||
.endsWith(","),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
function isSCSSVariable(node, options) {
|
||||
return Boolean(
|
||||
options.parser === "scss" &&
|
||||
node?.type === "word" &&
|
||||
node.value.startsWith("$"),
|
||||
node?.type === "word" &&
|
||||
node.value.startsWith("$"),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,12 +73,12 @@ class Foo {
|
||||
const isClassMethodCantAttachComment = (node, [parent]) =>
|
||||
Boolean(
|
||||
node.type === "FunctionExpression" &&
|
||||
parent.type === "MethodDefinition" &&
|
||||
parent.value === node &&
|
||||
getFunctionParameters(node).length === 0 &&
|
||||
!node.returnType &&
|
||||
!isNonEmptyArray(node.typeParameters) &&
|
||||
node.body,
|
||||
parent.type === "MethodDefinition" &&
|
||||
parent.value === node &&
|
||||
getFunctionParameters(node).length === 0 &&
|
||||
!node.returnType &&
|
||||
!isNonEmptyArray(node.typeParameters) &&
|
||||
node.body,
|
||||
);
|
||||
|
||||
// `foo as const`
|
||||
|
||||
@@ -149,8 +149,8 @@ function isSignedNumericLiteral(node) {
|
||||
function isStringLiteral(node) {
|
||||
return Boolean(
|
||||
node &&
|
||||
(node.type === "StringLiteral" ||
|
||||
(node.type === "Literal" && typeof node.value === "string")),
|
||||
(node.type === "StringLiteral" ||
|
||||
(node.type === "Literal" && typeof node.value === "string")),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -7483,12 +7483,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"prettier@npm:3.6.2":
|
||||
version: 3.6.2
|
||||
resolution: "prettier@npm:3.6.2"
|
||||
"prettier@npm:3.7.0":
|
||||
version: 3.7.0
|
||||
resolution: "prettier@npm:3.7.0"
|
||||
bin:
|
||||
prettier: bin/prettier.cjs
|
||||
checksum: 10/1213691706bcef1371d16ef72773c8111106c3533b660b1cc8ec158bd109cdf1462804125f87f981f23c4a3dba053b6efafda30ab0114cc5b4a725606bb9ff26
|
||||
checksum: 10/ac581ded785c672187a0b25bfb4f621870496835377ebffaaa9cfa41f58ffe9b0c81ecc6382b425c2d83a18f4fbad235777b7c0bdfe8e972f1964e1e99638b4a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7599,7 +7599,7 @@ __metadata:
|
||||
postcss-scss: "npm:4.0.9"
|
||||
postcss-selector-parser: "npm:2.2.3"
|
||||
postcss-values-parser: "npm:2.0.1"
|
||||
prettier: "npm:3.6.2"
|
||||
prettier: "npm:3.7.0"
|
||||
pretty-bytes: "npm:7.1.0"
|
||||
pretty-ms: "npm:9.3.0"
|
||||
regexp-util: "npm:2.0.3"
|
||||
|
||||
Reference in new issue
Block a user