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.
142142Setting 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
Original file line number Diff line number Diff line change @@ -109,20 +109,21 @@ Stylelint is able to check for unknown property values.
109109Setting 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 >
You can’t perform that action at this time.
0 commit comments