Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to disable no-unused-vars errors when building? (Disabling it in ESLint and tsconfig.json does nothing) #17067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
max-woolf opened this issue Apr 30, 2025 · 1 comment

Comments

@max-woolf
Copy link

Title.

What I have tried:

tsconfig.json
"compilerOptions": { "noUnusedLocals": false, "noUnusedParameters": false, }

eslint.config.json
"no-unused-vars": [ "error", { caughtErrors: "none" } ], "@typescript-eslint/no-unused-vars": ["off"]

I'm sorry if there's already a solution around, I've searched a lot and nothing worked.

@max-woolf
Copy link
Author

I tried

.eslintrc.js

module.exports = {
	rules: {
    	"no-unused-vars": "off",
    	"@typescript-eslint/no-unused-vars": "off",
  	}

}

and

package.json

...
"rules": {
    "no-unused-vars": "off",
    "@typescript-eslint/no-unused-vars": "off"
  }
...

Still fails npm run build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant