This is an automated email from the ASF dual-hosted git repository.
hainenber pushed a commit to branch lint/remove-unused-eslint-plugins
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to
refs/heads/lint/remove-unused-eslint-plugins by this push:
new 61a25b3987b chore(lint): remove unused `eslint-plugin-react-hooks`
61a25b3987b is described below
commit 61a25b3987b8b059b1b7014f0be767f9eb4729c3
Author: hainenber <[email protected]>
AuthorDate: Fri Feb 20 08:59:25 2026 +0700
chore(lint): remove unused `eslint-plugin-react-hooks`
Signed-off-by: hainenber <[email protected]>
---
superset-frontend/.eslintrc.js | 2 --
superset-frontend/package-lock.json | 61 -------------------------------------
superset-frontend/package.json | 1 -
3 files changed, 64 deletions(-)
diff --git a/superset-frontend/.eslintrc.js b/superset-frontend/.eslintrc.js
index 18dc5a37e22..709673fd553 100644
--- a/superset-frontend/.eslintrc.js
+++ b/superset-frontend/.eslintrc.js
@@ -79,7 +79,6 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:import/recommended',
- 'plugin:react-hooks/recommended',
'plugin:react-prefer-function-component/recommended',
'plugin:storybook/recommended',
'prettier',
@@ -124,7 +123,6 @@ module.exports = {
},
plugins: [
'import',
- 'react-hooks',
'file-progress',
'lodash',
'theme-colors',
diff --git a/superset-frontend/package-lock.json
b/superset-frontend/package-lock.json
index b1a578f2b8b..51cc8382710 100644
--- a/superset-frontend/package-lock.json
+++ b/superset-frontend/package-lock.json
@@ -242,7 +242,6 @@
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-prettier": "^5.5.5",
- "eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-prefer-function-component": "^5.0.0",
"eslint-plugin-react-you-might-not-need-an-effect": "^0.9.1",
"eslint-plugin-storybook": "^0.8.0",
@@ -24793,49 +24792,6 @@
"url": "https://opencollective.com/synckit"
}
},
- "node_modules/eslint-plugin-react-hooks": {
- "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": ">=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"
- }
- },
- "node_modules/eslint-plugin-react-hooks/node_modules/zod": {
- "version": "4.1.12",
- "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.12.tgz",
- "integrity":
"sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/colinhacks"
- }
- },
-
"node_modules/eslint-plugin-react-hooks/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"
- }
- },
"node_modules/eslint-plugin-react-prefer-function-component": {
"version": "5.0.0",
"resolved":
"https://registry.npmjs.org/eslint-plugin-react-prefer-function-component/-/eslint-plugin-react-prefer-function-component-5.0.0.tgz",
@@ -28562,23 +28518,6 @@
"he": "bin/he"
}
},
- "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/highlight.js": {
"version": "10.7.3",
"resolved":
"https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz",
diff --git a/superset-frontend/package.json b/superset-frontend/package.json
index f27b6fe80f9..01e941f3336 100644
--- a/superset-frontend/package.json
+++ b/superset-frontend/package.json
@@ -323,7 +323,6 @@
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-prettier": "^5.5.5",
- "eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-prefer-function-component": "^5.0.0",
"eslint-plugin-react-you-might-not-need-an-effect": "^0.9.1",
"eslint-plugin-storybook": "^0.8.0",