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#7425

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

Merged
JoshuaKGoldberg merged 11 commits intomainfromrenovate/prettier-3.x
Oct 18, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovaterenovatebot commentedAug 5, 2023
edited
Loading

Mend Renovate

This PR contains the following updates:

PackageChangeAgeAdoptionPassingConfidence
prettier (source)^2.8.4 ->^3.0.0ageadoptionpassingconfidence

Release Notes

prettier/prettier (prettier)

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 {...}     */expresssion)}// Prettier 3.0.0functionfn(){return/**   * @&#8203;type {...}   */expresssion;}// Prettier 3.0.1functionfn(){return(/**     * @&#8203;type {...}     */expresssion);}
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

v2.8.8

Compare Source

This version is a republished version of v2.8.7.
A bad version was accidentally published andit can't be unpublished, apologies for the churn.

v2.8.7

Compare Source

diff

Allow multiple decorators on same getter/setter (#​14584 by@​fisker)
// InputclassA{  @&#8203;decorator()getfoo(){}    @&#8203;decorator()setfoo(value){}}// Prettier 2.8.6SyntaxError:Decoratorscannotbeappliedtomultipleget/setaccessorsofthesamename.(5:3)3|getfoo(){}4|>5|   @&#8203;decorator()|^^^^^^^^^^^^6|setfoo(value){}7|}// Prettier 2.8.7classA{  @&#8203;decorator()getfoo(){}  @&#8203;decorator()setfoo(value){}}

v2.8.6

Compare Source

diff

Allow decorators on private members and class expressions (#​14548 by@​fisker)
// InputclassA{  @&#8203;decorator()  #privateMethod(){}}// Prettier 2.8.5SyntaxError:Decoratorsarenotvalidhere.(2:3)1|classA{>2|   @&#8203;decorator()|^^^^^^^^^^^^3|   #privateMethod(){}4|}// Prettier 2.8.6classA{  @&#8203;decorator()  #privateMethod(){}}

v2.8.5

Compare Source

diff

Support TypeScript 5.0 (#​14391 by@​fisker,#​13819 by@​fisker,@​sosukesuzuki)

TypeScript 5.0 introduces two new syntactic features:

  • const modifiers for type parameters
  • export type * declarations
Add missing parentheses for decorator (#​14393 by@​fisker)
// InputclassPerson{  @&#8203;(myDecoratorArray[0])greet(){}}// Prettier 2.8.4classPerson{  @&#8203;myDecoratorArray[0]greet(){}}// Prettier 2.8.5classPerson{  @&#8203;(myDecoratorArray[0])greet(){}}
Add parentheses forTypeofTypeAnnotation to improve readability (#​14458 by@​fisker)
// InputtypeA=(typeofnode.children)[];// Prettier 2.8.4typeA=typeofnode.children[];// Prettier 2.8.5typeA=(typeofnode.children)[];
Supportmax_line_length=off when parsing.editorconfig (#​14516 by@​josephfrazier)

If an .editorconfig file is in your project and it setsmax_line_length=off for the file you're formatting,
it will be interpreted as aprintWidth ofInfinity rather than being ignored
(which previously resulted in the defaultprintWidth of 80 being applied, if not overridden by Prettier-specific configuration).

<!-- Input --><divclassName='HelloWorld'title={`Youarevisitornumber${num}`}onMouseOver={onMouseOver}/><!-- Prettier 2.8.4 --><divclassName="HelloWorld"title={`Youarevisitornumber${num}`}onMouseOver={onMouseOver}/>;<!-- Prettier 2.8.5 --><divclassName="HelloWorld"title={`Youarevisitornumber${num}`}onMouseOver={onMouseOver}/>;

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 has been generated byMend Renovate. View repository job loghere.

@renovaterenovatebot added dependenciesIssue about dependencies of the package javascriptPull requests that update Javascript code labelsAug 5, 2023
@typescript-eslint
Copy link
Contributor

Thanks for the PR,@renovate[bot]!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedAug 5, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commita0d72bd
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/652efdca10a61a00088abf32
😎 Deploy Previewhttps://deploy-preview-7425--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 90 (🔴 down 5 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to yourNetlify site configuration.

@renovaterenovatebotforce-pushed therenovate/prettier-3.x branch from2cd9d92 to6039da7CompareAugust 5, 2023 20:46
@nx-cloud
Copy link

nx-cloudbot commentedAug 5, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commita0d72bd. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 19 targets

Sent with 💌 fromNxCloud.

@renovate
Copy link
ContributorAuthor

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Will need to look at this more closesly ...

@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelAug 17, 2023
@JoshuaKGoldbergJoshuaKGoldberg self-requested a reviewAugust 17, 2023 19:18
@github-actionsgithub-actionsbot removed the awaiting responseIssues waiting for a reply from the OP or another party labelAug 17, 2023
@JoshuaKGoldbergJoshuaKGoldberg merged commit0f11c18 intomainOct 18, 2023
@JoshuaKGoldbergJoshuaKGoldberg deleted the renovate/prettier-3.x branchOctober 18, 2023 00:32
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsOct 26, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@fiskerfiskerfisker left review comments

@armano2armano2armano2 left review comments

@rubiesontheskyrubiesontheskyrubiesonthesky left review comments

@auvredauvredauvred left review comments

@JoshuaKGoldbergJoshuaKGoldbergAwaiting requested review from JoshuaKGoldberg

Assignees
No one assigned
Labels
dependenciesIssue about dependencies of the packagejavascriptPull requests that update Javascript code
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@fisker@armano2@rubiesonthesky@JoshuaKGoldberg@auvred

[8]ページ先頭

©2009-2025 Movatter.jp