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 object-shorthand ESLint rule in src/shared and src/display #8332

Merged
merged 2 commits into from
Apr 27, 2017
Merged

Enable the object-shorthand ESLint rule in src/shared and src/display #8332

merged 2 commits into from
Apr 27, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Apr 25, 2017

Since we're using Babel, it's now possible for us to use the more compact object notation available in ES6 (see this MDN article).

Please see http://eslint.org/docs/rules/object-shorthand; this is one of the rules mentioned in issue #7957.

Note: I initially created one big patch for this change, see master...Snuffleupagus:eslint-object-shorthand, but after looking at the diff I quickly realized that it was too big and I don't think anyone would want to review that. Hence I've decided to split it up into more manageable chunks instead.

Please see http://eslint.org/docs/rules/object-shorthand.

For the most part, these changes are of the search-and-replace kind, and the previously enabled `no-undef` rule should complement the tests in helping ensure that no stupid errors crept into to the patch.
Please see http://eslint.org/docs/rules/object-shorthand.

For the most part, these changes are of the search-and-replace kind, and the previously enabled `no-undef` rule should complement the tests in helping ensure that no stupid errors crept into to the patch.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/be5c715e478a653/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.215.176.217:8877/e3cff00bdcf0623/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/e3cff00bdcf0623/output.txt

Total script time: 23.59 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Linux)


Failed

Full output at http://107.21.233.14:8877/be5c715e478a653/output.txt

Total script time: 32.17 mins

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

Image differences available at: http://107.21.233.14:8877/be5c715e478a653/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

The test failures above are unrelated to this patch, please see issue #8334.

@timvandermeij timvandermeij merged commit f91d01c into mozilla:master Apr 27, 2017
@timvandermeij
Copy link
Contributor

Thank you for doing this!

@Snuffleupagus Snuffleupagus deleted the eslint_object-shorthand-src-shared-display branch April 27, 2017 15:27
@Snuffleupagus
Copy link
Collaborator Author

Thank you for doing this!

And thank you for reviewing this, and other PRs :-)

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…thand-src-shared-display

Enable the `object-shorthand` ESLint rule in `src/shared` and `src/display`
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