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

Change trailingComma option for Prettier to all #586

Merged
merged 2 commits into from
Aug 8, 2021

Conversation

fisker
Copy link
Contributor

@fisker fisker commented Aug 8, 2021

When running xo --prettier, the trailingComma is controlled by Prettier, the comma-dangle rule will be disabled,

The trailingComma: 'all' behave the same as the comma-dangle option in eslint-config-xo.

If user want different behaviour, instead of changing comma-dangle, user should override Prettier's option.

Fixes #579

@sindresorhus sindresorhus merged commit 68cb5ab into xojs:main Aug 8, 2021
@fisker fisker deleted the prettier-trailing-comma branch August 8, 2021 08:45
devinrhode2 pushed a commit to devinrhode2/xo that referenced this pull request Oct 15, 2021
devinrhode2 pushed a commit to devinrhode2/xo that referenced this pull request Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

comma-dangle disabled with --prettier
2 participants