rrdelaney / jadelint

:dragon: A linter for the Jade templating language
https://rrdelaney.github.io/jadelint
MIT License
6 stars 1 forks source link

Feature Request: provide a node interface #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

In the meantime, I'd propose not using process.exit so that the linter can be included

rrdelaney commented 9 years ago

Hey there :) so in my package.json i specify the Linter class as my main file https://github.com/rrdelaney/jadelint/blob/master/src/Linter.coffee so it should be pretty easy to play around with.

There's doc blocks all around the source, and I'd be glad to help you make that work for your linter, but for a quick example check out https://github.com/rrdelaney/grunt-jadelint/blob/master/tasks/jadelint.js

rrdelaney commented 9 years ago

You can also find the generated API docs at http://ryandelaney.io/jadelint/api/