Skip to content

Commit dd7c40e

Browse files
ehoogeveen-medwebEmanuel Hoogeveenromainmenke
authored
rewrite-url docs: Use languageOptions in stylelint config (#1587)
Co-authored-by: Emanuel Hoogeveen <emanuel@medweb.nl> Co-authored-by: Romain Menke <11521496+romainmenke@users.noreply.github.com>
1 parent a3a298b commit dd7c40e

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

plugins/postcss-rewrite-url/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,20 +142,21 @@ Stylelint is able to check for unknown property values.
142142
Setting the correct configuration for this rule makes it possible to check even non-standard syntax.
143143

144144
```js
145-
'declaration-property-value-no-unknown': [
146-
true,
147-
{
148-
"typesSyntax": {
149-
"url": "| rewrite-url( <string> <url-modifier>* )"
150-
}
151-
},
152-
],
153-
'function-no-unknown': [
145+
"languageOptions": {
146+
"syntax": {
147+
"types": {
148+
"url": "| rewrite-url( <string> <url-modifier>* )"
149+
}
150+
}
151+
},
152+
"rules": {
153+
"function-no-unknown": [
154154
true,
155155
{
156156
"ignoreFunctions": ["rewrite-url"]
157157
}
158-
],
158+
]
159+
}
159160
```
160161

161162
[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test

plugins/postcss-rewrite-url/docs/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,21 @@ Stylelint is able to check for unknown property values.
109109
Setting the correct configuration for this rule makes it possible to check even non-standard syntax.
110110

111111
```js
112-
'declaration-property-value-no-unknown': [
113-
true,
114-
{
115-
"typesSyntax": {
116-
"url": "| rewrite-url( <string> <url-modifier>* )"
117-
}
118-
},
119-
],
120-
'function-no-unknown': [
112+
"languageOptions": {
113+
"syntax": {
114+
"types": {
115+
"url": "| rewrite-url( <string> <url-modifier>* )"
116+
}
117+
}
118+
},
119+
"rules": {
120+
"function-no-unknown": [
121121
true,
122122
{
123123
"ignoreFunctions": ["rewrite-url"]
124124
}
125-
],
125+
]
126+
}
126127
```
127128

128129
<linkList>

0 commit comments

Comments
 (0)