Use Signal's spellcheck dictionary files

This commit is contained in:
Evan Hahn
2021-12-17 16:24:54 -06:00
committed by GitHub
parent fa9c523d39
commit 3fa911598b
6 changed files with 73 additions and 9 deletions

View File

@@ -117,6 +117,21 @@ const typescriptRules = {
'@typescript-eslint/array-type': ['error', { default: 'generic' }],
'no-restricted-imports': 'off',
'@typescript-eslint/no-restricted-imports': [
'error',
{
paths: [
{
name: 'electron',
importNames: ['BrowserWindow'],
message: 'Please use createBrowserWindow',
allowTypeImports: true,
},
],
},
],
// Overrides recommended by typescript-eslint
// https://github.com/typescript-eslint/typescript-eslint/releases/tag/v4.0.0
'@typescript-eslint/no-redeclare': 'error',