-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add consistent copyright notice + use strict to all JS+TS files #15917
Add consistent copyright notice + use strict to all JS+TS files #15917
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.
Looks good to me, but I'd like someone from Mozilla to review, since this changes copyright notices and there might be considerations I'm not aware of. @Rumyra can you review?
In #12161 (comment), @caugner pointed out that ES modules are implicitly strict (and some quick research confirms this). Should we remove the |
@queengooborg how about removing them after the conversion, or as part of it? |
This pull request has merge conflicts that must be resolved before we can merge this. |
@schalkneethling Would you mind reviewing this PR? |
Funny you should ask 😸 - I just learned about this new "standard"/tool from the Free software foundation https://reuse.software - Not saying we should immediately adopt it here, but surely something to consider. |
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
This PR is a cherry-pick of #5890 that makes the top of our files consistent by performing the following:
#!
lines from all the files (they were added to non-executable files as well and don't help since the files aren't marked executable anyways)'use strict'
to all filesFixes #5879.