stylelint-selector-pattern

A stylelint plugin that allows to check selectors with regular expressions.
git clone https://git.ce9e.org/stylelint-selector-pattern.git

commit
66d4ae0af37d3eae8e81fe7e20a233ed8b727f9c
parent
366304d63decc82c4a47193c1429a7a1c1342167
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2017-02-17 08:27
fix test errors

Diffstat

M index.js 1 +
M lib/presets.js 2 +-

2 files changed, 2 insertions, 1 deletions


diff --git a/index.js b/index.js

@@ -16,6 +16,7 @@ module.exports = stylelint.createPlugin(ruleName, function(optionsPattern, optio
   16    16   return function(root, result) {
   17    17     if (!validate(result, ruleName, optionsPattern, options)) return;
   18    18 
   -1    19     options = options || {};
   19    20     if (presets.hasOwnProperty(optionsPattern)) {
   20    21       var args = presets[optionsPattern];
   21    22       optionsPattern = args[0];

diff --git a/lib/presets.js b/lib/presets.js

@@ -18,5 +18,5 @@ module.exports = {
   18    18       pseudo: "::?[a-z-]+"
   19    19     }
   20    20   }],
   21    -1   itcss: ["^\.(o-|c-|u-|t-|s-|is-|has-|_|js-|qa-)[a-z0-9-]+"]
   -1    21   itcss: ["^\.(o-|c-|u-|t-|s-|is-|has-|_|js-|qa-)[a-z0-9-]+$"]
   22    22 };