Linting your scss with scsslint
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-scsslint --save-dev
This task requires you to have Ruby and scss-lint installed. If you're on OS X or Linux you probably already have Ruby installed; test with
ruby -v in your terminal. When you've confirmed you have Ruby installed, run
gem install scss-lint to install scss-lint.
In your project's Gruntfile, add a section named
scsslint to the data object passed into
Path to the Yaml config file. See scss-lint#configuration
Allows you to specify a glob pattern of files that should not be linted .
Specify which linters you don't want to run. A list of linters can be found here
Specify which linters you want to run. A list of linters can be found here
scss-lint with bundle exec:
bundle exec scss-lint.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
scsslint. Moved tests there.
0.0.7where not all files where processed.
Copyright (c) 2014 Fabrice Weinberg. Licensed under the MIT license.