Skip to content
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 "use strict" and lint rule #1416

Merged
merged 4 commits into from
Jun 25, 2020
Merged

Add "use strict" and lint rule #1416

merged 4 commits into from
Jun 25, 2020

Conversation

smhigley
Copy link
Contributor

@smhigley smhigley commented Jun 2, 2020

Resolves #1379

@smhigley smhigley requested a review from zcorpan June 2, 2020 07:25
@mcking65 mcking65 requested review from spectranaut and removed request for zcorpan June 25, 2020 10:27
@spectranaut spectranaut force-pushed the 1379-strict-mode branch 2 times, most recently from d1a5fd4 to fe4e848 Compare June 25, 2020 18:29
Copy link
Contributor

@spectranaut spectranaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests were failing because not all of the "undeclared" variables were fixed in PR #1370. They were caught by the regression tests -- nice to see our tests catching bugs! :)

To look for more undeclared vars (perhaps in a code path not covered by the regression tests) I added "no-undef" to the linter -- but it will be a lot of work to get this to pass because of all the global variables in the example javascript code. I opened a PR to start that work: #1429

@mcking65 mcking65 merged commit 2ddb55d into master Jun 25, 2020
@mcking65 mcking65 deleted the 1379-strict-mode branch June 25, 2020 21:04
michael-n-cooper pushed a commit that referenced this pull request Jun 25, 2020
All Examples: Add "use strict" and lint rule (pull #1416)

* add strict mode and fix all errors
* fix linting errors
* Fix menubar
* Declare undeclared variables in tabs

Co-authored-by: Valerie Young <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "use strict" to all scripts in examples?
4 participants