SASS Lint plugin for Intellij
Branch: master
Clone or download
Latest commit 76448d5 Sep 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
META-INF version 1.1.1 Sep 2, 2018
resources/inspectionDescriptions add description for rule Sep 2, 2018
src/com/sasslint fix naming Sep 2, 2018
testData/unit add test data Jan 26, 2016
tests/com/sasslint remove unused files Jan 27, 2016
.gitignore add test data Jan 26, 2016
LICENSE init commit Jan 26, 2016
README.md Update README.md Jan 27, 2016

README.md

SassLint Plugin

Idea support for SassLint A Node-only Sass linter for both sass and scss syntax. see more here.
SassLint plugin for WebStorm, PHPStorm and other Idea family IDE with Javascript plugin, provides integration with SassLint and shows errors and warnings inside the editor.

  • Support displaying SassLint warnings as intellij inspections

Getting started

Prerequisites

  • NodeJS
  • IntelliJ 13.1.4 / Webstorm 8.0.4, or above.

Install sass-lint npm package sass-lint npm:

$ cd <project path>
$ npm install sass-lint

Or, install sass-lint globally:

$ npm install -g sass-lint

Settings

To get started, you need to set the SassLint plugin settings:

  • Go to preferences, SassLint plugin page and check the Enable plugin.
  • Set the path to the nodejs interpreter bin file.
  • Set the path to the sass-lint bin file. should point to <project path>node_modules/sass-lint/bin/sass-lint if you installed locally or /usr/local/bin/sass-lint if you installed globally.
    • For Windows: install sass-lint globally and point to the sass-lint cmd file like, e.g. C:\Users\<username>\AppData\Roaming\npm\sass-lint.cmd
  • Select whether to let sass-lint search for .sass-lint.yml file