selector-anb-no-unmatchable
一致しない An+B セレクターを禁止します。
a:nth-child(0n+0) {}
/*↑ ↑
* This unmatchable An+B selector */
An+B セレクター は1からインデックス付けされます。常に0
と評価されるセレクターは、どの要素にもマッチしません。
message
セカンダリオプション は、このルールの引数を受け入れることができます。
オプション
true
次のパターンは問題とみなされます
a:nth-child(0) {}
a:nth-last-child(0n) {}
a:nth-of-type(0n+0) {}
a:nth-last-of-type(0 of a) {}
次のパターンは問題ではありません
a:nth-child(1) {}
a:nth-last-child(1n) {}
a:nth-of-type(1n+0) {}
a:nth-last-of-type(1 of a) {}