Prohibit Chai expect or should; prefer assert

This commit is contained in:
Evan Hahn
2022-01-19 13:19:08 -06:00
committed by GitHub
parent 885b4d4d2e
commit c1e3e87b99
5 changed files with 57 additions and 37 deletions

View File

@@ -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,
},
],
},
],