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

[Enterprise Search] Enable unused var linting #127305

Merged

Conversation

sphilipse
Copy link
Member

@sphilipse sphilipse commented Mar 9, 2022

Summary

This enables linting unused variables in the Enterprise Search plugin. TypeScript currently breaks on all unused variables in the Enterprise Search plugin, but the (pre-commit) linter does not filter those out. That means it's common to accidentally miss an unused variable, wait for CI, and then have to add (multiple) commits to remove unused variables. Adding this as a linting rule will help avoid unnecessary CI runs and developer waiting times.

@sphilipse sphilipse added backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes v8.2.0 labels Mar 9, 2022
@sphilipse sphilipse requested review from cee-chen and a team March 9, 2022 16:43
Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My review was requested!?!? :trollface:

@sphilipse sphilipse enabled auto-merge (squash) March 9, 2022 16:48
@sphilipse
Copy link
Member Author

My review was requested!?!? :trollface:

GitHub suggested you as a reviewer! And I wanted someone outside the ent-search team to look at these changes in case I accidentally broke all of Kibana's linting or something haha

@cee-chen
Copy link
Contributor

cee-chen commented Mar 9, 2022

Hahaha! That's actually more generous than my interpretation which was that you misclicked 😂 Rules in that blob only apply to files in the Enterprise Search plugin dir, so you're all good!

@sphilipse sphilipse merged commit bfc7de9 into elastic:main Mar 9, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 1.4MB 1.4MB -29.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants