Disallow exclusive tests, i.e. .only
This commit is contained in:
parent
96442967cc
commit
c7305db8c8
1 changed files with 4 additions and 0 deletions
|
@ -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',
|
||||
|
||||
|
|
Loading…
Reference in a new issue