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(typescript): add strict-boolean-expressions rule #490

Merged
merged 1 commit into from
May 31, 2024
Merged

feat(typescript): add strict-boolean-expressions rule #490

merged 1 commit into from
May 31, 2024

Conversation

ryoppippi
Copy link
Contributor

@ryoppippi ryoppippi commented May 31, 2024

This commit adds the 'ts/strict-boolean-expressions' rule to the TypeScript ESLint configuration. This rule helps to prevent bugs caused by the incorrect use of boolean expressions.

Description

add strict-boolean-expressions to type-aware rule

Linked Issues

Additional context

https://typescript-eslint.io/rules/strict-boolean-expressions/#:~:text=Disallow%20certain%20types%20in%20boolean%20expressions.&text=Some%20problems%20reported%20by%20this,fix%20ESLint%20command%20line%20option.

This commit adds the 'ts/strict-boolean-expressions' rule to the
TypeScript ESLint configuration. This rule helps to prevent bugs
caused by the incorrect use of boolean expressions.
Copy link

netlify bot commented May 31, 2024

Deploy Preview for melodious-froyo-4871f8 ready!

Name Link
🔨 Latest commit 68cef1c
🔍 Latest deploy log https://app.netlify.com/sites/melodious-froyo-4871f8/deploys/6659b21ab4c9d300080d6f3e
😎 Deploy Preview https://deploy-preview-490--melodious-froyo-4871f8.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.

@antfu antfu changed the title feat(typescript config): add strict-boolean-expressions rule feat(typescript): add strict-boolean-expressions rule May 31, 2024
@antfu antfu merged commit c042620 into antfu:main May 31, 2024
4 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.

2 participants