SCSS Lint

Install the CLI tool

$ gem install scss-lint
# or
$ sudo gem install scss-lint

Downloading my configuration file

This will download the configuration file into your home directory

$ curl https://raw.githubusercontent.com/jacobthemyth/dotfiles/master/scss-lint.yml > ~/.scss-lint.yml

My configuration is a little heavy handed, so you're welcome to edit the .scss-lint.yml file using Atom to reduce the noise.

The explanations of the various options can be found at https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md

Using scss-lint in Atom

  1. You must already have the CLI tool and the Linter package installed.
  2. Install the package named linter-scss-lint.
  3. Go to the Settings page for linter-scss-lint.
  4. Delete the contents of the Excluded Linters box (if it exists) so that Atom uses the configuration file you installed above.
  5. Run the following command in Terminal.app to find the scss-lint executable:
     $ which scss-lint
    
  6. Copy the resulting path (i.e. /usr/local/bin/scss-lint) to the "Executable Path" setting for the linter-scss-lint package.