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

Enable the ESLint no-var rule in the src/display/ folder #12437

Merged
merged 3 commits into from
Oct 3, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

Previously this rule has been enabled in the web/ folder, and in select files in the src/ sub-folders.
Note that a number of the files in the src/display/ folder were already enforcing the no-var rule, and thanks to Prettier the necessary re-writing will be (mostly) handled automatically.

Please find additional details about the ESLint rule at https://eslint.org/docs/rules/no-var

Previously this rule has been enabled in the `web/` folder, and in select files in the `src/` sub-folders.
Note that a number of the files in the `src/display/` folder were already enforcing the `no-var` rule, and thanks to Prettier the necessary re-writing will be (mostly) handled automatically.

Please find additional details about the ESLint rule at https://eslint.org/docs/rules/no-var
This was done automatically, using `gulp lint --fix`.
While most of necessary changes were fixed automatically, see the previous patch, there's a number of cases that needed to be fixed manually.
@Snuffleupagus
Copy link
Collaborator Author

/botio lint

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Windows)


Received

Command cmd_lint from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/6f8f05240379b94/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Linux m4)


Received

Command cmd_lint from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/689c7ff42bb78ea/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/689c7ff42bb78ea/output.txt

Total script time: 2.25 mins

  • Lint: Passed

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/6f8f05240379b94/output.txt

Total script time: 2.88 mins

  • Lint: Passed

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/7a238723cb1369b/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/6d1c66c1fd37f61/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/6d1c66c1fd37f61/output.txt

Total script time: 27.54 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/6d1c66c1fd37f61/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2020

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/7a238723cb1369b/output.txt

Total script time: 32.20 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/7a238723cb1369b/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit 48e27a1 into mozilla:master Oct 3, 2020
@timvandermeij
Copy link
Contributor

Thank you for doing this!

@Snuffleupagus Snuffleupagus deleted the src-display-no-var branch October 3, 2020 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants