Skip to content

Don't highlight formatted values with --no-color #1334

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

Merged
merged 3 commits into from
Apr 3, 2017

Conversation

novemberborn
Copy link
Member

Fixes #843 (#843 (comment)). Values shouldn't be highlighted during formatting if colors are disabled.

Note that this only works when colors are disabled explicitly. @sindresorhus perhaps we should change the default value of the color option if we can detect colors are not supported?

Fixes #843
(#843 (comment)). Values
shouldn't be highlighted during formatting if colors are disabled.
@sindresorhus
Copy link
Member

perhaps we should change the default value of the color option if we can detect colors are not supported?

👍

@novemberborn
Copy link
Member Author

@sindresorhus see new commits 😃

@novemberborn novemberborn merged commit 146c3e2 into master Apr 3, 2017
@novemberborn novemberborn deleted the no-color-disables-formatting-highlights branch April 3, 2017 13:20
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.

2 participants