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