[eslint] prevent using constructor property params in initializers#119130
Conversation
|
Pinging @elastic/kibana-operations (Team:Operations) |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
To update your PR or re-run it, just comment with: |
azasypkin
left a comment
There was a problem hiding this comment.
Security plugin changes LGTM, thanks!
mattkime
left a comment
There was a problem hiding this comment.
app services changes lgtm
dmlemeshko
left a comment
There was a problem hiding this comment.
Kibana QA changes look good
💔 Backport failed
Successful backport PRs will be merged automatically after passing CI. To backport manually run: |
…lastic#119130) # Conflicts: # packages/kbn-cli-dev-mode/src/log.ts # src/plugins/presentation_util/public/components/controls/control_group/embeddable/control_group_container_factory.ts
In order to upgrade TS we need to stop referencing properties initialized by constructor arguments. This change is unfortunate but no longer supported by TS and this ESLint rule is designed to prevent us from adding more occurrences of this until we can get the TS upgrade complete.
Also fixes all existing violations manually by moving the initialization into the constructor.