diff --git a/lib/rules/alpha-value-notation/README.md b/lib/rules/alpha-value-notation/README.md index a738167d43..3061dc0138 100644 --- a/lib/rules/alpha-value-notation/README.md +++ b/lib/rules/alpha-value-notation/README.md @@ -81,7 +81,7 @@ For example with `"percentage"`. Given: -``` +```json ["opacity"] ``` diff --git a/lib/rules/at-rule-allowed-list/README.md b/lib/rules/at-rule-allowed-list/README.md index 995c21d40e..715b8e5470 100644 --- a/lib/rules/at-rule-allowed-list/README.md +++ b/lib/rules/at-rule-allowed-list/README.md @@ -15,7 +15,7 @@ Specify a list of allowed at-rules. Given: -``` +```json ["extend", "keyframes"] ``` diff --git a/lib/rules/at-rule-disallowed-list/README.md b/lib/rules/at-rule-disallowed-list/README.md index 336dc9d1a5..31837b2626 100644 --- a/lib/rules/at-rule-disallowed-list/README.md +++ b/lib/rules/at-rule-disallowed-list/README.md @@ -15,7 +15,7 @@ Specify a list of disallowed at-rules. Given: -``` +```json ["extend", "keyframes"] ``` diff --git a/lib/rules/at-rule-empty-line-before/README.md b/lib/rules/at-rule-empty-line-before/README.md index 1f67dcda3b..e5a20c1a37 100644 --- a/lib/rules/at-rule-empty-line-before/README.md +++ b/lib/rules/at-rule-empty-line-before/README.md @@ -408,7 +408,7 @@ For example, with `"always"`. Given: -``` +```json ["import"] ``` diff --git a/lib/rules/at-rule-no-unknown/README.md b/lib/rules/at-rule-no-unknown/README.md index 9ec32ad11f..fb7d56e02c 100644 --- a/lib/rules/at-rule-no-unknown/README.md +++ b/lib/rules/at-rule-no-unknown/README.md @@ -52,7 +52,7 @@ The following patterns are _not_ considered violations: Given: -``` +```json ["/^my-/", "custom"] ``` diff --git a/lib/rules/at-rule-property-required-list/README.md b/lib/rules/at-rule-property-required-list/README.md index eb4eb944c6..81dc7a0224 100644 --- a/lib/rules/at-rule-property-required-list/README.md +++ b/lib/rules/at-rule-property-required-list/README.md @@ -15,7 +15,7 @@ Specify a list of required properties for an at-rule. Given: -``` +```json { "font-face": ["font-display", "font-family", "font-style"] } diff --git a/lib/rules/block-closing-brace-newline-after/README.md b/lib/rules/block-closing-brace-newline-after/README.md index 6556ba8fc9..3b44346edb 100644 --- a/lib/rules/block-closing-brace-newline-after/README.md +++ b/lib/rules/block-closing-brace-newline-after/README.md @@ -173,7 +173,7 @@ For example, with `"always"` or `"always-multi-line"`. Given: -``` +```json ["if", "else"] ``` diff --git a/lib/rules/block-opening-brace-space-before/README.md b/lib/rules/block-opening-brace-space-before/README.md index b637275141..2e0d8155b0 100644 --- a/lib/rules/block-opening-brace-space-before/README.md +++ b/lib/rules/block-opening-brace-space-before/README.md @@ -179,7 +179,7 @@ color: pink;} Given: -``` +```json ["/fo/"] ``` @@ -200,7 +200,7 @@ The following patterns are _not_ considered violations: Given: -``` +```json [":root"] ``` diff --git a/lib/rules/color-named/README.md b/lib/rules/color-named/README.md index a3833bee58..3815311558 100644 --- a/lib/rules/color-named/README.md +++ b/lib/rules/color-named/README.md @@ -148,7 +148,7 @@ For example with `"never"`. Given: -``` +```json ["/^my-/", "composes"] ``` diff --git a/lib/rules/comment-empty-line-before/README.md b/lib/rules/comment-empty-line-before/README.md index 00e036b4cf..2bd0fad9d8 100644 --- a/lib/rules/comment-empty-line-before/README.md +++ b/lib/rules/comment-empty-line-before/README.md @@ -172,8 +172,8 @@ Ignore comments matching the given regular expressions or strings. For example, with `"always"` and given: -``` -[/^ignore/, "string-ignore"] +```json +["/^ignore/", "string-ignore"] ``` The following comments are _not_ considered violations: diff --git a/lib/rules/comment-pattern/README.md b/lib/rules/comment-pattern/README.md index b0a276e225..63a7d9fb76 100644 --- a/lib/rules/comment-pattern/README.md +++ b/lib/rules/comment-pattern/README.md @@ -17,7 +17,7 @@ A string will be translated into a RegExp like so `new RegExp(yourString)` —  Given the string: -``` +```json "foo .+" ``` diff --git a/lib/rules/comment-word-disallowed-list/README.md b/lib/rules/comment-word-disallowed-list/README.md index 814667b43c..30b4dbe6ff 100644 --- a/lib/rules/comment-word-disallowed-list/README.md +++ b/lib/rules/comment-word-disallowed-list/README.md @@ -19,7 +19,7 @@ If a string is surrounded with `"/"` (e.g. `"/^TODO:/"`), it is interpreted as a Given: -``` +```json ["/^TODO:/", "badword"] ``` diff --git a/lib/rules/custom-media-pattern/README.md b/lib/rules/custom-media-pattern/README.md index d9dc628f56..c990ef7c39 100644 --- a/lib/rules/custom-media-pattern/README.md +++ b/lib/rules/custom-media-pattern/README.md @@ -17,7 +17,7 @@ A string will be translated into a RegExp like so `new RegExp(yourString)` —  Given the string: -``` +```json "foo-.+" ``` diff --git a/lib/rules/custom-property-pattern/README.md b/lib/rules/custom-property-pattern/README.md index 1382b9fc0b..c58d12c5af 100644 --- a/lib/rules/custom-property-pattern/README.md +++ b/lib/rules/custom-property-pattern/README.md @@ -17,7 +17,7 @@ A string will be translated into a RegExp like so `new RegExp(yourString)` —  Given the string: -``` +```json "foo-.+" ``` diff --git a/lib/rules/declaration-block-no-duplicate-properties/README.md b/lib/rules/declaration-block-no-duplicate-properties/README.md index c8b6e59727..68fa98cd2b 100644 --- a/lib/rules/declaration-block-no-duplicate-properties/README.md +++ b/lib/rules/declaration-block-no-duplicate-properties/README.md @@ -114,7 +114,7 @@ Ignore duplicates of specific properties. Given: -``` +```json ["color", "/background-/"] ``` diff --git a/lib/rules/declaration-block-no-redundant-longhand-properties/README.md b/lib/rules/declaration-block-no-redundant-longhand-properties/README.md index a4b330c21a..78aecf704b 100644 --- a/lib/rules/declaration-block-no-redundant-longhand-properties/README.md +++ b/lib/rules/declaration-block-no-redundant-longhand-properties/README.md @@ -151,7 +151,7 @@ a { Given: -``` +```json ["padding", "/border/"] ``` diff --git a/lib/rules/declaration-property-unit-allowed-list/README.md b/lib/rules/declaration-property-unit-allowed-list/README.md index d67ead027d..bd495a19c5 100644 --- a/lib/rules/declaration-property-unit-allowed-list/README.md +++ b/lib/rules/declaration-property-unit-allowed-list/README.md @@ -17,7 +17,7 @@ If a property name is surrounded with `"/"` (e.g. `"/^animation/"`), it is inter Given: -``` +```json { "font-size": ["em", "px"], "/^animation/": ["s"], @@ -92,14 +92,16 @@ Ignore units that are inside a function. For example, given: -``` -{ - "/^border/": ["px"], - "/^background/": ["%"], -}, -{ - "ignore": ["inside-function"], -}, +```json +[ + { + "/^border/": ["px"], + "/^background/": ["%"] + }, + { + "ignore": ["inside-function"] + } +] ``` The following patterns are _not_ considered violations: diff --git a/lib/rules/declaration-property-unit-disallowed-list/README.md b/lib/rules/declaration-property-unit-disallowed-list/README.md index 088d42a3af..8ec7ec1829 100644 --- a/lib/rules/declaration-property-unit-disallowed-list/README.md +++ b/lib/rules/declaration-property-unit-disallowed-list/README.md @@ -17,7 +17,7 @@ If a property name is surrounded with `"/"` (e.g. `"/^animation/"`), it is inter Given: -``` +```json { "font-size": ["em", "px"], "/^animation/": ["s"] diff --git a/lib/rules/declaration-property-value-allowed-list/README.md b/lib/rules/declaration-property-value-allowed-list/README.md index 1c9a1b1424..bd95aca808 100644 --- a/lib/rules/declaration-property-value-allowed-list/README.md +++ b/lib/rules/declaration-property-value-allowed-list/README.md @@ -23,7 +23,7 @@ Be careful with regex matching not to accidentally consider quoted string values Given: -``` +```json { "transform": ["/scale/"], "whitespace": ["nowrap"], diff --git a/lib/rules/declaration-property-value-disallowed-list/README.md b/lib/rules/declaration-property-value-disallowed-list/README.md index 982799a29d..7cef752994 100644 --- a/lib/rules/declaration-property-value-disallowed-list/README.md +++ b/lib/rules/declaration-property-value-disallowed-list/README.md @@ -21,7 +21,7 @@ Be careful with regex matching not to accidentally consider quoted string values Given: -``` +```json { "transform": ["/scale3d/", "/rotate3d/", "/translate3d/"], "position": ["fixed"], diff --git a/lib/rules/font-family-no-duplicate-names/README.md b/lib/rules/font-family-no-duplicate-names/README.md index 779f15d80d..e247e6f3e8 100644 --- a/lib/rules/font-family-no-duplicate-names/README.md +++ b/lib/rules/font-family-no-duplicate-names/README.md @@ -59,7 +59,7 @@ a { font: normal 14px/32px -apple-system, BlinkMacSystemFont, sans-serif; } Given: -``` +```json ["/^My Font /", "monospace"] ``` diff --git a/lib/rules/font-family-no-missing-generic-family-keyword/README.md b/lib/rules/font-family-no-missing-generic-family-keyword/README.md index a7ba77f294..795299db42 100644 --- a/lib/rules/font-family-no-missing-generic-family-keyword/README.md +++ b/lib/rules/font-family-no-missing-generic-family-keyword/README.md @@ -70,7 +70,7 @@ a { font-family: Helvetica, var(--font-family-common); } Given: -``` +```json ["custom-font"] ``` diff --git a/lib/rules/function-allowed-list/README.md b/lib/rules/function-allowed-list/README.md index 92b304d491..9dff1f6a69 100644 --- a/lib/rules/function-allowed-list/README.md +++ b/lib/rules/function-allowed-list/README.md @@ -17,7 +17,7 @@ If a string is surrounded with `"/"` (e.g. `"/^rgb/"`), it is interpreted as a r Given: -``` +```json ["scale", "rgba", "linear-gradient"] ``` diff --git a/lib/rules/function-disallowed-list/README.md b/lib/rules/function-disallowed-list/README.md index e6dad004a2..35843b9f08 100644 --- a/lib/rules/function-disallowed-list/README.md +++ b/lib/rules/function-disallowed-list/README.md @@ -17,7 +17,7 @@ If a string is surrounded with `"/"` (e.g. `"/^rgb/"`), it is interpreted as a r Given: -``` +```json ["scale", "rgba", "linear-gradient"] ``` diff --git a/lib/rules/function-name-case/README.md b/lib/rules/function-name-case/README.md index cdac1a71b3..f8ea7e4cb8 100644 --- a/lib/rules/function-name-case/README.md +++ b/lib/rules/function-name-case/README.md @@ -123,7 +123,7 @@ For example, with `"lower"`. Given: -``` +```json ["some-function", "/^get.*$/"] ``` diff --git a/lib/rules/function-url-scheme-allowed-list/README.md b/lib/rules/function-url-scheme-allowed-list/README.md index 64cbbdcfd6..02aa7a836f 100644 --- a/lib/rules/function-url-scheme-allowed-list/README.md +++ b/lib/rules/function-url-scheme-allowed-list/README.md @@ -22,7 +22,7 @@ This rule ignores: Given: -``` +```json ["data", "/^http/"] ``` diff --git a/lib/rules/function-url-scheme-disallowed-list/README.md b/lib/rules/function-url-scheme-disallowed-list/README.md index 11e4d73d7e..3173825650 100644 --- a/lib/rules/function-url-scheme-disallowed-list/README.md +++ b/lib/rules/function-url-scheme-disallowed-list/README.md @@ -22,7 +22,7 @@ This rule ignores: Given: -``` +```json ["ftp", "/^http/"] ``` diff --git a/lib/rules/keyframes-name-pattern/README.md b/lib/rules/keyframes-name-pattern/README.md index cda65c13c1..a9dd78ff16 100644 --- a/lib/rules/keyframes-name-pattern/README.md +++ b/lib/rules/keyframes-name-pattern/README.md @@ -17,7 +17,7 @@ A string will be translated into a RegExp like so `new RegExp(yourString)` —  Given the string: -``` +```json "foo-.+" ``` diff --git a/lib/rules/max-line-length/README.md b/lib/rules/max-line-length/README.md index 8693d2472c..06abbfa374 100644 --- a/lib/rules/max-line-length/README.md +++ b/lib/rules/max-line-length/README.md @@ -126,7 +126,7 @@ Ignore any line that matches the given regex pattern, regardless of whether it i Given: -``` +```json "/^@import\\s+/" ``` diff --git a/lib/rules/max-nesting-depth/README.md b/lib/rules/max-nesting-depth/README.md index 43e6cdfacd..ff59dc2c35 100644 --- a/lib/rules/max-nesting-depth/README.md +++ b/lib/rules/max-nesting-depth/README.md @@ -284,7 +284,7 @@ Ignore the specified at-rules. For example, with `1` and given: -``` +```json ["/^my-/", "media"] ``` diff --git a/lib/rules/media-feature-name-allowed-list/README.md b/lib/rules/media-feature-name-allowed-list/README.md index 255b865f1f..7fa546d046 100644 --- a/lib/rules/media-feature-name-allowed-list/README.md +++ b/lib/rules/media-feature-name-allowed-list/README.md @@ -15,7 +15,7 @@ Specify a list of allowed media feature names. Given: -``` +```json ["max-width", "/^my-/"] ``` diff --git a/lib/rules/media-feature-name-disallowed-list/README.md b/lib/rules/media-feature-name-disallowed-list/README.md index cd232e1736..fa3d747afc 100644 --- a/lib/rules/media-feature-name-disallowed-list/README.md +++ b/lib/rules/media-feature-name-disallowed-list/README.md @@ -15,7 +15,7 @@ Specify a list of disallowed media feature names. Given: -``` +```json ["max-width", "/^my-/"] ``` diff --git a/lib/rules/media-feature-name-no-unknown/README.md b/lib/rules/media-feature-name-no-unknown/README.md index 8b57d1efaf..86cfafe22b 100644 --- a/lib/rules/media-feature-name-no-unknown/README.md +++ b/lib/rules/media-feature-name-no-unknown/README.md @@ -67,7 +67,7 @@ The following patterns are _not_ considered violations: Given: -``` +```json ["/^my-/", "custom"] ``` diff --git a/lib/rules/media-feature-name-value-allowed-list/README.md b/lib/rules/media-feature-name-value-allowed-list/README.md index e81fd3cf29..a2f77c9ec0 100644 --- a/lib/rules/media-feature-name-value-allowed-list/README.md +++ b/lib/rules/media-feature-name-value-allowed-list/README.md @@ -27,7 +27,7 @@ as a regular expression. For example, `/width$/` will match `max-width` and Given: -``` +```json { "min-width": ["768px", "1024px"], "/resolution/": ["/dpcm$/"] diff --git a/lib/rules/number-max-precision/README.md b/lib/rules/number-max-precision/README.md index c62309264c..415f27ba03 100644 --- a/lib/rules/number-max-precision/README.md +++ b/lib/rules/number-max-precision/README.md @@ -54,7 +54,7 @@ For example, with `2`. Given: -``` +```json ["/^my-/", "%"] ``` diff --git a/lib/rules/property-allowed-list/README.md b/lib/rules/property-allowed-list/README.md index e2b2250e1a..8a61f07655 100644 --- a/lib/rules/property-allowed-list/README.md +++ b/lib/rules/property-allowed-list/README.md @@ -19,7 +19,7 @@ If a string is surrounded with `"/"` (e.g. `"/^background/"`), it is interpreted Given: -``` +```json ["display", "animation", "/^background/"] ``` diff --git a/lib/rules/property-disallowed-list/README.md b/lib/rules/property-disallowed-list/README.md index 81edc3444f..86c89bd760 100644 --- a/lib/rules/property-disallowed-list/README.md +++ b/lib/rules/property-disallowed-list/README.md @@ -17,7 +17,7 @@ If a string is surrounded with `"/"` (e.g. `"/^background/"`), it is interpreted Given: -``` +```json ["text-rendering", "animation", "/^background/"] ``` diff --git a/lib/rules/property-no-unknown/README.md b/lib/rules/property-no-unknown/README.md index f5f82d4e40..0937c80f39 100644 --- a/lib/rules/property-no-unknown/README.md +++ b/lib/rules/property-no-unknown/README.md @@ -81,7 +81,7 @@ a { Given: -``` +```json ["/^my-/", "custom"] ``` @@ -114,7 +114,7 @@ Skips checking properties of the given selectors against this rule. Given: -``` +```json [":root"] ``` @@ -133,7 +133,7 @@ Ignores properties nested within specified at-rules. Given: -``` +```json ["supports"] ``` diff --git a/lib/rules/property-no-vendor-prefix/README.md b/lib/rules/property-no-vendor-prefix/README.md index 7833e0f16f..dc8b132ca6 100644 --- a/lib/rules/property-no-vendor-prefix/README.md +++ b/lib/rules/property-no-vendor-prefix/README.md @@ -53,7 +53,7 @@ a { -webkit-touch-callout: none; } Given: -``` +```json ["transform", "columns"] ``` diff --git a/lib/rules/selector-attribute-name-disallowed-list/README.md b/lib/rules/selector-attribute-name-disallowed-list/README.md index 36f7a2a759..fec157852b 100644 --- a/lib/rules/selector-attribute-name-disallowed-list/README.md +++ b/lib/rules/selector-attribute-name-disallowed-list/README.md @@ -15,7 +15,7 @@ Specify a list of disallowed attribute names. Given: -``` +```json ["class", "id", "/^data-/"] ``` diff --git a/lib/rules/selector-attribute-operator-allowed-list/README.md b/lib/rules/selector-attribute-operator-allowed-list/README.md index 557d9ec0a8..239d1eca1b 100644 --- a/lib/rules/selector-attribute-operator-allowed-list/README.md +++ b/lib/rules/selector-attribute-operator-allowed-list/README.md @@ -15,7 +15,7 @@ Specify a list of allowed attribute operators. Given: -``` +```json ["=", "|="] ``` diff --git a/lib/rules/selector-attribute-operator-disallowed-list/README.md b/lib/rules/selector-attribute-operator-disallowed-list/README.md index 62cbb512bc..07a1093468 100644 --- a/lib/rules/selector-attribute-operator-disallowed-list/README.md +++ b/lib/rules/selector-attribute-operator-disallowed-list/README.md @@ -15,7 +15,7 @@ Specify a list of disallowed attribute operators. Given: -``` +```json ["*="] ``` diff --git a/lib/rules/selector-class-pattern/README.md b/lib/rules/selector-class-pattern/README.md index e7da1ed34e..4699801c8a 100644 --- a/lib/rules/selector-class-pattern/README.md +++ b/lib/rules/selector-class-pattern/README.md @@ -77,7 +77,7 @@ For example, with `true`. Given the string: -``` +```json "^[A-Z]+$" ``` diff --git a/lib/rules/selector-combinator-allowed-list/README.md b/lib/rules/selector-combinator-allowed-list/README.md index 5fdce86ffa..5e1fec1676 100644 --- a/lib/rules/selector-combinator-allowed-list/README.md +++ b/lib/rules/selector-combinator-allowed-list/README.md @@ -19,7 +19,7 @@ This rule ignores [reference combinators](https://www.w3.org/TR/selectors4/#idre Given: -``` +```json [">", " "] ``` diff --git a/lib/rules/selector-combinator-disallowed-list/README.md b/lib/rules/selector-combinator-disallowed-list/README.md index ae4fe2a419..e0c727ba9d 100644 --- a/lib/rules/selector-combinator-disallowed-list/README.md +++ b/lib/rules/selector-combinator-disallowed-list/README.md @@ -19,7 +19,7 @@ This rule ignores [reference combinators](https://www.w3.org/TR/selectors4/#idre Given: -``` +```json [">", " "] ``` diff --git a/lib/rules/selector-disallowed-list/README.md b/lib/rules/selector-disallowed-list/README.md index ca20b594f1..4a1eccee70 100644 --- a/lib/rules/selector-disallowed-list/README.md +++ b/lib/rules/selector-disallowed-list/README.md @@ -17,8 +17,8 @@ If a string is surrounded with `"/"` (e.g. `"/\.foo/"`), it is interpreted as a Given: -``` -["a > .foo", /\[data-.+]/] +```json +["a > .foo", "/\\[data-.+]/"] ``` The following patterns are considered violations: diff --git a/lib/rules/selector-id-pattern/README.md b/lib/rules/selector-id-pattern/README.md index cab22b7d18..408dbc4041 100644 --- a/lib/rules/selector-id-pattern/README.md +++ b/lib/rules/selector-id-pattern/README.md @@ -19,7 +19,7 @@ The selector value _after `#`_ will be checked. No need to include `#` in your p Given the string: -``` +```json "foo-[a-z]+" ``` diff --git a/lib/rules/selector-max-attribute/README.md b/lib/rules/selector-max-attribute/README.md index cee0f86507..165dd18d74 100644 --- a/lib/rules/selector-max-attribute/README.md +++ b/lib/rules/selector-max-attribute/README.md @@ -94,7 +94,7 @@ The following patterns are _not_ considered violations: Given: -``` +```json ["/^my-/", "dir"] ``` diff --git a/lib/rules/selector-max-id/README.md b/lib/rules/selector-max-id/README.md index 301fe42f45..5f06ea2f96 100644 --- a/lib/rules/selector-max-id/README.md +++ b/lib/rules/selector-max-id/README.md @@ -81,8 +81,8 @@ Ignore selectors inside of specified [functional pseudo-classes](https://drafts. Given: -```js -[":not", /^:(h|H)as$/]; +```json +[":not", "/^:(h|H)as$/"] ``` The following patterns are considered violations: diff --git a/lib/rules/selector-max-specificity/README.md b/lib/rules/selector-max-specificity/README.md index 476a99eba4..41b2881b92 100755 --- a/lib/rules/selector-max-specificity/README.md +++ b/lib/rules/selector-max-specificity/README.md @@ -94,11 +94,11 @@ div {} Given: -``` +```json [ "0,2,0", { - ignoreSelectors: [":global", ":local", "/my-/"] + "ignoreSelectors": [":global", ":local", "/my-/"] } ] ``` diff --git a/lib/rules/selector-max-type/README.md b/lib/rules/selector-max-type/README.md index c15c9de3c0..f6af2aced2 100644 --- a/lib/rules/selector-max-type/README.md +++ b/lib/rules/selector-max-type/README.md @@ -155,7 +155,7 @@ div a + span {} Given: -``` +```json ["/^my-/", "custom"] ``` diff --git a/lib/rules/selector-nested-pattern/README.md b/lib/rules/selector-nested-pattern/README.md index fc223497cd..5b6808f140 100644 --- a/lib/rules/selector-nested-pattern/README.md +++ b/lib/rules/selector-nested-pattern/README.md @@ -24,7 +24,7 @@ The selector value will be checked in its entirety. If you'd like to allow for c Given the string: -``` +```json "^&:(?:hover|focus)$" ``` diff --git a/lib/rules/selector-no-vendor-prefix/README.md b/lib/rules/selector-no-vendor-prefix/README.md index 8555ec6d10..e53b94d1ea 100644 --- a/lib/rules/selector-no-vendor-prefix/README.md +++ b/lib/rules/selector-no-vendor-prefix/README.md @@ -49,7 +49,7 @@ Ignore vendor prefixes for selectors. Given: -``` +```json ["::-webkit-input-placeholder", "/-moz-.*/"] ``` diff --git a/lib/rules/selector-pseudo-class-allowed-list/README.md b/lib/rules/selector-pseudo-class-allowed-list/README.md index 5932b92623..e8afeca0b1 100644 --- a/lib/rules/selector-pseudo-class-allowed-list/README.md +++ b/lib/rules/selector-pseudo-class-allowed-list/README.md @@ -19,7 +19,7 @@ If a string is surrounded with `"/"` (e.g. `"/^nth-/"`), it is interpreted as a Given: -``` +```json ["hover", "/^nth-/"] ``` diff --git a/lib/rules/selector-pseudo-class-disallowed-list/README.md b/lib/rules/selector-pseudo-class-disallowed-list/README.md index dbd5a98d31..c0ad174a4a 100644 --- a/lib/rules/selector-pseudo-class-disallowed-list/README.md +++ b/lib/rules/selector-pseudo-class-disallowed-list/README.md @@ -19,7 +19,7 @@ If a string is surrounded with `"/"` (e.g. `"/^nth-/"`), it is interpreted as a Given: -``` +```json ["hover", "/^nth-/"] ``` diff --git a/lib/rules/selector-pseudo-class-no-unknown/README.md b/lib/rules/selector-pseudo-class-no-unknown/README.md index 7f6ea43f8a..6c3d8a1759 100644 --- a/lib/rules/selector-pseudo-class-no-unknown/README.md +++ b/lib/rules/selector-pseudo-class-no-unknown/README.md @@ -62,7 +62,7 @@ input:-moz-placeholder {} Given: -``` +```json ["/^my-/", "pseudo-class"] ``` diff --git a/lib/rules/selector-pseudo-element-allowed-list/README.md b/lib/rules/selector-pseudo-element-allowed-list/README.md index c920727f8a..1d289ce0b6 100644 --- a/lib/rules/selector-pseudo-element-allowed-list/README.md +++ b/lib/rules/selector-pseudo-element-allowed-list/README.md @@ -20,7 +20,7 @@ This rule ignores: Given: -``` +```json ["before", "/^my-/i"] ``` diff --git a/lib/rules/selector-pseudo-element-disallowed-list/README.md b/lib/rules/selector-pseudo-element-disallowed-list/README.md index 36516836e7..d3c9d56c26 100644 --- a/lib/rules/selector-pseudo-element-disallowed-list/README.md +++ b/lib/rules/selector-pseudo-element-disallowed-list/README.md @@ -20,7 +20,7 @@ This rule ignores: Given: -``` +```json ["before", "/^my-/i"] ``` diff --git a/lib/rules/selector-pseudo-element-no-unknown/README.md b/lib/rules/selector-pseudo-element-no-unknown/README.md index f1e3b0e7e2..c1912a7de5 100644 --- a/lib/rules/selector-pseudo-element-no-unknown/README.md +++ b/lib/rules/selector-pseudo-element-no-unknown/README.md @@ -62,7 +62,7 @@ input::-moz-placeholder {} Given: -``` +```json ["/^my-/", "pseudo-element"] ``` diff --git a/lib/rules/selector-type-case/README.md b/lib/rules/selector-type-case/README.md index 1c67dccea5..97d9a252bc 100644 --- a/lib/rules/selector-type-case/README.md +++ b/lib/rules/selector-type-case/README.md @@ -73,7 +73,7 @@ LI {} Given: -``` +```json ["$childClass", "/(p|P)arent.*/"] ``` diff --git a/lib/rules/selector-type-no-unknown/README.md b/lib/rules/selector-type-no-unknown/README.md index 26b2f43eb5..6e04705b8d 100644 --- a/lib/rules/selector-type-no-unknown/README.md +++ b/lib/rules/selector-type-no-unknown/README.md @@ -93,7 +93,7 @@ unknown {} Given: -``` +```json ["/^my-/", "custom-namespace"] ``` @@ -118,7 +118,7 @@ my-other-namespace|unknown {} Given: -``` +```json ["/^my-/", "custom-type"] ``` diff --git a/lib/rules/unit-allowed-list/README.md b/lib/rules/unit-allowed-list/README.md index 3f5e2de93c..d8c04b4026 100644 --- a/lib/rules/unit-allowed-list/README.md +++ b/lib/rules/unit-allowed-list/README.md @@ -15,7 +15,7 @@ a { width: 100px; } Given: -``` +```json ["px", "em", "deg"] ``` @@ -73,10 +73,10 @@ For example, with `["px", "em"]`. Given: -``` +```json { - "rem": [ "line-height", "/^border/" ], - "%": [ "width" ] + "rem": ["line-height", "/^border/"], + "%": ["width"] } ``` diff --git a/lib/rules/unit-disallowed-list/README.md b/lib/rules/unit-disallowed-list/README.md index e38d426968..e1a774c784 100644 --- a/lib/rules/unit-disallowed-list/README.md +++ b/lib/rules/unit-disallowed-list/README.md @@ -15,7 +15,7 @@ a { width: 100px; } Given: -``` +```json ["px", "em", "deg"] ``` @@ -68,10 +68,10 @@ For example, with `["px", "vmin"]`. Given: -``` +```json { - "px": [ "font-size", "/^border/" ], - "vmin": [ "width" ] + "px": ["font-size", "/^border/"], + "vmin": ["width"] } ``` @@ -117,10 +117,10 @@ For example, with `["px", "dpi"]`. Given: -``` +```json { - "px": [ "min-width", "/height$/" ], - "dpi": [ "resolution" ] + "px": ["min-width", "/height$/"], + "dpi": ["resolution"] } ``` diff --git a/lib/rules/unit-no-unknown/README.md b/lib/rules/unit-no-unknown/README.md index 42012087e5..cca7c287f2 100644 --- a/lib/rules/unit-no-unknown/README.md +++ b/lib/rules/unit-no-unknown/README.md @@ -67,7 +67,7 @@ a { Given: -``` +```json ["/^my-/", "custom"] ``` @@ -98,7 +98,7 @@ a { Given: -``` +```json ["image-set", "/^my-/", "/^YOUR-/i"] ``` diff --git a/lib/rules/value-keyword-case/README.md b/lib/rules/value-keyword-case/README.md index cc0823e569..01d63cac80 100644 --- a/lib/rules/value-keyword-case/README.md +++ b/lib/rules/value-keyword-case/README.md @@ -123,7 +123,7 @@ For example, with `"lower"`. Given: -``` +```json ["Block", "/^(f|F)lex$/"] ``` diff --git a/lib/rules/value-no-vendor-prefix/README.md b/lib/rules/value-no-vendor-prefix/README.md index 9a08e40582..b75b1c82f7 100644 --- a/lib/rules/value-no-vendor-prefix/README.md +++ b/lib/rules/value-no-vendor-prefix/README.md @@ -57,7 +57,7 @@ a { background: linear-gradient(bottom, #000, #fff); } Given: -``` +```json ["grab", "max-content"] ```