# selector-disallowed-list Specify a list of disallowed selectors. ```css .foo > .bar /** ↑ * This is selector */ ``` The [`message` secondary option](../../../docs/user-guide/configure.md#message) can accept the arguments of this rule. ## Options `array|string|regexp`: `["array", "of", "selectors", /or/, "/regex/"]|"selector"|"/regex/"|/regex/` If a string is surrounded with `"/"` (e.g. `"/\.foo/"`), it is interpreted as a regular expression. Given: ```json ["a > .foo", "/\\[data-.+]/"] ``` The following patterns are considered problems: ```css a > .foo {} ``` ```css a[data-auto="1"] {} ``` ```css .foo, [data-auto="1"] {} ``` The following patterns are _not_ considered problems: ```css .foo {} ``` ```css a > .foo {} ``` ```css .bar > a > .foo {} ``` ```css .data-auto {} ``` ```css a[href] {} ``` ## Optional secondary options ### `splitList: true | false` (default: `false`) Split selector lists into individual selectors. For example, with `true`. Given: ```json [".foo"] ``` The following pattern is considered a problem: ```css .bar, .foo {} ``` The following pattern is _not_ considered a problem: ```css .bar .foo {} ``` ### `ignore: ["inside-block"]` Ignore selectors that are inside a block. Given: ```json [".foo"] ``` The following pattern is _not_ considered a problem: ```css .bar { .foo {} } ```