You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/02/11 08:38:01 UTC
(superset) 01/01: chore(lint): upgrade no-unused-vars rule from warn to error
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch fix/no-unused-vars-error
in repository https://gitbox.apache.org/repos/asf/superset.git
commit b3f15eac8586b405a295dd600d238994a879d94a
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Wed Feb 11 00:37:41 2026 -0800
chore(lint): upgrade no-unused-vars rule from warn to error
Change @typescript-eslint/no-unused-vars from 'warn' to 'error' in both
eslintrc.js and oxlint.json to enforce stricter code quality.
Co-Authored-By: Claude Opus 4.5 <no...@anthropic.com>
---
superset-frontend/.eslintrc.js | 2 +-
superset-frontend/oxlint.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/.eslintrc.js b/superset-frontend/.eslintrc.js
index 5f4b50ff9d2..da960a644d2 100644
--- a/superset-frontend/.eslintrc.js
+++ b/superset-frontend/.eslintrc.js
@@ -354,7 +354,7 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
- '@typescript-eslint/no-unused-vars': 'warn',
+ '@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
// Disable base rules that conflict with TS versions
diff --git a/superset-frontend/oxlint.json b/superset-frontend/oxlint.json
index 81b7523dce5..d890acc9142 100644
--- a/superset-frontend/oxlint.json
+++ b/superset-frontend/oxlint.json
@@ -235,7 +235,7 @@
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
- "@typescript-eslint/no-unused-vars": "warn",
+ "@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/naming-convention": [
"error",