Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(deps): update dependency prettier to v3#71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
renovate wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromrenovate/major-prettier

Conversation

@renovate
Copy link
Contributor

@renovaterenovatebot commentedJul 13, 2023
edited
Loading

This PR contains the following updates:

PackageChangeAgeConfidence
prettier (source)2.8.8 ->3.7.4ageconfidence

Release Notes

prettier/prettier (prettier)

v3.7.4

Compare Source

diff

LWC: Avoid quote around interpolations (#​18383 by@​kovsu)
<!-- Input --><divfoo={bar}></div><!-- Prettier 3.7.3 (--embedded-language-formatting off) --><divfoo="{bar}"></div><!-- Prettier 3.7.4 (--embedded-language-formatting off) --><divfoo={bar}></div>
TypeScript: Fix comment inside union type gets duplicated (#​18393 by@​fisker)
// InputtypeFoo=(/** comment */a|b)|c;// Prettier 3.7.3typeFoo=/** comment */(/** comment */a|b)|c;// Prettier 3.7.4typeFoo=/** comment */(a|b)|c;
TypeScript: Fix unstable comment print in union type comments (#​18395 by@​fisker)
// InputtypeX=(A|B)&(// commentA|B);// Prettier 3.7.3 (first format)typeX=(A|B)&(// commentA|B);// Prettier 3.7.3 (second format)typeX=(|A|B// comment)&(A|B);// Prettier 3.7.4typeX=(A|B)&// comment(A|B);

v3.7.3

Compare Source

diff

API: Fixprettier.getFileInfo() change that breaks VSCode extension (#​18375 by@​fisker)

An internal refactor accidentally broke the VSCode extension plugin loading.

v3.7.2

Compare Source

diff

#"https://redirect.github.com/prettier/prettier/pull/18351">#​18351 by@​fisker)
// Inputconsole.log("A descriptor\\'s .kind must be \"method\" or \"field\".")// Prettier 3.7.1console.log('A descriptor\\'s.kindmustbe"method"or"field".');// Prettier 3.7.2console.log('A descriptor\\\'s .kind must be "method" or "field".');
#"https://redirect.github.com/prettier/prettier/pull/18352">#​18352 by@​kovsu)
// Inputconsthtml=/* HTML */` <divpl-s1">${styles.banner}"></div> `;// Prettier 3.7.1consthtml=/* HTML */` <div class=${styles.banner}></div> `;// Prettier 3.7.2consthtml=/* HTML */` <divpl-s1">${styles.banner}"></div> `;
TypeScript: Fix comment in empty type literal (#​18364 by@​fisker)
// InputexporttypeXXX={// tbd};// Prettier 3.7.1exporttypeXXX={// tbd};// Prettier 3.7.2exporttypeXXX={// tbd};

v3.7.1

Compare Source

diff

API: Fix performance regression in doc printer (#​18342 by@​fisker)

Prettier 3.7.1 can be very slow when formatting big files, the regression has been fixed.

v3.7.0

Compare Source

diff

🔗Release Notes

v3.6.2

Compare Source

diff

Markdown: Add missing blank line around code block (#​17675 by@​fisker)
<!-- Input-->1. Some text, and code block below, with newline after code block```yaml---foo:bar```   1. Another   2. List<!-- Prettier 3.6.1 -->1. Some text, and code block below, with newline after code block```yaml---foo:bar```   1. Another   2. List<!-- Prettier 3.6.2 -->1. Some text, and code block below, with newline after code block```yaml---foo:bar```   1. Another   2. List

v3.6.1

Compare Source

diff

TypeScript: Allow const without initializer (#​17650,#​17654 by@​fisker)
// Inputexportconstversion:string;// Prettier 3.6.0 (--parser=babel-ts)SyntaxError:Unexpectedtoken(1:21)>1|exportconstversion:string;|^// Prettier 3.6.0 (--parser=oxc-ts)SyntaxError:Missinginitializerinconstdeclaration(1:14)>1|exportconstversion:string;|^^^^^^^^^^^^^^^// Prettier 3.6.1exportconstversion:string;
Miscellaneous: Avoid closing files multiple times (#​17665 by@​43081j)

When reading a file to infer the interpreter from a shebang, we use the
n-readlines library to read the first line in order to get the shebang.

This library closes files when it reaches EOF, and we later try close the same
files again. We now close files only ifn-readlines did not already close
them.

v3.6.0

Compare Source

diff

🔗Release Notes

v3.5.3

Compare Source

diff

Flow: Fix missing parentheses inConditionalTypeAnnotation (#​17196 by@​fisker)
// InputtypeT<U>='a'|('b'extendsU ?'c' :empty);typeT<U>='a'&('b'extendsU ?'c' :empty);// Prettier 3.5.2typeT<U>="a"|"b"extendsU ?"c" :empty;typeT<U>="a"&"b"extendsU ?"c" :empty;// Prettier 3.5.3typeT<U>="a"|("b"extendsU ?"c" :empty);typeT<U>="a"&("b"extendsU ?"c" :empty);

v3.5.2

Compare Source

diff

Removemodule-sync condition (#​17156 by@​fisker)

In Prettier 3.5.0,we addedmodule-sync condition topackage.json, so thatrequire("prettier") can use ESM version, but turns out it doesn't work if CommonJS and ESM plugins both imports builtin plugins. To solve this problem, we decide simply remove themodule-sync condition, sorequire("prettier") will still use the CommonJS version, we'll revisit untilrequire(ESM) feature is more stable.

v3.5.1

Compare Source

diff

Fix CLI crash when cache for old version exists (#​17100 by@​sosukesuzuki)

Prettier 3.5 uses a different cache format than previous versions, Prettier 3.5.0 crashes when reading existing cache file, Prettier 3.5.1 fixed the problem.

Support dockercompose and github-actions-workflow in VSCode (#​17101 by@​remcohaszing)

Prettier now supports thedockercompose andgithub-actions-workflow languages in Visual Studio Code.

v3.5.0

Compare Source

diff

🔗Release Notes

v3.4.2

Compare Source

diff

Treat U+30A0 & U+30FB in Katakana Block as CJK (#​16796 by@​tats-u)

Prettier doesn't treat U+30A0 & U+30FB as Japanese. U+30FB is commonly used in Japanese to represent the delimitation of first and last names of non-Japanese people or “and”. The following “C言語・C++・Go・Rust” means “C language & C++ & Go & Rust” in Japanese.

<!-- Input (--prose-wrap=never)-->C言語・C++・Go・Rust<!-- Prettier 3.4.1-->C言語・ C++ ・ Go ・ Rust<!-- Prettier 3.4.2-->C言語・C++・Go・Rust

U+30A0 can be used as the replacement of the- in non-Japanese names (e.g. “Saint-Saëns” (Charles Camille Saint-Saëns) can be represented as “サン゠サーンス” in Japanese), but substituted by ASCII hyphen (U+002D) or U+FF1D (full width hyphen) in many cases (e.g. “サン=サーンス” or “サン=サーンス”).

Fix comments print on class methods with decorators (#​16891 by@​fisker)
// InputclassA{  @&#8203;decorator/**   * The method description   *  */asyncmethod(foo:Foo,bar:Bar){console.log(foo);}}// Prettier 3.4.1classA{  @&#8203;decoratorasync/**   * The method description   *   */method(foo:Foo,bar:Bar){console.log(foo);}}// Prettier 3.4.2classA{  @&#8203;decorator/**   * The method description   *   */asyncmethod(foo:Foo,bar:Bar){console.log(foo);}}
Fix non-idempotent formatting (#​16899 by@​seiyab)

This bug fix is not language-specific. You may see similar change in any languages. This fixes regression in 3.4.0 so change caused by it should yield same formatting as 3.3.3.

// Input<div>  foo<span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>  , abc</div>;// Prettier 3.4.1 (first)<div>  foo<span>    longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>, abc</div>;// Prettier 3.4.1 (second)<div>  foo<span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>  , abc</div>;// Prettier 3.4.2<div>  foo<span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>  , abc</div>;

v3.4.1

Compare Source

diff

Remove unnecessary parentheses around assignment inv-on (#​16887 by@​fisker)
<!-- Input--><template>  <button@&#8203;click="foo += 2">Click</button></template><!-- Prettier 3.4.0--><template>  <button@&#8203;click="(foo += 2)">Click</button></template><!-- Prettier 3.4.1--><template>  <button@&#8203;click="foo += 2">Click</button></template>

v3.4.0

Compare Source

diff

🔗Release Notes

v3.3.3

Compare Source

diff

Add parentheses for nullish coalescing in ternary (#​16391 by@​cdignam-segment)

This change adds clarity to operator precedence.

// Inputfoo ?bar??foo :baz;foo??bar ?a :b;a ?b :foo??bar;// Prettier 3.3.2foo ?bar??foo :baz;foo??bar ?a :b;a ?b :foo??bar;// Prettier 3.3.3foo ?(bar??foo) :baz;(foo??bar) ?a :b;a ?b :(foo??bar);
Add parentheses for decorator expressions (#​16458 by@​y-schneider)

Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.

// Input@&#8203;(foo`tagged template`)classX{}// Prettier 3.3.2@&#8203;foo`tagged template`classX{}// Prettier 3.3.3@&#8203;(foo`tagged template`)classX{}
Support@let declaration syntax (#​16474 by@​sosukesuzuki)

Adds support for Angular v18@let declaration syntax.

Please see the following code example. The@let declaration allows you to define local variables within the template:

@&#8203;let name = 'Frodo';<h1>Dashboard for {{name}}</h1>Hello, {{name}}

For more details, please refer to the excellent blog post by the Angular Team:Introducing @​let in Angular.

We also appreciate the Angular Team for kindly answering our questions to implement this feature.

v3.3.2

Compare Source

diff

Fix handlebars path expressions starts with@ (#​16358 by@​Princeyadav05)
{{! Input }}<div>{{@&#8203;x.y.z}}</div>{{! Prettier 3.3.1 }}<div>{{@&#8203;x}}</div>{{! Prettier 3.3.2 }}<div>{{@&#8203;x.y.z}}</div>

v3.3.1

Compare Source

diff

Preserve empty lines in front matter (#​16347 by@​fisker)
<!-- Input-->---foo:- bar1- bar2- bar3---Markdown<!-- Prettier 3.3.0-->---foo:- bar1- bar2- bar3---Markdown<!-- Prettier 3.3.1-->---foo:- bar1- bar2- bar3---Markdown
Preserve explicit language in front matter (#​16348 by@​fisker)
<!-- Input-->---yamltitle: Helloslug: home---<!-- Prettier 3.3.0-->---title: Helloslug: home---<!-- Prettier 3.3.1-->---yamltitle: Helloslug: home---
Avoid line breaks in import attributes (#​16349 by@​fisker)
// Inputimportsomethingfrom"./some-very-very-very-very-very-very-very-very-long-path.json"with{type:"json"};// Prettier 3.3.0importsomethingfrom"./some-very-very-very-very-very-very-very-very-long-path.json"with{type:"json"};// Prettier 3.3.1importsomethingfrom"./some-very-very-very-very-very-very-very-very-long-path.json"with{type:"json"};

v3.3.0

Compare Source

diff

🔗Release Notes

v3.2.5

Compare Source

diff

Support Angular inline styles as single template literal (#​15968 by@​sosukesuzuki)

Angular v17 supports single string inline styles.

// Input@&#8203;Component({template:`<div>...</div>`,styles:`h1 { color: blue; }`,})exportclassAppComponent{}// Prettier 3.2.4@&#8203;Component({template:`<div>...</div>`,styles:`h1 { color: blue; }`,})exportclassAppComponent{}// Prettier 3.2.5@&#8203;Component({template:`<div>...</div>`,styles:`    h1 {      color: blue;    }  `,})exportclassAppComponent{}
Unexpected embedded formatting for Angular template (#​15969 by@​JounQin)

Computed template should not be considered as Angular component template

// Inputconsttemplate="foobar";@&#8203;Component({[template]:`<h1>{{       hello }}</h1>`,})exportclassAppComponent{}// Prettier 3.2.4consttemplate="foobar";@&#8203;Component({[template]:`<h1>{{ hello }}</h1>`,})exportclassAppComponent{}// Prettier 3.2.5consttemplate="foobar";@&#8203;Component({[template]:`<h1>{{       hello }}</h1>`,})exportclassAppComponent{}
Use"json" parser fortsconfig.json by default (#​16012 by@​sosukesuzuki)

Inv3.2.0, we introduced"jsonc" parser which adds trailing commaby default.

When adding a new parser we also define how it will be used based on thelinguist-languages data.

tsconfig.json is a special file used byTypeScript, it uses.json file extension, but it actually uses theJSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing.json file extension.

We decide to treat it as a JSON file for now to avoid the extra configuration step.

To keep using the"jsonc" parser for yourtsconfig.json files, add the following to your.prettierrc file

{"overrides": [    {"files": ["tsconfig.json","jsconfig.json"],"options": {"parser":"jsonc"      }    }  ]}

v3.2.4

Compare Source

prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }

v3.2.3

Compare Source

diff

Throw errors for invalid code (#​15881 by@​fisker,@​Josh-Cena,@​auvred)
// Input1++;// Prettier 3.2.21++;// Prettier 3.2.3SyntaxError:Invalidleft-handsideexpressioninunaryoperation(1:1)>1|1++;|^
// Inputtry{}catch(error=1){}// Prettier 3.2.2try{}catch(error){}// Prettier 3.2.3SyntaxError:Catchclausevariablecannothaveaninitializer.(1:23)>1|try{}catch(error=1){}|^
Fix parser inference (#​15927 by@​fisker)
// Prettier 3.2.2prettier --file-info tsconfig.json{ "ignored": false, "inferredParser": "json" }// Prettier 3.2.3prettier --file-info tsconfig.json{ "ignored": false, "inferredParser": "jsonc" }

v3.2.2

Compare Source

diff

Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute (#​15896 by@​eelco)

For example this code would crash before:

<style{...spread}>{`.{}`}</style>
Fix formatting error on optional call expression and member chain (#​15920 by@​sosukesuzuki)
// Inputa(()=>{},c?.d());// Prettier 3.2.1TypeError:Cannotreadpropertiesofundefined(reading'type')// Prettier 3.2.2a(()=>{},c?.d());

v3.2.1

Compare Source

diff

Fix formatting error on member chain (#​15915 by@​sosukesuzuki)
// Inputtest().test2().test2(thing?.something);// Prettier 3.2.0TypeError:Cannotreadpropertiesofundefined(reading'type')// Prettier 3.2.1test().test2().test2(thing?.something);

v3.2.0

Compare Source

diff

🔗Release Notes

v3.1.1

Compare Source

diff

Fix config file search (#​15363 by@​fisker)

Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.

├─ .prettierrc└─ test.js         (A directory)  └─ .prettierrc
// Prettier 3.1.0awaitprettier.resolveConfigFile(newURL("./test.js",import.meta.url));// <CWD>/test.js/.prettierrc// Prettier 3.1.1awaitprettier.resolveConfigFile(newURL("./test.js",import.meta.url));// <CWD>/.prettierrc
Skip explicitly passed symbolic links with--no-error-on-unmatched-pattern (#​15533 by@​sanmai-NL)

Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.

In Prettier 3.1.1, you can use--no-error-on-unmatched-pattern to simply skip symbolic links.

Consistently use tabs in ternaries whenuseTabs istrue (#​15662 by@​auvred)
// Inputaaaaaaaaaaaaaaa?bbbbbbbbbbbbbbbbbb:ccccccccccccccc  ?ddddddddddddddd  :eeeeeeeeeeeeeee    ?fffffffffffffff    :gggggggggggggggg;// Prettier 3.1.0aaaaaaaaaaaaaaa?bbbbbbbbbbbbbbbbbb:ccccccccccccccc  ?ddddddddddddddd  :eeeeeeeeeeeeeee    ?fffffffffffffff    :gggggggggggggggg;// Prettier 3.1.1aaaaaaaaaaaaaaa?bbbbbbbbbbbbbbbbbb:ccccccccccccccc?ddddddddddddddd:eeeeeeeeeeeeeee?fffffffffffffff:gggggggggggggggg;
Improve config file search (#​15663 by@​fisker)

The Prettier config file search performance has been improved by more effective cache strategy.

Fix unstable and ugly formatting for comments in destructuring patterns (#​15708 by@​sosukesuzuki)
// Inputconst{  foo,// bar// baz}:Foo=expr;// Prettier 3.1.0const{  foo1,}// bar// baz:Foo=expr;// Prettier 3.1.0 second outputconst{  foo1,// bar}// baz:Foo=expr;// Prettier 3.1.1const{  foo1,// bar// baz}:Foo=expr;
Support "Import Attributes" (#​15718 by@​fisker)

TypeScript 5.3 supports the latest updates to theimport attributes proposal.

importsomethingfrom"./something.json"with{type:"json"};
Fix false claim in docs that cursorOffset is incompatible with rangeStart/rangeEnd (#​15750 by@​ExplodingCabbage)

The cursorOffset option has in fact been compatible with rangeStart/rangeEnd for over 5 years, thanks to work by@​ds300. However, Prettier's documentation (including the CLI--help text) continued to claim otherwise, falsely. The documentation is now fixed.

Keep curly braces andfrom keyword in emptyimport statements (#​15756 by@​fisker)
// Inputimport{}from'foo';import{/* comment */}from'bar';// Prettier 3.1.0import{}from"foo";import/* comment */"bar";// Prettier 3.1.1import{}from"foo";import{}from/* comment */"bar";
Keep empty import attributes and assertions (#​15757 by@​fisker)
// Inputimportfoofrom"foo"with{};importbarfrom"bar"assert{};// Prettier 3.1.0importfoofrom"foo";importbarfrom"bar";// Prettier 3.1.1importfoofrom"foo"with{};importbarfrom"bar"assert{};

v3.1.0

Compare Source

diff

🔗Release Notes

v3.0.3

Compare Source

diff

AddpreferUnplugged: true topackage.json (#​15169 by@​fisker and@​so1ve)

Prettier v3 uses dynamic imports, userwill need to unplug Prettier when Yarn's PnP mode is enabled, addpreferUnplugged: true topackage.json, so Yarn will install Prettier as unplug by default.

Support shared config that forbidsrequire() (#​15233 by@​fisker)

If an external shared config package is used, and the packageexports don't haverequire ordefault export.

In Prettier 3.0.2 Prettier fails when attempt torequire() the package, and throws an error.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in <packageName>/package.json
Allow argument ofrequire() to break (#​15256 by@​fisker)
// Inputconstplugin=require(global.STANDALONE    ?path.join(__dirname,"../standalone.js")    :path.join(__dirname,".."));// Prettier 3.0.2constplugin=require(global.STANDALONE  ?path.join(__dirname,"../standalone.js")  :path.join(__dirname,".."));// Prettier 3.0.3constplugin=require(global.STANDALONE    ?path.join(__dirname,"../standalone.js")    :path.join(__dirname,".."));
Do not print trailing commas in arrow function type parameter lists ints code blocks (#​15286 by@​sosukesuzuki)
<!-- Input-->```tsconst foo= <T>()=> {}```<!-- Prettier 3.0.2-->```tsconst foo= <T,>()=> {}```<!-- Prettier 3.0.3-->```tsconst foo= <T>()=> {}```
Support TypeScript 5.2using /await using declaration (#​15321 by@​sosukesuzuki)

Support for the upcoming Explicit Resource Management feature in ECMAScript.using /await using declaration

{   usingfoo=newFoo();await usingbar=newBar();}

v3.0.2

Compare Source

diff

Break after= of assignment if RHS is poorly breakable AwaitExpression or YieldExpression (#​15204 by@​seiyab)
// Inputconst{ section, rubric, authors, tags}=awaitutils.upsertCommonData(mainData);// Prettier 3.0.1const{ section, rubric, authors, tags}=awaitutils.upsertCommonData(mainData,);// Prettier 3.0.2const{ section, rubric, authors, tags}=awaitutils.upsertCommonData(mainData);
Do not add trailing comma for grouped scss comments (#​15217 by@​auvred)
/* Input*/$foo: ('property': (),// comment 1// comment 2)/* Prettier 3.0.1*/$foo: ("property": (),// comment 1// comment 2,);/* Prettier 3.0.2*/$foo: ("property": (),// comment 1// comment 2);
Printdeclare andexport keywords for nested namespace (#​15249 by@​sosukesuzuki)
// Inputdeclarenamespaceabc1.def{}exportnamespaceabc2.def{}// Prettier 3.0.1namespaceabc1.def{}namespaceabc2.def{}// Prettier 3.0.2declarenamespaceabc1.def{}exportnamespaceabc2.def{}

v3.0.1

Compare Source

diff

Fix cursor positioning for a special case (#​14812 by@​fisker)
// <|> is the cursor position/* Input */// All messages are represented in JSON.// So, the prettier.py controls a subprocess which spawns "node {this_file}".import{<|>}from"fs"/* Prettier 3.0.0 */// All messages are represented in JSON.// So, the prettier.py <|>controls a subprocess which spawns "node {this_file}".import{}from"fs"/* Prettier 3.0.1 */// All messages are represented in JSON.// So, the prettier.py controls a subprocess which spawns "node {this_file}".import{<|>}from"fs"
Fix plugins/estree.d.ts to make it a module (#​15018 by@​kingyue737)

Addexport {} inplugins/estree.d.ts to fix the "File is not a module" error

Add parenthesis around leading multiline comment in return statement (#​15037 by@​auvred)
// Inputfunctionfn(){return(/**     * @&#8203;type {...}     */expression)}// Prettier 3.0.0functionfn(){return/**   * @&#8203;type {...}   */expression;}// Prettier 3.0.1functionfn(){return(/**     * @&#8203;type {...}     */expression);}
Add support for Vue "Generic Components" (#​15066 by@​auvred)

https://blog.vuejs.org/posts/vue-3-3#generic-components

<!-- Input--><script setup lang="ts"generic="TextendsType1&Type2& (Type3|Type4),Uextendsstring|number|boolean"></script><!-- Prettier 3.0.0--><script  setup  lang="ts"generic="TextendsType1&Type2& (Type3|Type4),Uextendsstring|number|boolean"></script><!-- Prettier 3.0.1--><script  setup  lang="ts"generic="TextendsType1&Type2& (Type3|Type4),Uextendsstring|number|boolean"></script>
Fix comments print inIfStatement (#​15076 by@​fisker)
functiona(b){if(b)return1;// commentelsereturn2;}/* Prettier 3.0.0 */Error:Comment"comment"wasnotprinted.Pleasereportthiserror!/* Prettier 3.0.1 */functiona(b){if(b)return1;// commentelsereturn2;}
Add missing type definition forprinter.preprocess (#​15123 by@​so1ve)
export interface Printer<T = any> {  // ...+ preprocess?:+   | ((ast: T, options: ParserOptions<T>) => T | Promise<T>)+   | undefined;}
Add missinggetVisitorKeys method type definition forPrinter (#​15125 by@​auvred)
constprinter:Printer={print:()=>[],getVisitorKeys(node,nonTraversableKeys){return["body"];},};
Add typing to supportreadonly array properties of AST Node (#​15127 by@​auvred)
// InputinterfaceTestNode{readonlyArray:readonlystring[];}declareconstpath:AstPath<TestNode>;path.map(()=>"","readonlyArray");// Prettier 3.0.0interfaceTestNode{readonlyArray:readonlystring[];}declareconstpath:AstPath<TestNode>;path.map(()=>"","readonlyArray");//                  ^ Argument of type '"readonlyArray"' is not assignable to parameter of type '"regularArray"'. ts(2345)// Prettier 3.0.1interfaceTestNode{readonlyArray:readonlystring[];}declareconstpath:AstPath<TestNode>;path.map(()=>"","readonlyArray");
Add space before unary minus followed by a function call (#​15129 by@​pamelalozano)
// Inputdiv {margin:- func();}// Prettier 3.0.0div {margin:-func();}// Prettier 3.0.1div {margin:- func();}

v3.0.0

Compare Source

diff

🔗Release Notes


Configuration

📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated byMend Renovate. View therepository job log.

@vercel
Copy link

vercelbot commentedJul 13, 2023
edited
Loading

The latest updates on your projects. Learn more aboutVercel for GitHub.

ProjectDeploymentPreviewCommentsUpdated (UTC)
supabase-graphql-exampleReadyReadyPreviewCommentDec 5, 2025 4:03pm

@renovaterenovatebotforce-pushed therenovate/major-prettier branch from255b00c to62c4471CompareAugust 3, 2023 07:16
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from62c4471 to7139333CompareAugust 15, 2023 18:05
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from7139333 to2f8874fCompareAugust 29, 2023 13:58
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from2f8874f to883b27aCompareNovember 13, 2023 08:03
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from883b27a to4685460CompareDecember 10, 2023 10:50
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from4685460 to69cf91dCompareJanuary 12, 2024 16:39
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from69cf91d to9611ae9CompareJanuary 12, 2024 20:23
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from9611ae9 to291f71fCompareJanuary 14, 2024 03:14
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from291f71f to47b77f4CompareJanuary 17, 2024 04:11
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from47b77f4 to4796779CompareJanuary 17, 2024 11:53
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from4796779 to3886035CompareFebruary 4, 2024 06:49
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from3886035 todf0a427CompareJune 1, 2024 18:08
@renovaterenovatebotforce-pushed therenovate/major-prettier branch fromdf0a427 to14172eaCompareJune 5, 2024 10:02
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from14172ea to63c74eaCompareJune 11, 2024 07:16
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from63c74ea to2700f22CompareJuly 13, 2024 14:55
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from2700f22 toaca3c19CompareAugust 7, 2024 22:43
@renovaterenovatebotforce-pushed therenovate/major-prettier branch fromaca3c19 to2ef5bafCompareNovember 26, 2024 06:15
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from2ef5baf todd85a4fCompareNovember 26, 2024 13:53
@renovaterenovatebotforce-pushed therenovate/major-prettier branch fromdd85a4f to6e3e12dCompareDecember 4, 2024 08:40
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from6e3e12d to8f67a4eCompareFebruary 9, 2025 14:00
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from8f67a4e to3aed4a9CompareFebruary 13, 2025 16:04
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from3aed4a9 tofe9b706CompareFebruary 22, 2025 06:36
@renovaterenovatebotforce-pushed therenovate/major-prettier branch fromfe9b706 to5471134CompareMarch 3, 2025 02:47
@renovaterenovatebotforce-pushed therenovate/major-prettier branch from5471134 to06d6bbcCompareAugust 4, 2025 22:27
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

0 participants


[8]ページ先頭

©2009-2025 Movatter.jp