antfu / eslint-config

Anthony's ESLint config preset
https://eslint-config.antfu.me/
MIT License
3.41k stars 400 forks source link

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

Closed ryoppippi closed 1 month ago

ryoppippi commented 1 month ago

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.

netlify[bot] commented 1 month ago

Deploy Preview for melodious-froyo-4871f8 ready!

Name Link
Latest commit 68cef1ccd5775aea2f383d4c25d6e5ea208745d6
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.