chore: upgrade linting packages

This commit is contained in:
Abhijith Vijayan [FLUXON] 2026-01-04 18:17:55 +05:30
parent 8bbcb174d1
commit 4dd9c3069b
3 changed files with 85 additions and 35 deletions

100
package-lock.json generated
View File

@ -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"
}
}
}
}

View File

@ -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",

View File

@ -39,9 +39,7 @@ browser.runtime.onInstalled.addListener((): void => {
// Listen for messages from popup or content scripts
browser.runtime.onMessage.addListener(
(
message: unknown
): Promise<VisitCountResponseMessage> | undefined => {
(message: unknown): Promise<VisitCountResponseMessage> | 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;