Closed bnolan closed 9 years ago
Hmm I will check it out tonight.
Fixed:
class Semistandard(NodeLinter):
"""Provides an interface to semistandard."""
syntax = ('javascript', 'html', 'javascriptnext', 'javascript 6to5')
cmd = ('semistandard', '-')
version_args = '--version'
version_re = r'(?P<version>\d+\.\d+\.\d+)'
version_requirement = '>= 2.5.0'
regex = r'^\s.+:(?P<line>\d+):(?P<col>\d+):(?P<message>.+)'
selectors = {
'html': 'source.js.embedded.html'
}
Tells it to use stdin. :)
Cool also I think it needs --stdin passed too
This should be fixed with version 1.0.1, which should be on package control in 30 minutes or so. https://github.com/Flet/SublimeLinter-contrib-semistandard/commit/eca74dd75b65584b4a5b0b8db04c1142635994ba
Heads up: you'll need to install semistandard
4.0.3 which was just released.
I think this is an error with contrib-standard as well - semistandard outputs lint errors in all files in the current directory (not just the current one), so the linter shows errrors for all files in the current file. And if there are errors at a higher line number than the number of lines in this file, well then... KABOOM!
I'm moving an entire project to semistandard, so if I coulduse this linter on multiple files (without moving each file into /tmp) that would be great.