Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(multiline-ternary): add ignoreJSX option #280

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

haejiii
Copy link
Contributor

@haejiii haejiii commented Feb 14, 2024

Description

Add the ignoreJSX option to a multi-line rule.
I want to apply different rules based on parentheses within JSX.

e.g.
singleline without parentheses

long

{a
  ? <div>blah blah</div>
  : <div>blah blah</div>}

short

{a ? <div /> : <div />}

multiline with parentheses

{a ? (
  <div />
) : (
  <div />
)}

a mix of single and multilines

{a ? (
  <div />
) : 0}

Linked Issues

N/A

Copy link

netlify bot commented Feb 14, 2024

Deploy Preview for eslint-stylistic ready!

Name Link
🔨 Latest commit 3101fd6
🔍 Latest deploy log https://app.netlify.com/sites/eslint-stylistic/deploys/65cd444b53d51d000845e0d8
😎 Deploy Preview https://deploy-preview-280--eslint-stylistic.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 your Netlify site configuration.

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (502d18a) 99.79% compared to head (3101fd6) 99.79%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #280   +/-   ##
=======================================
  Coverage   99.79%   99.79%           
=======================================
  Files         115      115           
  Lines       26778    26793   +15     
  Branches     4498     4501    +3     
=======================================
+ Hits        26724    26739   +15     
  Misses         54       54           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@antfu
Copy link
Member

antfu commented Feb 15, 2024

Can you elaborate more about your use case?

@antfu antfu added this pull request to the merge queue Mar 14, 2024
Merged via the queue into eslint-stylistic:main with commit c6b14ea Mar 14, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants