Skip to content

Commit 018178b

Browse files
authored
Merge pull request #206 from SublimeLinter/selectors
switch to using selectors
2 parents 135dc52 + 264b264 commit 018178b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

linter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
class ESLint(NodeLinter):
2222
"""Provides an interface to the eslint executable."""
2323

24-
syntax = ('javascript', 'html')
2524
npm_name = 'eslint'
2625
cmd = ('eslint', '--format', 'compact', '--stdin', '--stdin-filename', '@')
2726

@@ -35,8 +34,8 @@ class ESLint(NodeLinter):
3534
re.DOTALL
3635
)
3736
line_col_base = (1, 1)
38-
selectors = {
39-
'html': 'source.js.embedded.html'
37+
defaults = {
38+
'selector': 'source.js - meta.attribute-with-value'
4039
}
4140

4241
def find_errors(self, output):

0 commit comments

Comments
 (0)