How to use the normalize-selector function in normalize-selector

To help you get started, we’ve selected a few normalize-selector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stylelint / stylelint / src / rules / no-duplicate-selectors / index.js View on Github external
rule.selectors.forEach((selector, i) => {
        if (includes(normalizedSelectorList.slice(0, i), normalizeSelector(selector))) {
          report({
            result,
            ruleName,
            node: rule,
            message: messages.rejected(selector),
          })
        }
      })
    })

normalize-selector

Normalize CSS Selectors

MIT
Latest version published 9 years ago

Package Health Score

52 / 100
Full package analysis

Popular normalize-selector functions