diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..cc1923a --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.8 diff --git a/README.md b/README.md index 2142b44..3969813 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ SublimeLinter-csslint [](https://travis-ci.org/SublimeLinter/SublimeLinter-csslint) -This linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [csslint](https://github.com/stubbornella/csslint/wiki). It will be used with files that have the “CSS” syntax, or within `` tags in HTML files. +This linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [csslint](https://github.com/stubbornella/csslint/wiki). +It will be used with files that have the "CSS" syntax, or within `` tags in HTML files. ## Installation @@ -11,7 +12,8 @@ SublimeLinter must be installed in order to use this plugin. Please use [Package Control](https://packagecontrol.io) to install the linter plugin. -Before installing this plugin, you must ensure that `csslint` (version 0.10.0 or later) is installed on your system. To install `csslint`, do the following: +Before installing this plugin, ensure that `csslint` (version 0.10.0 or later) is installed on your system. +To install `csslint`, do the following: 1. Install [Node.js](http://nodejs.org) (and [npm](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) on Linux). @@ -22,11 +24,12 @@ Before installing this plugin, you must ensure that `csslint` (version 0.10.0 or 1. If you are using `nvm` and `zsh`, ensure that the line to load `nvm` is in `.zshenv` and not `.zshrc`. -In order for `csslint` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover [troubleshooting PATH configuration](http://sublimelinter.readthedocs.io/en/latest/troubleshooting.html#finding-a-linter-executable). +Please make sure that the path to `csslint` is available to SublimeLinter. +The docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable). ## Settings -- SublimeLinter settings: http://sublimelinter.readthedocs.org/en/latest/settings.html -- Linter settings: http://sublimelinter.readthedocs.org/en/latest/linter_settings.html +- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html +- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html Additional SublimeLinter-csslint settings: diff --git a/linter.py b/linter.py index da550e3..d69a34b 100644 --- a/linter.py +++ b/linter.py @@ -2,7 +2,7 @@ class CSSLint(Linter): - cmd = 'csslint --format=compact' + cmd = 'csslint --format=compact ${args} ${temp_file}' regex = r'''(?xi) ^.+:\s* # filename @@ -16,7 +16,7 @@ class CSSLint(Linter): error_stream = util.STREAM_STDOUT tempfile_suffix = 'css' defaults = { - 'selector': 'source.css', + 'selector': 'source.css - meta.attribute-with-value', '--errors=,': '', '--warnings=,': '', '--ignore=,': ''