This plugin provides integration for Stylint inside Intellij IDEA editors family by showing errors and warnings inside the editor.
- Intellij branch 145:
IntelliJ IDEA 2016.1, WebStorm 2016.1, PhpStorm 2016.1
stylint
>= 1.5.0stylint-json-reporter
>= 0.3.1
Compiled with Java 1.8
Plugin require stylint and stylint-json-reporter to do the hard work.
npm install -g stylint stylint-json-reporter
Find stylint-plugin in your IDE plugin repository.
Download JAR file from releases section. Then follow JetBrains Installing Plugin from Disk instructions.
To get started, you need to set the Stylint plugin settings:
- Go to preferences, Stylint plugin page and check
Enable
plugin. - Select the path to the Stylint executable.
- Set the
.stylintrc
file, or Stylint will use the default settings. - By default, Stylint plugin annotate the editor with warning or error based on the Stylint configuration, you can check the 'Treat all stylint issues as warnings' checkbox to display all issues from stylint as warnings.
- Stylint plugin will also try to highlight error in the right place. If you prefer more verbose display you can check the 'Highlight whole line' setting. Otherwise Stylint plugin will highlight whole lines only for those errors where more precise display was not possible.
- Show column number setting is mostly for debugging, but maybe someone will find it useful.
Configuration window:
Inspection example:
Update description. Prepare plugin for public use.
First public version of stylint-plugin
Thanks @idok for two great plugins scss-lint-plugin and eslint-plugin on which stylint-plugin is build on.
MIT © 2016 Wojciech Czerniak
MIT © 2014 Idok