Prohibit Chai expect
or should
; prefer assert
This commit is contained in:
parent
885b4d4d2e
commit
c1e3e87b99
5 changed files with 57 additions and 37 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018-2021 Signal Messenger, LLC
|
||||
// Copyright 2018-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// For reference: https://github.com/airbnb/javascript
|
||||
|
@ -128,6 +128,12 @@ const typescriptRules = {
|
|||
message: 'Please use createBrowserWindow',
|
||||
allowTypeImports: true,
|
||||
},
|
||||
{
|
||||
name: 'chai',
|
||||
importNames: ['expect', 'should', 'Should'],
|
||||
message: 'Please use assert',
|
||||
allowTypeImports: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue