-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove Azure Accounts dependency & delete configure flow * Don't bring in a new package for one API call * Update to ESLint flat config * Enable stylistic * And update TypeScript too * Update back up to test-electron 2.4.1
- Loading branch information
Showing
14 changed files
with
734 additions
and
940 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// @ts-check | ||
|
||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.strictTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
{ | ||
ignores: [ | ||
'.azure-pipelines/', | ||
'.vscode-test/', | ||
'dist/', | ||
'out/', | ||
], | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: { | ||
allowDefaultProject: ['*.?(m)js'], | ||
}, | ||
tsconfigRootDir: import.meta.dirname, | ||
} | ||
}, | ||
rules: { | ||
// Allow numbers and booleans in template expressions | ||
'@typescript-eslint/restrict-template-expressions': ['error', { | ||
allowNumber: true, | ||
allowBoolean: true, | ||
}], | ||
// Always use `return await` in async functions | ||
'@typescript-eslint/return-await': ['error', 'always'], | ||
// Prefer using String.match | ||
'@typescript-eslint/prefer-regexp-exec': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.?(m)js'], | ||
extends: [tseslint.configs.disableTypeChecked], | ||
}, | ||
); |
Oops, something went wrong.