- 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,

4
package-lock.json generated
View File

@@ -4730,8 +4730,8 @@
}
},
"eslint-plugin-mocha-cleanup": {
"version": "git+https://github.com/brettz9/eslint-plugin-mocha-cleanup.git#56eea0ae5cb7d2d4b8c19117a162aa5c3b888279",
"from": "git+https://github.com/brettz9/eslint-plugin-mocha-cleanup.git#coverage",
"version": "git+https://github.com/brettz9/eslint-plugin-mocha-cleanup.git#9adea3da5eec23fbc90cff547be5e6ff93d81dd4",
"from": "git+https://github.com/brettz9/eslint-plugin-mocha-cleanup.git",
"dev": true,
"requires": {
"requireindex": "~1.2.0"

View File

@@ -170,7 +170,7 @@
"eslint-plugin-jsdoc": "^21.0.0",
"eslint-plugin-markdown": "^1.0.1",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-mocha-cleanup": "https://github.com/brettz9/eslint-plugin-mocha-cleanup#coverage",
"eslint-plugin-mocha-cleanup": "https://github.com/brettz9/eslint-plugin-mocha-cleanup",
"eslint-plugin-no-unsanitized": "^3.0.2",
"eslint-plugin-no-use-extend-native": "^0.4.1",
"eslint-plugin-node": "^11.0.0",