This linter plugin for SublimeLinter provides an interface to haml-lint. It will be used with files that have the "Ruby Haml" syntax.
SublimeLinter must be installed in order to use this plugin.
Please install via Package Control.
Before using this plugin, ensure that haml-lint
(≥0.54.0) is installed on your system.
To install haml-lint
, do the following:
Install Ruby.
Install haml-lint
by typing the following in a terminal:
[sudo] gem install haml_lint
Note: Make sure you type haml_lint
with an underscore (_
). gem install haml-lint
will get you an outdated executable.
If you are using rbenv
or rvm
, ensure that they are loaded in your shell’s correct startup file. See here for more information.
Please make sure that the path to haml-lint
is available to SublimeLinter.
The docs cover troubleshooting PATH configuration.
The default configuration is as follows:
'selector': 'text.haml'
If you have your configuration files somewhere else or with a different name, set this using the Linter settings.