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

Add ignoreSelectors: [] to selector-no-vendor-prefix #3748

Merged

Conversation

Bilie
Copy link
Member

@Bilie Bilie commented Oct 28, 2018

Closes #3197

No, it's self explanatory.

@Bilie Bilie requested a review from jeddy3 October 28, 2018 22:00
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

@Bilie Thanks!

I've made a suggestion to use the optionsMatches util, which I think is better suited for these types of conditionals.

@@ -36,6 +49,14 @@ const rule = function(actual) {
parseSelector(selector, result, rule, selectorTree => {
selectorTree.walkPseudos(pseudoNode => {
if (isAutoprefixable.selector(pseudoNode.value)) {
if (
Copy link
Member

Choose a reason for hiding this comment

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

I believe optionsMatches will suffice here, like so.

Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

There's an odd appveyor test failing.


reject: [
{
code: "input:-ms-input-placeholder { color: pink; }",
Copy link
Member

Choose a reason for hiding this comment

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

I think this might need to a pseudo-element to appease appveyor: input::-ms-input-placeholder.

Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

@Bilie Thanks for making the change. It looks like appveyor is happy now.

@jeddy3 jeddy3 mentioned this pull request Nov 6, 2018
4 tasks
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

@Bilie My bad, I mistitled the original issue.

This option should be ignoreSelectors and not ignoreProperties. I've requested the changes as suggestions to make it easier for you.

lib/rules/selector-no-vendor-prefix/README.md Outdated Show resolved Hide resolved
lib/rules/selector-no-vendor-prefix/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/selector-no-vendor-prefix/index.js Outdated Show resolved Hide resolved
lib/rules/selector-no-vendor-prefix/index.js Outdated Show resolved Hide resolved
@jeddy3 jeddy3 changed the title Add ignoreProperties: [] to selector-no-vendor-prefix Add ignoreSelectors: [] to selector-no-vendor-prefix Nov 6, 2018
jeddy3 and others added 4 commits November 10, 2018 10:12
Co-Authored-By: Bilie <bilianavaleva@gmail.com>
Co-Authored-By: Bilie <bilianavaleva@gmail.com>
Co-Authored-By: Bilie <bilianavaleva@gmail.com>
Co-Authored-By: Bilie <bilianavaleva@gmail.com>
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

@Bilie Thanks for making the changes! LGTM.

@ntwb ntwb merged commit ac09f8d into stylelint:master Nov 27, 2018
@ntwb
Copy link
Member

ntwb commented Nov 27, 2018

Changelog 97a538f

Added: ignoreSelectors option to selector-no-vendor-prefix (#3748).

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.

None yet

3 participants