[Security Solution] Add ESLint rules used at Observability#169277
Closed
banderror wants to merge 1 commit intoelastic:mainfrom
Closed
[Security Solution] Add ESLint rules used at Observability#169277banderror wants to merge 1 commit intoelastic:mainfrom
banderror wants to merge 1 commit intoelastic:mainfrom
Conversation
bfcfb1b to
2f1931c
Compare
d567747 to
bdf3bf2
Compare
5e1452c to
0ca47b5
Compare
5511a6c to
6f56881
Compare
2f8c206 to
0ee2618
Compare
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @banderror |
a7f3d55 to
90013e5
Compare
90013e5 to
6629d00
Compare
4ad0e01 to
5c961ef
Compare
01243ce to
76216b5
Compare
f37b763 to
3a8f65c
Compare
17acbc2 to
dfb6376
Compare
299b0bb to
4ce1243
Compare
9332d2c to
0a401ad
Compare
ed68fb8 to
25796f5
Compare
25796f5 to
8708384
Compare
8708384 to
f8df1c1
Compare
4f2595c to
a11a5df
Compare
d0a9c72 to
c000dc6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Over the past couple months, Observability folks have developed some ESLint rules that help them with writing JSX:
@kbn/telemetry/event_generating_elements_should_be_instrumented. An ESLint rule which can auto-add adata-test-subjvalue to event-generating Eui elements (buttons, inputs, etc). The suggested value is based on the location of the file, component name, and Eui component name. ESLint Telemetry Rule #153108@kbn/i18n/strings_should_be_translated_with_i18n,@kbn/i18n/strings_should_be_translated_with_formatted_messageAn ESLint rule which can auto-replace a text string in a component with either ai18n.translateor<FormattedMessage />with a suggestedidbased on the location of the file, component name and parent wrapping element name. Add ESLint rule for Translations #168001They're currently enabled for all Observability and ML apps, they haven't been enabled for Security yet. Perhaps they can be of use to us too.
eslint.mov
telemetry.mov