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

fix(eslint-plugin): [comma-spacing] allow no space after trailing comma in objects and arrays#6938

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

Conversation

@islandryu
Copy link
Contributor

@islandryuislandryu commentedApr 20, 2023
edited by JoshuaKGoldberg
Loading

PR Checklist

Overview

The following cases are allowed to pass

constarr=[a,];constobj={'foo':'bar','baz':'qur',};

The following test case passed in eslint, but I wasn't sure if it should be compliant, so I put it on hold
eslint/eslint#16113

{code:'const arr = [1 , ];',options:[{before:true,after:false}]},{code:'const arr = [,2 , ];',options:[{before:true,after:false}]},{code:"const obj = {'foo':'bar' ,'baz':'qur' , };",options:[{before:true,after:false}],},

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@islandryu!

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 commentedApr 20, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit9e4e9aa
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/6440a357a22a120008b4b0f5
😎 Deploy Previewhttps://deploy-preview-6938--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@nx-cloud
Copy link

nx-cloudbot commentedApr 20, 2023
edited
Loading

☁️ Nx Cloud Report

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

📂 See all runs for this branch


✅ Successfully ran 25 targets

Sent with 💌 fromNxCloud.

@islandryuislandryu changed the titlefeat(eslint-plugin):[comma-spacing]allow no space after trailing comma in objects and arraysfix(eslint-plugin): [comma-spacing]allow no space after trailing comma in objects and arraysApr 20, 2023
@islandryuislandryu changed the titlefix(eslint-plugin): [comma-spacing]allow no space after trailing comma in objects and arraysfix(eslint-plugin): [comma-spacing] allow no space after trailing comma in objects and arraysApr 20, 2023
@codecov
Copy link

codecovbot commentedApr 20, 2023

Codecov Report

Merging#6938 (9e4e9aa) intomain (4f3750f) willincrease coverage by0.00%.
The diff coverage is100.00%.

Additional details and impacted files
@@           Coverage Diff           @@##             main    #6938   +/-   ##=======================================  Coverage   87.37%   87.37%           =======================================  Files         386      386             Lines       13192    13197    +5       Branches     3867     3869    +2     =======================================+ Hits        11526    11531    +5  Misses       1300     1300             Partials      366      366
FlagCoverage Δ
unittest87.37% <100.00%> (+<0.01%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
packages/eslint-plugin/src/rules/comma-spacing.ts100.00% <100.00%> (ø)

... and1 file with indirect coverage changes

@islandryuislandryu marked this pull request as ready for reviewApril 20, 2023 03:43
@bradzacherbradzacher added the bugSomething isn't working labelApr 20, 2023
@JoshuaKGoldbergJoshuaKGoldberg added the formattingRelated to whitespace/bracket formatting. We strongly recommend you use a formatter instead. labelApr 24, 2023
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.

I'm liking this nice clean implementation... very well done@islandryu!

Sorry for the delay here - we've been pretty focused onv6. But I'm glad to see this PR! ❤️

@JoshuaKGoldbergJoshuaKGoldberg merged commit24bdacc intotypescript-eslint:mainJul 8, 2023
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJul 16, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

Assignees

No one assigned

Labels

bugSomething isn't workingformattingRelated to whitespace/bracket formatting. We strongly recommend you use a formatter instead.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Bug: [comma-spacing] conflicts with array-bracket-spacing

3 participants

@islandryu@JoshuaKGoldberg@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp