SublimeLinter / SublimeLinter-haml-lint

SublimeLinter 3 plugin for Haml, using haml-lint.
MIT License
4 stars 8 forks source link

SublimeLinter-haml-lint

Build Status

This linter plugin for SublimeLinter provides an interface to haml-lint. It will be used with files that have the "Ruby Haml" syntax.

Installation

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:

  1. Install Ruby.

  2. 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.

  3. 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.

Linter 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.

Settings