-
-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[desktop] Upgrade dependencies to latest + ESLint 9 (#1962)
The two outdated dependencies in the desktop code at this point are * Jackspeak, which needs to be pinned because of isaacs/jackspeak#5 (Presumably we'll not need this once we go yarn v4). * Electron store, which is ESM only.
- Loading branch information
Showing
14 changed files
with
368 additions
and
256 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// @ts-check | ||
|
||
import js from "@eslint/js"; | ||
import ts from "typescript-eslint"; | ||
|
||
export default ts.config( | ||
js.configs.recommended, | ||
...ts.configs.strictTypeChecked, | ||
...ts.configs.stylisticTypeChecked, | ||
{ | ||
// typescript-eslint needs this enabling type checked rules. | ||
languageOptions: { | ||
parserOptions: { | ||
project: true, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}, | ||
{ | ||
// The list of (minimatch) globs to ignore. This needs to be the only | ||
// key in this configuration object. | ||
ignores: ["eslint.config.mjs", "app/", "out/", "dist/"], | ||
}, | ||
{ | ||
// Rule customizations. | ||
rules: { | ||
// Allow numbers to be used in template literals. | ||
"@typescript-eslint/restrict-template-expressions": [ | ||
"error", | ||
{ | ||
allowNumber: true, | ||
}, | ||
], | ||
// Allow void expressions as the entire body of an arrow function. | ||
"@typescript-eslint/no-confusing-void-expression": [ | ||
"error", | ||
{ | ||
ignoreArrowShorthand: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
); |
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-disable no-unused-vars */ | ||
/** | ||
* @file The preload script | ||
* | ||
|
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
Oops, something went wrong.