Open
Description
Here is a list of possible additional rules for inclusion here:
assert
:
- prefer 'node:assert/strict' (Originally from
prefer-import/assert-strict
: new rule to prefer import 'node:assert/strict' #59) - enforce assert messages (Originally from New Rule: enforce messages on
assert
calls #322) - assert "actual" argument cant be constant/primative (Originally from Rule idea: enforce first arg of
assert.x
cannot be a string #69) - require await for "assert.rejects", and "assert.doesNotReject"
- require await for async "test", "it", "describe", "suite" functions
test
:
- no conditional in test (if/switch)
- no "test.skip", "it.skip", "describe.skip", "suite.skip"
- no "test.todo", "it.todo", "describe.todo", "suite.todo"
- no "test.only", "it.only", "describe.only", "suite.only"
- no empty name
test('')
,suite('')
, etc - no duplicate test names
- no empty test functions
- no-setup-in-describe
- no missing "before", "after", "beforeEach", "afterEach" functions
- test hooks in order ("before", "beforeEach", "afterEach", "after")
- no missing "test", "it", "describe", "suite" functions
- no return in "test", "it", "describe", "suite" functions
- no async test without await
- maximum assertion count
--experimental-strip-types
:
- only stripable types (eg like silverwind/eslint-config-silverwind@73ec388)