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

Breaking: Remove fixToNotOk and checkBooleanAssertions rule options #197

Conversation

bmish
Copy link
Collaborator

@bmish bmish commented Jul 13, 2021

  • The notOk assertion was added in QUnit 1.18, and we only support QUnit 2+, so we can enable/remove the fixToNotOk option so that rules can assume notOk is available
  • The true and false boolean assertions were added in QUnit 2.11, and enabling/removing the checkBooleanAssertions option will subject these assertions to additional linting

We can remove these options to simplify the rules and ease the maintenance burden.

Removed these options together to avoid conflicts since a lot of the code overlaps.

Fixes #190, fixes #195. Part of the v7 release (#175).

* The [notOk](https://api.qunitjs.com/assert/notOk/) assertion was added in QUnit 1.18, and we only support QUnit 2+, so we can enable/remove the `fixToNotOk` option so that rules can assume `notOk` is available
* The [true](https://api.qunitjs.com/assert/true/) and [false](https://api.qunitjs.com/assert/false/) boolean assertions were added in QUnit 2.11, and enabling/removing the `checkBooleanAssertions` option will subject these assertions to additional linting
@bmish bmish force-pushed the remove-fixToNotOk-checkBooleanAssertions-options branch from 6f3cfd8 to 2f9ed80 Compare July 13, 2021 03:08
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2f9ed80 on bmish:remove-fixToNotOk-checkBooleanAssertions-options into 742325c on platinumazure:master.

@coveralls
Copy link

coveralls commented Jul 13, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling 2f9ed80 on bmish:remove-fixToNotOk-checkBooleanAssertions-options into 742325c on platinumazure:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants