-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ResponseOps] consistent-type-imports linting rule for RO packages/plugins - PR1 #212348
base: main
Are you sure you want to change the base?
[ResponseOps] consistent-type-imports linting rule for RO packages/plugins - PR1 #212348
Conversation
…r response-ops package
…onoleata1904/kibana into type-imports-eslint-ro
Pinging @elastic/response-ops (Team:ResponseOps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice rule to enable, I had no idea we did this in so many places. 👍
Related to #212221 |
I think it is worth addressing this globally for the whole repo, I'll create an issue for it. If we really want to add this ESLint constraint, best strategy, as Matt suggests, would be a divide & conquer approach:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super happy that we're enabling this rule, it'll help a lot. Thank you Georgiana! 🤗
LGTM, just left a comment where a type import is missing
import { FieldsMetadataPublicStart } from '@kbn/fields-metadata-plugin/public'; | ||
import { | ||
import type { ActionConnector, ActionTypeRegistryContract } from '@kbn/alerts-ui-shared'; | ||
import type { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the FieldsMetadataPublicStart
type import was lost here 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it was lost at merge. Fixed it, thanks! :)
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
|
Enabled @typescript-eslint/consistent-type-imports eslint rule for ResponseOps packages and plugins:
import type
syntaxfixed eslint errors for:
src/platform/packages/shared/response-ops
x-pack/platform/plugins/shared/alerting