feat(gui): open links in default browser (#50)

This commit is contained in:
Einliterflasche 2024-09-04 17:11:06 +02:00 committed by GitHub
parent e4141c763b
commit ff2e3ae8dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 218 additions and 191 deletions

View file

@ -15,6 +15,25 @@ export default [
languageOptions: { globals: globals.browser },
rules: {
"react/react-in-jsx-scope": "off",
// Disallow the use of the `open` on the gloal object
"no-restricted-globals": [
"warn",
{
name: "open",
message:
"Use the open(...) function from @tauri-apps/plugin-shell instead",
},
],
// Disallow the use of the `open` on the `window` object
"no-restricted-properties": [
"warn",
{
object: "window",
property: "open",
message:
"Use the open(...) function from @tauri-apps/plugin-shell instead",
},
],
},
},
];