Skip to content

Commit

Permalink
Fix doc of rule-selector-property-disallowed-list
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Feb 23, 2022
1 parent 335824c commit 757804d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/rule-selector-property-disallowed-list/README.md
Expand Up @@ -11,7 +11,7 @@ Specify a list of disallowed properties for selectors within rules.

## Options

`object`: `{ "selector": ["array", "of", "properties", "/regex/", /regex/]|"property"|"/regex/"|regex`
`object`: `{ "selector": ["array", "of", "properties", "/regex/", /regex/]|"property"|"/regex/"|/regex/`

If a selector name is surrounded with `"/"` (e.g. `"/anchor/"`), it is interpreted as a regular expression. This allows, for example, easy targeting of all the potential anchors: `/anchor/` will match `.anchor`, `[data-anchor]`, etc.

Expand Down

0 comments on commit 757804d

Please sign in to comment.