Skip to content

Fix: Address potential bugs and improve error handling #863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"env": {
"browser": true,
"es2021": true
"es2021": true,
"webextensions": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"overrides": [],
Copy link
Preview

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabling the Node environment globally may allow Node-specific globals in browser code. Consider using ESLint overrides to scope node to server-side scripts and keep browser code under the webextensions env only.

Suggested change
"webextensions": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"overrides": [],
"webextensions": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"overrides": [
{
"files": ["server/**/*.js", "server/**/*.mjs"],
"env": {
"node": true
}
}
],

Copilot uses AI. Check for mistakes.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"build:safari": "bash ./safari/build.sh",
"dev": "node build.mjs --development",
"analyze": "node build.mjs --analyze",
"lint": "eslint --ext .js,.mjs,.jsx .",
"lint:fix": "eslint --ext .js,.mjs,.jsx . --fix",
"lint": "npx eslint --ext .js,.mjs,.jsx .",
"lint:fix": "npx eslint --ext .js,.mjs,.jsx . --fix",
"pretty": "prettier --write ./**/*.{js,mjs,jsx,json,css,scss}",
"stage": "run-script-os",
"stage:default": "git add $(git diff --name-only --cached --diff-filter=d)",
Expand Down
Loading