-
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
[Cases] Add eslintrule to enforce display names and ignore existing problems #123692
[Cases] Add eslintrule to enforce display names and ignore existing problems #123692
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
@@ -1070,6 +1070,12 @@ module.exports = { | |||
'@typescript-eslint/no-duplicate-imports': ['error'], | |||
}, | |||
}, | |||
{ | |||
files: ['x-pack/plugins/cases/public/**/*.{js,mjs,ts,tsx}'], |
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.
How do you feel about ignoring test files? I think we could add this: https://eslint.org/docs/user-guide/configuring/ignoring-code#ignorepatterns-in-config-files
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.
good idea.
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.
@jonathan-buttner I excluded test files and removed the changes from them.
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.
Thanks for excluding the test files! Looks good.
@elasticmachine merge upstream0 |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
This PR is a follow up to #123460
in short:
react/display-name
withignoreTranspilerName
on all cases plugin files inside the public folderNote: Better to see this PR disabling whitespaces in github. No business logic was changed in this PR, only adding comments and running
eslint --fix
on top which changed indentation.All these eslint ignores were added with https://github.com/amanda-mitchell/suppress-eslint-errors