diff --git a/plugins/postcss-rewrite-url/README.md b/plugins/postcss-rewrite-url/README.md index 466fd7848..fe15bf8d4 100644 --- a/plugins/postcss-rewrite-url/README.md +++ b/plugins/postcss-rewrite-url/README.md @@ -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( * )" - } - }, - ], - 'function-no-unknown': [ +"languageOptions": { + "syntax": { + "types": { + "url": "| rewrite-url( * )" + } + } +}, +"rules": { + "function-no-unknown": [ true, { "ignoreFunctions": ["rewrite-url"] } - ], + ] +} ``` [cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test diff --git a/plugins/postcss-rewrite-url/docs/README.md b/plugins/postcss-rewrite-url/docs/README.md index 63f61c8be..02ad0ba0a 100644 --- a/plugins/postcss-rewrite-url/docs/README.md +++ b/plugins/postcss-rewrite-url/docs/README.md @@ -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( * )" - } - }, - ], - 'function-no-unknown': [ +"languageOptions": { + "syntax": { + "types": { + "url": "| rewrite-url( * )" + } + } +}, +"rules": { + "function-no-unknown": [ true, { "ignoreFunctions": ["rewrite-url"] } - ], + ] +} ```