Skip to content
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

Cleanup: add no-unused-vars and imports eslint rules and fix the codebase #790

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

yannikmesserli
Copy link
Contributor

No issue.

Description

This PR adds the no-unused-vars and imports eslint rules. Then, I ran eslint --fix and finally fixed the remaining issue that couldn't be automatically fixed

Changes

  • Added a new npm package unused-imports which is better than the default rules
  • Enabled the rules in .eslintrc.js with ["error", { "ignoreRestSiblings": true }]
  • Ran eslint --fix
  • Fixed the remaining issues

Screenshots

n/a

Unit tests

They should still all pass

Functional tests

It's probably worth testing quickly the entire app, to see that nothing have been broken.

@yannikmesserli yannikmesserli requested a review from a team as a code owner February 14, 2024 15:01
@yannikmesserli yannikmesserli requested review from kimstacy and removed request for a team February 14, 2024 15:01
@geakstr geakstr requested a review from yandzee February 19, 2024 06:39
yandzee

This comment was marked as off-topic.

@yannikmesserli

This comment was marked as off-topic.

@yannikmesserli yannikmesserli requested review from geakstr and yandzee and removed request for kimstacy and yandzee January 20, 2025 08:20
Signed-off-by: Yannik Messerli <yannik.messerli@gmail.com>
@yannikmesserli yannikmesserli dismissed yandzee’s stale review January 20, 2025 10:12

Renat does not work on the project anymore

@yannikmesserli yannikmesserli merged commit bc94632 into cilium:master Jan 20, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants