Skip to content

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