Disallow exclusive tests, i.e. .only

This commit is contained in:
Daniel Gasienica 2018-03-08 15:49:34 -05:00
parent 96442967cc
commit c7305db8c8

View file

@ -12,6 +12,7 @@ module.exports = {
],
plugins: [
'mocha',
'more',
],
@ -33,6 +34,9 @@ module.exports = {
ignoreUrls: true,
}],
// prevents us from accidentally checking in exclusive tests (`.only`):
'mocha/no-exclusive-tests': 'error',
// encourage consistent use of `async` / `await` instead of `then`
'more/no-then': 'error',