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

[Firefox addon] Enforce double quotes, using ESLint, to avoid linting errors in mozilla-central (issue 7957) #7991

Merged
merged 1 commit into from
Jan 27, 2017
Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Jan 23, 2017

Given that this patch causes a lot of churn in the addon code, I wouldn't really mind if we ultimately decide against doing this and just add a rule exception in mozilla-central instead.[1]

Edit: Another option, besides taking this patch or adding an ESLint exception in mozilla-central, could perhaps be to run all of the addon specific files through the new preprocessor instead and have it convert the quotes for us.
However, using the preprocessor could potentially hurt readability of those files (depending on what esprima/escodegen parameters are used), and I'm not sure how important it is that these files are easily readable in mozilla-central.

Re: #7957 (comment).


[1] Note that I used the ESLint --fix option, hence writing this commit message actually took longer time than the creation of the patch :-)

… errors in mozilla-central (issue 7957)

Given that this patch causes a lot of churn in the addon code, I wouldn't really mind if we ultimately decide against doing this and just add a rule exception in mozilla-central instead.[1]

---
[1] Note that I used the ESLint `--fix` option, hence writing this commit message actually took longer time than the creation of the patch :-)
@Snuffleupagus
Copy link
Collaborator Author

Snuffleupagus commented Jan 25, 2017

@yurydelendik Based on #7957 (comment), we need to do something about the quotes in order to actually address the first point of #7957 (comment); so what do you think we should do here?

Copy link
Contributor

@yurydelendik yurydelendik left a comment

Choose a reason for hiding this comment

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

sgtm

@Snuffleupagus Snuffleupagus merged commit 8823f6f into mozilla:master Jan 27, 2017
@Snuffleupagus Snuffleupagus deleted the addon-eslint-quotes-double branch January 27, 2017 16:55
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…s-double

[Firefox addon] Enforce double quotes, using ESLint, to avoid linting errors in mozilla-central (issue 7957)
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.

2 participants