-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor: make all event emitters readonly #17666
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
Conversation
af639f0
to
dc43727
Compare
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 feels redundant IMO. It makes us write more code while enforcing a rule that hasn't been an issue until now.
Hmm... I thought it was an issue since #9582 was created explicitly to do this. The problem is that in the PR abovementioned I didn't add a rule to keep it consistent. That said, should I close this then? |
I think that @jelbourn can say whether that issue is still relevant since it's very old. |
I do think we should still do this. It may be a bit of extra effort, but it is more correct. |
5b762a5
to
6907f5b
Compare
c0ace39
to
07bbceb
Compare
e771d6b
to
d06bec6
Compare
d06bec6
to
f1acb78
Compare
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
@mmalerba, could you please suggest a commit message to make lint happy? :) |
You have to add a scope to it, e.g. |
@crisbeto Thanks for the link! I looked at it and I couldn't find a suitable one, as the changes are being applied to several places at the same time. |
Yeah our commit message format doesn't work well for changes like this. You can just pick one, material/core maybe |
@rafaelss95 please rebase/fixup message when you get the chance |
c1c6eeb
to
3be6170
Compare
3be6170
to
46aa4bb
Compare
46aa4bb
to
5d4545a
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Basically the same idea of PR #9586, which fixed #9582, but unfortunately didn't add a TSLint rule to keep these changes consistent.
Now, I'm adding
Codelyzer
'sprefer-output-readonly
rule to thetslint.json
:).