Skip to content
#

css-in-js

Here are 854 public repositories matching this topic...

stylelint
ilyub
ilyub commented Dec 20, 2021

What is the problem you're trying to solve?

I guess that selector-max-universal is performance related rule.
I.e. it is supposed to forbid patterns that hit perfomance.

Consider the following patterns (with selector-max-universal = 1):

  1. "*" involves O(N) search. So, it is Good.
  2. "* *" involves O(N^2) search. So, it is Bad.
  3. "* + *" involves O(N) search ("+ *" = next element = it

Improve this page

Add a description, image, and links to the css-in-js topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the css-in-js topic, visit your repo's landing page and select "manage topics."

Learn more