rewrite-url docs: Use languageOptions in stylelint config #1587
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now that Stylelint 16.17.0 is out with support for
declaration-property-value-no-unknown
inlanguageOptions
, the suggested config forpostcss-rewrite-url
can be generalized. This commit makes the following changes:languageOptions
instead of overridingdeclaration-property-value-no-unknown
rule configPreview: https://github.com/ehoogeveen-medweb/postcss-plugins/blob/rewrite-url-update-docs/plugins/postcss-rewrite-url/README.md#stylelint
I considered adding a fallback for Stylelint <16.17.0 but given that it's a minor version bump I expect people will update (and if they're looking at
postcss-rewrite-url
for the first time, they're probably in a good position to updatestylelint
anyway).Using the JSON style for the config is a choice I don't feel strongly about - I'm still using it that way in my own projects, but here I just kept it because it seemed consistent with the quoted keys (although the markdown block is technically using language
js
).