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 ignoreAtRules to property-no-unknown #4965

Merged
merged 6 commits into from Nov 3, 2020

Conversation

Zacharias3690
Copy link
Contributor

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

Closes #4928

Is there anything in the PR that needs further explanation?

No, it's self explanatory

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I think it's almost good. 👍
But I've left some comments, so please confirm them.

lib/rules/property-no-unknown/README.md Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/README.md Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/README.md Outdated Show resolved Hide resolved
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

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

Thank you for the quick fix. LGTM! 👍

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.

@Zacharias3690 Thanks for making a start on this. I've requested some changes, including a substantial one to how this option should work.

lib/rules/property-no-unknown/README.md Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/README.md Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/index.js Outdated Show resolved Hide resolved
@jeddy3 jeddy3 changed the title feat: Add ignoreAtRules to property-no-unknown Add ignoreAtRules to property-no-unknown Oct 11, 2020
@Zacharias3690
Copy link
Contributor Author

Sorry to be a bit of a bother, but would it be possible to add hacktoberfest-accepted label to this MR? I'd like it to be accepted in time, and am worried about how long the review process may take.

lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
@hudochenkov
Copy link
Member

@jeddy3 is it good to go?

@Zacharias3690 I've added the label :)

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.

@Zacharias3690 Thanks for making the changes.

Just a couple of minor nitpicks (made as suggestions so they're easy to commit), then I think we're good!

  • whitespace after the at-rule name as more common to see it like that, even though without a space is valid and parses correctly
  • using not-... rather than underscores in names, to be consistent with the tests in other rules

(My bad for not including the space after the at-rule name in the original request).

lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/__tests__/index.js Outdated Show resolved Hide resolved
lib/rules/property-no-unknown/README.md Outdated Show resolved Hide resolved
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.

Thanks for making the changes. LGTM.

@jeddy3 jeddy3 merged commit 785b59d into stylelint:master Nov 3, 2020
m-allanson added a commit that referenced this pull request Nov 5, 2020
* master: (46 commits)
  Update CHANGELOG.md
  Add ignoreAtRules to property-no-unknown (#4965)
  Bump eslint from 7.11.0 to 7.12.1 (#5017)
  Bump typescript from 4.0.3 to 4.0.5 (#5016)
  Bump lint-staged from 10.4.0 to 10.5.1 (#5014)
  Bump remark-cli from 8.0.1 to 9.0.0 (#4996)
  Bump jest-circus from 26.5.3 to 26.6.1 (#5009)
  Bump got from 11.7.0 to 11.8.0 (#5007)
  Bump jest from 26.5.3 to 26.6.1 (#5008)
  Refactor formatter tests (#4988)
  Fix `isStandardSyntaxDeclaration.test.js` that use callbacks (#4972)
  Update CHANGELOG.md
  Add "comment-pattern" rule (#4962)
  Update CHANGELOG.md
  Show the pattern in "*-pattern" rule messages (#4975)
  Enable ESLint `no-shadow` and add disable comments (#4986)
  Report disables in the same manner as lints (#4973)
  Update dependencies (#4982)
  Fix some tests that use callbacks (#4970)
  Use own vendor utility instead of PostCSS (#4942) (#4963)
  ...
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 ignoreAtRules: [] to property-no-unknown
4 participants