- Linting: Reenable mocha-cleanup/no-expressions-in-assertions with new replacementsOnly rule

- npm: Point to `master` of `eslint-plugin-mocha-cleanup` fork (until release)
This commit is contained in:
Brett Zamir
2020-02-28 19:08:16 +08:00
parent 8096f0750f
commit f8ed5018f5
3 changed files with 8 additions and 5 deletions

View File

@@ -288,8 +288,11 @@ module.exports = {
// Conflicts with Cypress `should`
'mocha-cleanup/invalid-assertions': 0,
// Might see about working around, but convenient
'mocha-cleanup/no-expressions-in-assertions': 0,
// Might see about working around to avoid the option limitation,
// but convenient
'mocha-cleanup/no-expressions-in-assertions': ['error', {
replacementsOnly: true
}],
// Too oppressive when planning to extend a section
'mocha/no-hooks-for-single-case': 0,