simonsmith / stylelint-selector-bem-pattern

Stylelint plugin that incorporates postcss-bem-linter
MIT License
244 stars 13 forks source link

when I use the property like this "implicitUtilities: 'utils/*.css'", it comes an error #34

Closed Jewl closed 5 years ago

Jewl commented 6 years ago

when I try to set the property “implicitUtilties“, I got an error like this image so I add the statements in your plugin, and it works well

implicitUtilities: [_.isBoolean, _.isString, function(pattern) {
    return _.isArray(pattern) && _.every(pattern, _.isString);
  }],

Is there anything wrong about the plugin?

machal commented 6 years ago

The same here.

My .stylelintrc:

    "plugin/selector-bem-pattern": {
      "implicitUtilities": "assets/scss/helpers/*.scss",
    }
$ npm list stylelint
…
├── stylelint@8.4.0 
└─┬ stylelint-selector-bem-pattern@2.0.0

When I run $ grunt stylelint I'm getting Invalid Option: Invalid option name "implicitUtilities" for rule "plugin/selector-bem-pattern".