File tree Expand file tree Collapse file tree 2 files changed +22
-20
lines changed
plugins/postcss-rewrite-url Expand file tree Collapse file tree 2 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -142,20 +142,21 @@ Stylelint is able to check for unknown property values.
142
142
Setting the correct configuration for this rule makes it possible to check even non-standard syntax.
143
143
144
144
``` 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" : [
154
154
true ,
155
155
{
156
156
" ignoreFunctions" : [" rewrite-url" ]
157
157
}
158
- ],
158
+ ]
159
+ }
159
160
```
160
161
161
162
[ cli-url ] : https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
Original file line number Diff line number Diff line change @@ -109,20 +109,21 @@ Stylelint is able to check for unknown property values.
109
109
Setting the correct configuration for this rule makes it possible to check even non-standard syntax.
110
110
111
111
``` 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" : [
121
121
true ,
122
122
{
123
123
" ignoreFunctions" : [" rewrite-url" ]
124
124
}
125
- ],
125
+ ]
126
+ }
126
127
```
127
128
128
129
<linkList >
You can’t perform that action at this time.
0 commit comments