From 4dd9c3069bc9f31f0101412d3716e67bef6db3c2 Mon Sep 17 00:00:00 2001 From: "Abhijith Vijayan [FLUXON]" Date: Sun, 4 Jan 2026 18:17:55 +0530 Subject: [PATCH] chore: upgrade linting packages --- package-lock.json | 100 +++++++++++++++++++++++++++---------- package.json | 6 +-- source/Background/index.ts | 14 +++--- 3 files changed, 85 insertions(+), 35 deletions(-) diff --git a/package-lock.json b/package-lock.json index 98894c6..08d5810 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "webextension-polyfill": "^0.12.0" }, "devDependencies": { - "@abhijithvijayan/eslint-config": "^3.0.0", + "@abhijithvijayan/eslint-config": "^3.0.1", "@abhijithvijayan/tsconfig": "^1.5.1", "@types/node": "^25.0.3", "@types/react": "^19.2.7", @@ -27,13 +27,13 @@ "autoprefixer": "^10.4.23", "cross-env": "^10.1.0", "eslint": "^9.39.2", - "eslint-config-prettier": "^9.1.2", + "eslint-config-prettier": "^10.1.8", "eslint-plugin-import-x": "^4.16.1", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-n": "^17.23.1", "eslint-plugin-prettier": "^5.5.4", "eslint-plugin-react": "^7.37.5", - "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-hooks": "^7.0.1", "globals": "^15.15.0", "postcss": "^8.5.6", "prettier": "^3.7.4", @@ -50,9 +50,9 @@ } }, "node_modules/@abhijithvijayan/eslint-config": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@abhijithvijayan/eslint-config/-/eslint-config-3.0.0.tgz", - "integrity": "sha512-buuhabW/i7oC6YFqgR8HT03qHlhSmgXyc2sqxBdB8xfDnFG6ttYDWYOKpj/qq6Wqvm/3GYVnyqCl7JSGKKh1sQ==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@abhijithvijayan/eslint-config/-/eslint-config-3.0.1.tgz", + "integrity": "sha512-mE+pIYGVIA2/JaRZ335GS+aXxqSmDQbVsVrTTsBv6hOgS+AQAQI5l1lOizr5ucKgQi8hZRzqFl1WXLm5/olkrQ==", "dev": true, "license": "MIT", "engines": { @@ -62,18 +62,18 @@ "url": "https://github.com/sponsors/abhijithvijayan" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^8.0.0", - "@typescript-eslint/parser": "^8.0.0", - "eslint": "^9.0.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-import-x": "^4.0.0", - "eslint-plugin-jsx-a11y": "^6.10.0", - "eslint-plugin-n": "^17.0.0", - "eslint-plugin-prettier": "^5.2.0", - "eslint-plugin-react": "^7.35.0", - "eslint-plugin-react-hooks": "^5.0.0", - "globals": "^15.0.0", - "prettier": "^3.3.0" + "@typescript-eslint/eslint-plugin": ">=8.0.0", + "@typescript-eslint/parser": ">=8.0.0", + "eslint": ">=9.0.0", + "eslint-config-prettier": ">=9.1.0", + "eslint-plugin-import-x": ">=4.0.0", + "eslint-plugin-jsx-a11y": ">=6.10.0", + "eslint-plugin-n": ">=17.0.0", + "eslint-plugin-prettier": ">=5.1.0", + "eslint-plugin-react": ">=7.35.0", + "eslint-plugin-react-hooks": ">=5.0.0", + "globals": ">=15.0.0", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { @@ -3603,14 +3603,17 @@ } }, "node_modules/eslint-config-prettier": { - "version": "9.1.2", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.2.tgz", - "integrity": "sha512-iI1f+D2ViGn+uvv5HuHVUamg8ll4tN+JRHGc6IJi4TP9Kl976C57fzPXgseXNs8v0iA8aSJpHsTWjDb9QJamGQ==", + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz", + "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" }, + "funding": { + "url": "https://opencollective.com/eslint-config-prettier" + }, "peerDependencies": { "eslint": ">=7.0.0" } @@ -3863,13 +3866,20 @@ } }, "node_modules/eslint-plugin-react-hooks": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz", - "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", + "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", "dev": true, "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, "engines": { - "node": ">=10" + "node": ">=18" }, "peerDependencies": { "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" @@ -4422,6 +4432,23 @@ "node": ">= 0.4" } }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, "node_modules/hosted-git-info": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.2.tgz", @@ -7815,6 +7842,29 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/zod": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.5.tgz", + "integrity": "sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } } } } diff --git a/package.json b/package.json index 7fe5169..85f32b2 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "webextension-polyfill": "^0.12.0" }, "devDependencies": { - "@abhijithvijayan/eslint-config": "^3.0.0", + "@abhijithvijayan/eslint-config": "^3.0.1", "@abhijithvijayan/tsconfig": "^1.5.1", "@types/node": "^25.0.3", "@types/react": "^19.2.7", @@ -42,13 +42,13 @@ "autoprefixer": "^10.4.23", "cross-env": "^10.1.0", "eslint": "^9.39.2", - "eslint-config-prettier": "^9.1.2", + "eslint-config-prettier": "^10.1.8", "eslint-plugin-import-x": "^4.16.1", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-n": "^17.23.1", "eslint-plugin-prettier": "^5.5.4", "eslint-plugin-react": "^7.37.5", - "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-hooks": "^7.0.1", "globals": "^15.15.0", "postcss": "^8.5.6", "prettier": "^3.7.4", diff --git a/source/Background/index.ts b/source/Background/index.ts index 5606482..9a205d2 100644 --- a/source/Background/index.ts +++ b/source/Background/index.ts @@ -39,9 +39,7 @@ browser.runtime.onInstalled.addListener((): void => { // Listen for messages from popup or content scripts browser.runtime.onMessage.addListener( - ( - message: unknown - ): Promise | undefined => { + (message: unknown): Promise | undefined => { const msg = message as ExtensionMessage; // Content script notifies us when a page is visited @@ -61,10 +59,12 @@ browser.runtime.onMessage.addListener( // Popup requests the visit count if (msg.type === 'GET_VISIT_COUNT') { - return getStorage(['visitCount']).then(({visitCount}) => ({ - type: 'VISIT_COUNT_RESPONSE', - count: visitCount, - })); + return getStorage(['visitCount']).then(({visitCount}) => { + return { + type: 'VISIT_COUNT_RESPONSE', + count: visitCount, + }; + }); } return undefined;