I'm using StyleLint with Webpack.
My current Webpack configuration is:
module.exports.styleLint = (isProd = false) => {
const options = {
configFile: './.stylelintrc.json',
files: '**/*.less',
format: 'less',
failOnError: false,
quiet: false,
emitErrors: isProd
};
return new StyleLintPlugin(options);
};
How can I specify some folders or files to be ignored by StyleLint (I don't want to see any errors in the output)?
Note:
I don't want to add
/* stylelint-disable */
inside these files.
I used the following configuration in the stylelint config file:
{
"extends": "stylelint-config-recommended",
"ignoreFiles": [
"app/bootstrap/**/*.less"
]
}
And it skipped the files in the specified folder.