eslint-plugin-ava icon indicating copy to clipboard operation
eslint-plugin-ava copied to clipboard

Prefer `t.true(x)` over `t.is(x, true)`

Open jonahsnider opened this issue 4 years ago • 1 comments

Inspired by https://github.com/sindresorhus/ts-extras/pull/8#discussion_r740023376

Bad:

t.is(x, true);
t.is(x, false);

Good:

t.true(x);
t.false(x);

jonahsnider avatar Nov 01 '21 08:11 jonahsnider

This should be fixed in the https://github.com/avajs/eslint-plugin-ava/blob/main/docs/rules/use-true-false.md rule.

sindresorhus avatar Nov 01 '21 09:11 sindresorhus