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

Adjust the brace-style ESLint rule to disallow single lines (and also enable no-iterator) #8025

Merged
merged 1 commit into from Feb 4, 2017
Merged

Adjust the brace-style ESLint rule to disallow single lines (and also enable no-iterator) #8025

merged 1 commit into from Feb 4, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

See http://eslint.org/docs/rules/brace-style.
Having the opening/closing braces on the same line can often make the code slightly more difficult to read, in particular for if/else if statements, compared to using new lines.

This patch also, for consistency with mozilla-central, enables the no-iterator rule. Note that this rule didn't require a single code change.

…so enable `no-iterator`)

See http://eslint.org/docs/rules/brace-style.
Having the opening/closing braces on the same line can often make the code slightly more difficult to read, in particular for `if`/`else if` statements, compared to using new lines.

This patch also, for consistency with `mozilla-central`, enables the [`no-iterator`](http://eslint.org/docs/rules/no-iterator) rule. Note that this rule didn't require a single code change.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Feb 4, 2017

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/74fd5c95ee4d463/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 4, 2017

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/74fd5c95ee4d463/output.txt

Total script time: 2.25 mins

Published

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Feb 4, 2017

From: Bot.io (Linux)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Feb 4, 2017

From: Bot.io (Windows)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented Feb 4, 2017

From: Bot.io (Windows)


Success

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

Total script time: 22.26 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Feb 4, 2017

From: Bot.io (Linux)


Success

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

Total script time: 26.24 mins

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

@timvandermeij timvandermeij merged commit cae8d97 into mozilla:master Feb 4, 2017
@timvandermeij
Copy link
Contributor

Nice work!

@Snuffleupagus Snuffleupagus deleted the eslint_brace-style_allowSingleLine_false branch February 4, 2017 22:00
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…_allowSingleLine_false

Adjust the `brace-style` ESLint rule to disallow single lines (and also enable `no-iterator`)
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.

None yet

3 participants