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 prefer-const rule in the web/ directory #11450

Merged
merged 2 commits into from
Dec 27, 2019

Conversation

Snuffleupagus
Copy link
Collaborator

  • Enable the ESLint prefer-const rule in the web/ directory

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

    Note that this patch is generated automatically, by using the ESLint --fix argument, and will thus require some additional clean-up (which is done separately).

  • Fix remaining linting errors, from enabling the prefer-const ESLint rule in the web/ directory

    This covers the handful of cases that the --fix command couldn't deal with, and the changes aren't just fixing the linting errors but attempt to slightly improve the relevant code.

@timvandermeij
Copy link
Contributor

I like the idea of doing this all at once, both to reduce code churn and to simply be done with it quickly :-)

I'm afraid the previous merge required a rebase here, but hopefully it's not too difficult given that ESLint's --fix flag was used to generate this.

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

Note that this patch is generated automatically, by using the ESLint `--fix` argument, and will thus require some additional clean-up (which is done separately).
… rule in the `web/` directory

This covers the handful of cases that the `--fix` command couldn't deal with, and the changes aren't just fixing the linting errors but attempt to slightly improve the relevant code.
@Snuffleupagus Snuffleupagus force-pushed the eslint-web-prefer-const branch from 0cf4c18 to d9a5d50 Compare December 27, 2019 00:06
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/a6024488a9c877c/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/a6024488a9c877c/output.txt

Total script time: 1.69 mins

Published

@timvandermeij timvandermeij merged commit 47ab4b8 into mozilla:master Dec 27, 2019
@timvandermeij
Copy link
Contributor

Nice work; glad that this conversion is done for the web folder now!

@Snuffleupagus Snuffleupagus deleted the eslint-web-prefer-const branch December 27, 2019 11:16
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