wikimedia/grunt-stylelint

Cannot use "plugins".... "Error: Files glob patterns specified did not match any files"

kunanyi opened this issue · 0 comments

My stylelint config is working file with just 'src' and 'options' in the json object.

However, if I try to add a 'plugins' or 'extends' entry, it gives this message:

Files: [no src] -> plugins
Options: configFile=".stylelintrc-base.json", ignoreDisables=false, failOnError, reportNeedlessDisables=false, syntax="less"
Warning: Running stylelint failed
Error: Files glob patterns specified did not match any files
at globby.then.filePaths             (/Users/contractor3/workspace/designs/content/node_modules/stylelint/lib/standalone.js:71:33)
at process._tickCallback (internal/process/next_tick.js:103:7)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:418:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:533:3 Use --force to continue.

It doesn't matter what values I give to 'plugins'... it will fail regardless.

Here's an example config:

stylelint: {
     plugins: [
    	    'stylelint-csslint-missing'
    ],
    src: ['somepath/css/*.less'],
    options: {
	    configFile: '.stylelintrc-base.json',
	    ignoreDisables: false,
	    failOnError: true,
	    reportNeedlessDisables: false,
	    syntax: 'less'
    }
}

"stylelint-csslint-missing" has been successfully installed into my node_modules.

Any ideas would be appreciated.