File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " prettier" ,
3- "version" : " 3.7.0 " ,
3+ "version" : " 3.8.0-dev " ,
44 "description" : " Prettier is an opinionated code formatter" ,
55 "bin" : " ./bin/prettier.cjs" ,
66 "repository" : " prettier/prettier" ,
165165 "node-style-text" : " 2.1.2" ,
166166 "npm-run-all2" : " 8.0.4" ,
167167 "open-editor" : " 6.0.0" ,
168- "prettier" : " 3.6.2 " ,
168+ "prettier" : " 3.7.0 " ,
169169 "pretty-bytes" : " 7.1.0" ,
170170 "pretty-ms" : " 9.3.0" ,
171171 "rollup-plugin-license" : " 3.6.0" ,
Original file line number Diff line number Diff line change @@ -57,9 +57,8 @@ async function loadYaml(file) {
5757 const content = await readFile ( file ) ;
5858
5959 if ( ! parseYaml ) {
60- ( { __parsePrettierYamlConfig : parseYaml } = await import (
61- "../../plugins/yaml.js"
62- ) ) ;
60+ ( { __parsePrettierYamlConfig : parseYaml } =
61+ await import ( "../../plugins/yaml.js" ) ) ;
6362 }
6463
6564 try {
Original file line number Diff line number Diff line change @@ -766,14 +766,14 @@ export interface BooleanSupportOption extends BaseSupportOption<"boolean"> {
766766 oppositeDescription ?: string | undefined ;
767767}
768768
769- export interface BooleanArraySupportOption
770- extends BaseSupportOption < "boolean" > {
769+ export interface BooleanArraySupportOption extends BaseSupportOption < "boolean" > {
771770 default ?: Array < { value : boolean [ ] } > | undefined ;
772771 array : true ;
773772}
774773
775- export interface ChoiceSupportOption < Value = any >
776- extends BaseSupportOption < "choice" > {
774+ export interface ChoiceSupportOption <
775+ Value = any ,
776+ > extends BaseSupportOption < "choice" > {
777777 default ?: Value | Array < { value : Value } > | undefined ;
778778 description : string ;
779779 choices : Array < {
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ import { shouldPrintTrailingComma } from "./misc.js";
3030function hasComma ( { node, parent } , options ) {
3131 return Boolean (
3232 node . source &&
33- options . originalText
34- . slice ( locStart ( node ) , locStart ( parent . close ) )
35- . trimEnd ( )
36- . endsWith ( "," ) ,
33+ options . originalText
34+ . slice ( locStart ( node ) , locStart ( parent . close ) )
35+ . trimEnd ( )
36+ . endsWith ( "," ) ,
3737 ) ;
3838}
3939
Original file line number Diff line number Diff line change 11function isSCSSVariable ( node , options ) {
22 return Boolean (
33 options . parser === "scss" &&
4- node ?. type === "word" &&
5- node . value . startsWith ( "$" ) ,
4+ node ?. type === "word" &&
5+ node . value . startsWith ( "$" ) ,
66 ) ;
77}
88
Original file line number Diff line number Diff line change @@ -73,12 +73,12 @@ class Foo {
7373const isClassMethodCantAttachComment = ( node , [ parent ] ) =>
7474 Boolean (
7575 node . type === "FunctionExpression" &&
76- parent . type === "MethodDefinition" &&
77- parent . value === node &&
78- getFunctionParameters ( node ) . length === 0 &&
79- ! node . returnType &&
80- ! isNonEmptyArray ( node . typeParameters ) &&
81- node . body ,
76+ parent . type === "MethodDefinition" &&
77+ parent . value === node &&
78+ getFunctionParameters ( node ) . length === 0 &&
79+ ! node . returnType &&
80+ ! isNonEmptyArray ( node . typeParameters ) &&
81+ node . body ,
8282 ) ;
8383
8484// `foo as const`
Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ function isSignedNumericLiteral(node) {
149149function isStringLiteral ( node ) {
150150 return Boolean (
151151 node &&
152- ( node . type === "StringLiteral" ||
153- ( node . type === "Literal" && typeof node . value === "string" ) ) ,
152+ ( node . type === "StringLiteral" ||
153+ ( node . type === "Literal" && typeof node . value === "string" ) ) ,
154154 ) ;
155155}
156156
Original file line number Diff line number Diff line change @@ -7483,12 +7483,12 @@ __metadata:
74837483 languageName : node
74847484 linkType : hard
74857485
7486- " prettier@npm:3.6.2 " :
7487- version : 3.6.2
7488- resolution : " prettier@npm:3.6.2 "
7486+ " prettier@npm:3.7.0 " :
7487+ version : 3.7.0
7488+ resolution : " prettier@npm:3.7.0 "
74897489 bin :
74907490 prettier : bin/prettier.cjs
7491- checksum : 10/1213691706bcef1371d16ef72773c8111106c3533b660b1cc8ec158bd109cdf1462804125f87f981f23c4a3dba053b6efafda30ab0114cc5b4a725606bb9ff26
7491+ checksum : 10/ac581ded785c672187a0b25bfb4f621870496835377ebffaaa9cfa41f58ffe9b0c81ecc6382b425c2d83a18f4fbad235777b7c0bdfe8e972f1964e1e99638b4a
74927492 languageName : node
74937493 linkType : hard
74947494
@@ -7599,7 +7599,7 @@ __metadata:
75997599 postcss-scss : " npm:4.0.9"
76007600 postcss-selector-parser : " npm:2.2.3"
76017601 postcss-values-parser : " npm:2.0.1"
7602- prettier : " npm:3.6.2 "
7602+ prettier : " npm:3.7.0 "
76037603 pretty-bytes : " npm:7.1.0"
76047604 pretty-ms : " npm:9.3.0"
76057605 regexp-util : " npm:2.0.3"
You can’t perform that action at this time.
0 commit comments