Skip to content

rewrite-url docs: Use languageOptions in stylelint config #1587

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 2 commits into from
Mar 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions plugins/postcss-rewrite-url/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,21 @@ Stylelint is able to check for unknown property values.
Setting the correct configuration for this rule makes it possible to check even non-standard syntax.

```js
'declaration-property-value-no-unknown': [
true,
{
"typesSyntax": {
"url": "| rewrite-url( <string> <url-modifier>* )"
}
},
],
'function-no-unknown': [
"languageOptions": {
"syntax": {
"types": {
"url": "| rewrite-url( <string> <url-modifier>* )"
}
}
},
"rules": {
"function-no-unknown": [
true,
{
"ignoreFunctions": ["rewrite-url"]
}
],
]
}
```

[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
Expand Down
21 changes: 11 additions & 10 deletions plugins/postcss-rewrite-url/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,21 @@ Stylelint is able to check for unknown property values.
Setting the correct configuration for this rule makes it possible to check even non-standard syntax.

```js
'declaration-property-value-no-unknown': [
true,
{
"typesSyntax": {
"url": "| rewrite-url( <string> <url-modifier>* )"
}
},
],
'function-no-unknown': [
"languageOptions": {
"syntax": {
"types": {
"url": "| rewrite-url( <string> <url-modifier>* )"
}
}
},
"rules": {
"function-no-unknown": [
true,
{
"ignoreFunctions": ["rewrite-url"]
}
],
]
}
```

<linkList>