Skip to content

Commit

Permalink
Merge pull request #22 from ohboylan/stylelint-16-support
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste authored Dec 20, 2023
2 parents bc1017e + a3bd27e commit 07519e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
import re
import logging
from SublimeLinter.lint import NodeLinter
from SublimeLinter.lint import util
from SublimeLinter.lint.linter import LintMatch

logger = logging.getLogger('SublimeLinter.plugin.stylelint')


class Stylelint(NodeLinter):
cmd = 'stylelint --formatter json --stdin-filename ${file}'
on_stderr = None
error_stream = util.STREAM_BOTH
line_col_base = (1, 1)
crash_regex = re.compile(
r'^.*?\r?\n?\w*Error: (.*)',
Expand Down

0 comments on commit 07519e7

Please sign in to comment.