-
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
Update @typescript-eslint to ensure compatibility with TypeScript v3.9 #74091
Conversation
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.
Platform changes LGTM
adds eslint-comments plugin to detect unused eslint-disable, eslint-enable instructions
💯 love it
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.
ES UI changes LGTM
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.
Security changes LGTM
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.
ML/Transform changes LGTM.
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.
Reviewed code change of Kibana App only, LGTM
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.
Code LGTM, KibanaApp code owner review, since there were just comments added and removed didn't test
x-pack/plugins/apm/server/lib/transaction_groups/get_error_rate.ts
Outdated
Show resolved
Hide resolved
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.
LGTM, left suggestions for one or two possible improvements.
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.
LGTM , uptime changes !!
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.
Alerting code LGTM
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.
Canvas changes look good to me
💚 Build SucceededBuild metricsasync chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
elastic#74091) * bump @typescript-eslint deps * update rules * fix errors in pacakges * fix src/ * fix x-pack * fix test * fix typings * fix examples * allow _ as prefix and suffix * roll back prefix and suffix changes * add eslint-plugin-eslint-comments * report unused rules * remove unused eslint comments from tests * remove unused eslint comments 2nd pass * remove unused eslint comments from src/ * remove unused comments in x-pack * use no-script-url and no-unsanitized/property for ts files * remove unused eslint comments * eui/href-or-on-click removed when not complained * no import/* rules for ts files * cleanup * remove the unused eslint-disable * rollback unnecessary changes * allow underscore prefix & sufix in type name * update docs * fix type error in enterprise search plugin mocks * rename platform hack __coreProvider --> _coreProvider * rollback space removal in src/core/public/legacy/legacy_service.test.ts * fix naming convention in APM # Conflicts: # src/legacy/ui/public/new_platform/new_platform.ts # x-pack/plugins/index_management/public/application/components/mappings_editor/mappings_editor.tsx
…pt v3.9 (#74091) (#74384) * Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091) * bump @typescript-eslint deps * update rules * fix errors in pacakges * fix src/ * fix x-pack * fix test * fix typings * fix examples * allow _ as prefix and suffix * roll back prefix and suffix changes * add eslint-plugin-eslint-comments * report unused rules * remove unused eslint comments from tests * remove unused eslint comments 2nd pass * remove unused eslint comments from src/ * remove unused comments in x-pack * use no-script-url and no-unsanitized/property for ts files * remove unused eslint comments * eui/href-or-on-click removed when not complained * no import/* rules for ts files * cleanup * remove the unused eslint-disable * rollback unnecessary changes * allow underscore prefix & sufix in type name * update docs * fix type error in enterprise search plugin mocks * rename platform hack __coreProvider --> _coreProvider * rollback space removal in src/core/public/legacy/legacy_service.test.ts * fix naming convention in APM # Conflicts: # src/legacy/ui/public/new_platform/new_platform.ts # x-pack/plugins/index_management/public/application/components/mappings_editor/mappings_editor.tsx * remove unnecessary comment
Summary
Eslint stopped working at #73924 so I had to start working on the fix.
This PR update
@typescript-eslint
version to make it compatible with TypeScriptv3.9
. Unfortunately, we still have to update@typescript-eslint
tov4
(still in alpha) to ensure full compatibility with TypeScriptv4
, I'd rather make it in a separate PR.@typescript-eslint
3.0 release notes: https://github.com/typescript-eslint/typescript-eslint/releases/tag/v3.0.0This PR:
@typescript-eslint
@typescript-eslint/camelcase
@typescript-eslint/class-name-casing
in favour of @typescript-eslint/naming-conventioneslint-comments
plugin to detect unusedeslint-disable
,eslint-enable
instructionseslint-disable
,eslint-enable
instructions. most of them were added before plugins started rewriting eslint rules on per plugin basisno-script-url
andno-unsanitized/property
rules for typescript files to fixno unused eslint-disable
ruleKnown problems
@typescript-eslint/naming-convention
doesn't support multiple underscores as a valid prefix/suffix. I filtered out such problem places until the problem is fixed in [naming-convention] Allow multiple underscore typescript-eslint/typescript-eslint#1712@typescript-eslint/naming-convention
stated reporting CSS classes name format (for example,componentName__element--modifier
,componentName__element__element
) For now I muted such errors. We might need to create a naming convention to filter them out.*.js
files only and it's time we aligned them with*.ts
files linting rules in a followup @elastic/kibana-operations I can create an issue, who is the right owner for it?29m
to33m
.For maintainers