Skip to content

Commit adb596d

Browse files
committed
Update htmlhint version requirement to <= 0.9.7.
1 parent 0a68c03 commit adb596d

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.DS_Store
2+
*.sublime-*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Before using this plugin, you must ensure that `htmlhint` is installed on your s
1515

1616
1. Install `htmlhint` by typing the following in a terminal:
1717
```
18-
npm install -g htmlhint
18+
npm install -g htmlhint@0.9.7
1919
```
2020

2121
1. If you are using `nvm` and `zsh`, ensure that the line to load `nvm` is in `.zshenv` and not `.zshrc`.
2222

23-
**Note:** This plugin requires `htmlhint` 0.9.0 or later.
23+
**Note:** This plugin requires `htmlhint` 0.9.0 - 0.9.7. Later versions are currently not supported.
2424

2525
### Linter configuration
2626
In order for `htmlhint` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in [“Finding a linter executable”](http://sublimelinter.readthedocs.org/en/latest/troubleshooting.html#finding-a-linter-executable) through “Validating your PATH” in the documentation.

linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Htmlhint(Linter):
2222
cmd = 'htmlhint'
2323
version_args = '--version'
2424
version_re = r'(?P<version>\d+\.\d+\.\d+)'
25-
version_requirement = '>= 0.9.0'
25+
version_requirement = '>= 0.9.0, <= 0.9.7'
2626
regex = r'^\s*line (?P<line>\d+), col (?P<col>\d+): (?P<message>.+)'
2727
tempfile_suffix = '-'
2828
config_file = ('--config', '.htmlhintrc', '~')

messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"install": "messages/install.txt"
2+
"install": "messages/install.txt",
3+
"1.0.1": "messages/1.0.1.txt"
34
}

messages/1.0.1.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SublimeLinter-contrib-htmlhint 1.0.1
2+
------------------------------------
3+
Updating the version requirements. This plugin only supports htmlhint versions 0.9.7 and prior. Later versions of htmlhint have a new output format that is unsupported. Look for a new version that supports that latest htmlhint soon!
4+
5+
Please refer to https://github.com/mmaday/SublimeLinter-contrib-htmlhint for installation instructions.

messages/install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SublimeLinter-contrib-htmlhint
22
-------------------------------
3-
This linter plugin for SublimeLinter provides an interface to htmlhint.
3+
This linter plugin for SublimeLinter provides an interface to htmlhint. This plugin currently only works with htmlhint versions 0.9.7 and prior. Look for a new version to support 0.9.8 soon.
44

55
** IMPORTANT! **
66

0 commit comments

Comments
 (0)