SublimeLinter / SublimeLinter-haml-lint

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

Fix `cls.syntax` deprecation warning and use `args` #10

Closed TomasBarry closed 5 years ago

TomasBarry commented 5 years ago

In Sublime Text 3, there is was a cls.syntax deprecation warning in the console as a result of using:

syntax = 'ruby haml'

This removes this warning by using the selector configuration:

defaults = {
    'selector': 'text.haml'
}

On top of this, it is no longer required to have .haml-lint.yml present and haml_lint can make use of the default linting rules.

The args and temp_file to lint can be specified in the SublimeLinter.sublime-settings file.

TomasBarry commented 5 years ago

@kaste, I have addressed your comments. Thanks for the thorough look.

braver commented 5 years ago

Looks great, thanks! @kaste for the final word.

kaste commented 5 years ago

LGTM