Skip to content

Commit

Permalink
Merge pull request #29 from geta6/add_node_linter
Browse files Browse the repository at this point in the history
Using NodeLinter
  • Loading branch information
groteworld committed May 11, 2016
2 parents aff99a9 + 9790aee commit 3aa6d9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@

"""This module exports the jscs plugin class."""

from SublimeLinter.lint import Linter
from SublimeLinter.lint import NodeLinter


class Jscs(Linter):
class Jscs(NodeLinter):

"""Provides an interface to jscs."""

syntax = ('javascript', 'html', 'javascriptnext', 'javascript (jsx)', 'javascript (babel)')
npm_name = 'jscs'
cmd = 'jscs -r checkstyle'
version_args = '--version'
version_re = r'(?P<version>\d+\.\d+\.\d+)'
Expand Down

0 comments on commit 3aa6d9e

Please sign in to comment.