diff --git a/.eslintrc.json b/.eslintrc.json
index 68d9b5d1..9bf03bc3 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -2,11 +2,13 @@
"env": {
"browser": true,
"commonjs": true,
- "es2021": true
+ "es2021": true,
+ "node": true // add this line to allow Node.js-specific globals
},
"extends": "eslint:recommended",
"parserOptions": {
- "ecmaVersion": "latest"
+ "ecmaVersion": "latest",
+ "sourceType": "module" // add this line to allow 'import' and 'export' statements
},
"rules": {
"indent": ["error", 2],
@@ -14,4 +16,4 @@
"quotes": ["error", "double"],
"semi": ["error", "always"]
}
-}
+}
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 00000000..222861c3
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,4 @@
+{
+ "tabWidth": 2,
+ "useTabs": false
+}
diff --git a/package.json b/package.json
index 4427ded7..132029d8 100644
--- a/package.json
+++ b/package.json
@@ -1,11 +1,12 @@
{
"name": "evenbetterseqta",
"version": "1.0.0",
+ "type": "module",
"description": " ",
"main": "webpack.config.js",
"scripts": {
- "build": "webpack --config webpack.config.js",
- "dev": "webpack --config webpack.config.js --watch"
+ "build": "webpack --config webpack.config.js --mode production",
+ "dev": "webpack --config webpack.config.js --watch --mode production"
},
"keywords": [],
"author": "",
@@ -13,6 +14,7 @@
"devDependencies": {
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.8.1",
+ "dompurify": "^3.0.5",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-webpack-plugin": "^4.0.1",
@@ -22,6 +24,7 @@
"sass": "^1.65.1",
"sass-loader": "^13.3.2",
"style-loader": "^3.3.3",
+ "webextension-polyfill": "^0.10.0",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
}
diff --git a/public/popup/info.js b/public/popup/info.js
index f1b406b4..9bbff158 100644
--- a/public/popup/info.js
+++ b/public/popup/info.js
@@ -11,13 +11,15 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see