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

.eslintrc.js: Use trailingComma: "es5" with Prettier #3492

Closed

Conversation

josephfrazier
Copy link
Collaborator

This addresses #3469
as outlined in #3469 (comment)

There are two commits at the moment, the first is the interesting change to
.eslintrc.js, and the second is the resulting formatting changes.

This addresses prettier#3469
as outlined in prettier#3469 (comment)

The corresponding formatting changes will be done separately for
clarity's sake.
.eslintrc.js Outdated
@@ -22,15 +22,15 @@ module.exports = {
"one-var": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prettier/prettier": "error",
"prettier/prettier": ["error", { trailingComma: "es5" }],
Copy link
Member

Choose a reason for hiding this comment

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

Please don't put the setting here, it breaks Prettier editor integrations that rely on Prettier's config file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, I didn't consider that. I had originally used .prettierrc, but the version of eslint-plugin-prettier we had didn't take it into account, so I had to upgrade that first. Fixed in ed0b21f.

@azz
Copy link
Member

azz commented Dec 16, 2017

Let's discuss changing the default value in #3503

@azz azz closed this Dec 16, 2017
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants