Disallow exclusive tests, i.e. .only
This commit is contained in:
@@ -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',
|
||||
|
||||
|
Reference in New Issue
Block a user