Skip to content

Commit

Permalink
Merge pull request #6 from TomasDuda/master
Browse files Browse the repository at this point in the history
Extend NodeLinter to support local node_modules
  • Loading branch information
mmaday authored Sep 13, 2016
2 parents 8cafdfc + 9f64baa commit bb5383a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ Before using this plugin, you must ensure that `htmlhint` is installed on your s

1. Install [Node.js](http://nodejs.org) (and [npm](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) on Linux).

1. Install the latest `htmlhint` by typing the following in a terminal:
1. Install the latest `htmlhint` globally by typing the following in a terminal:
```
npm install -g htmlhint@latest
```
Or install `htmlhint` locally in your project folder (**you must have package.json file there**):
```
npm init -f
npm install htmlhint@latest
```

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

Expand Down
4 changes: 2 additions & 2 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"""This module exports the Htmlhint plugin class."""

import sublime
from SublimeLinter.lint import Linter, persist
from SublimeLinter.lint import NodeLinter, persist


class Htmlhint(Linter):
class Htmlhint(NodeLinter):

"""Provides an interface to htmlhint."""

Expand Down

0 comments on commit bb5383a

Please sign in to comment.