Grunt plugin for running Stylelint
If this is the first time you're using Grunt, the getting started guide will show you how to get up and running.
Once you have that installed, with a Gruntfile set for your code, you can install the plugin with:
npm install grunt-stylelint --save-dev
In your Gruntfile, add the line:
grunt.loadNpmTasks( 'grunt-stylelint' );
Run this task with the grunt stylelint
command.
You can specify the targets and options for the task using the normal Grunt configuration – see Grunt's guide on how to configure tasks in general.