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

Introduce unicode-bom rule #4225

Merged
merged 1 commit into from Sep 4, 2019
Merged

Introduce unicode-bom rule #4225

merged 1 commit into from Sep 4, 2019

Conversation

vkrol
Copy link
Member

@vkrol vkrol commented Aug 24, 2019

Which issue, if any, is this issue related to?

Closes #3792.

Is there anything in the PR that needs further explanation?

No, it's self explanatory.

I think it's better to add the auto-fix functionality separately, because first we need to fix the bug in stylelint that causes BOM to be cut out in any auto-fix run (#4228).

@vkrol vkrol marked this pull request as ready for review August 24, 2019 11:38
Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Good job!

lib/rules/unicode-bom/__tests__/index.js Show resolved Hide resolved
@vkrol vkrol mentioned this pull request Aug 28, 2019
@alexander-akait
Copy link
Member

/cc @stylelint/core somebody can review?

Copy link
Member

@hudochenkov hudochenkov left a comment

Choose a reason for hiding this comment

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

Looks good!

Only few small changes required.

docs/user-guide/example-config.md Outdated Show resolved Hide resolved
lib/rules/unicode-bom/index.js Show resolved Hide resolved
lib/rules/unicode-bom/index.js Outdated Show resolved Hide resolved
@vkrol
Copy link
Member Author

vkrol commented Aug 30, 2019

@hudochenkov thanks! Done.

Copy link
Member

@hudochenkov hudochenkov left a comment

Choose a reason for hiding this comment

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

Good job!

Copy link
Member

@ntwb ntwb left a comment

Choose a reason for hiding this comment

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

A minor nit on the verbiage for singular examples, happy to merge as is.

Ideally we update all instances of this where a single example is used

lib/rules/unicode-bom/README.md Outdated Show resolved Hide resolved
lib/rules/unicode-bom/README.md Outdated Show resolved Hide resolved
lib/rules/unicode-bom/README.md Outdated Show resolved Hide resolved
lib/rules/unicode-bom/README.md Outdated Show resolved Hide resolved
@vkrol
Copy link
Member Author

vkrol commented Aug 31, 2019

@ntwb thanks, fixed.

Ideally we update all instances of this where a single example is used

I can do this for all the rules in a separate PR.

@hudochenkov hudochenkov merged commit 92f4146 into stylelint:master Sep 4, 2019
@hudochenkov
Copy link
Member

  • Added: unicode-bom rule (#4225).

@vkrol vkrol deleted the unicode-bom branch September 4, 2019 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add unicode-bom rule
4 participants