tlvince / eslint-plugin-jasmine

ESLint rules for Jasmine
https://www.npmjs.com/package/eslint-plugin-jasmine
MIT License
95 stars 57 forks source link

Implement rules for preferences for true/false/null #359

Open osamayelk opened 2 years ago

osamayelk commented 2 years ago

Description

Added new rules for prefer toBeNull/toBeTrue/toBeFalse. This implements the enhancement #352 We could discuss whether or not we need rules to prefer toBeTrue/toBeFalse over toBeTruthy/toBeFalsy and what should we call them.

How has this been tested?

I wrote mocha tests following the same pattern for toBeUndefined

Types of changes

Checklist

pullard commented 1 year ago

Sounds like a great addition, is this being looked at?