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

feat(eslint-plugin): [prefer-optional-chain] use type checking for strict falsiness#6240

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

JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg commentedDec 17, 2022
edited
Loading

BREAKING CHANGE:
Adds type checking toprefer-optional-chain

PR Checklist

Overview

Uses the type checker to skip reporting a complaint when the original expression includes a falsy value that isn'tundefined.

Also adds alooseFalsiness flag to allow the old, faster behavior.

Streamlines the test file because autogenerated tests are giving me headaches.

AndreaPontrandolfo and armano2 reacted with thumbs up emojiomril1 reacted with rocket emoji
@nx-cloud
Copy link

nx-cloudbot commentedDec 17, 2022
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit1f5c44e. 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 47 targets

Sent with 💌 fromNxCloud.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@JoshuaKGoldberg!

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 commentedDec 17, 2022
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit8d847e3
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/64185a1f257dd80008580a56
😎 Deploy Previewhttps://deploy-preview-6240--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.

@JoshuaKGoldbergJoshuaKGoldberg marked this pull request as draftDecember 17, 2022 23:21
@codecov
Copy link

codecovbot commentedDec 18, 2022
edited
Loading

Codecov Report

Merging#6240 (8d847e3) intov6 (28a64b5) willdecrease coverage by0.03%.
The diff coverage is80.95%.

Additional details and impacted files
@@            Coverage Diff             @@##               v6    #6240      +/-   ##==========================================- Coverage   85.23%   85.21%   -0.03%==========================================  Files         372      373       +1       Lines       12729    12738       +9       Branches     3783     3785       +2     ==========================================+ Hits        10850    10855       +5- Misses       1499     1502       +3- Partials      380      381       +1
FlagCoverage Δ
unittest85.21% <80.95%> (-0.03%)⬇️

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

Impacted FilesCoverage Δ
packages/type-utils/src/isTypeIntrinsic.ts0.00% <0.00%> (ø)
...s/eslint-plugin/src/rules/prefer-optional-chain.ts95.80% <85.00%> (-1.68%)⬇️

... and1 file with indirect coverage changes

@JoshuaKGoldbergJoshuaKGoldberg marked this pull request as ready for reviewDecember 18, 2022 02:46
@JoshuaKGoldbergJoshuaKGoldberg added this to the6.0.0 milestoneDec 24, 2022
@bradzacherbradzacher added the breaking changeThis change will require a new major version to be released labelJan 30, 2023
@JoshuaKGoldbergJoshuaKGoldberg changed the base branch frommain tov6February 25, 2023 05:32
@JoshuaKGoldberg
Copy link
MemberAuthor

Lots of merge conflicts here, will need to fix up... eventually.

@JoshuaKGoldbergJoshuaKGoldberg marked this pull request as draftFebruary 25, 2023 05:39
@bradzacherbradzacherforce-pushed thev6 branch 6 times, most recently from154811b to1b22295CompareMarch 15, 2023 10:00
@JoshuaKGoldbergJoshuaKGoldbergforce-pushed theprefer-optional-chain-falsy-types branch from1f5c44e to8d847e3CompareMarch 20, 2023 13:05
@nx-cloud
Copy link

nx-cloudbot commentedMar 20, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit8d847e3. 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 30 targets

Sent with 💌 fromNxCloud.

@JoshuaKGoldberg
Copy link
MemberAuthor

Closing in favor of#6397. Woop!

@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsMay 27, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@RebeccaStevensRebeccaStevensRebeccaStevens left review comments

@omril1omril1omril1 left review comments

@bradzacherbradzacherAwaiting requested review from bradzacher

Assignees
No one assigned
Labels
breaking changeThis change will require a new major version to be released
Projects
None yet
Milestone
6.0.0
Development

Successfully merging this pull request may close these issues.

[eslint-plugin] Breaking: enable type information for prefer-optional-chain
4 participants
@JoshuaKGoldberg@RebeccaStevens@omril1@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp