Skip to content
A vows macro for jshinting your project's code.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
node_modules/stats
screenshot
settings
test
README.md
package.json

README.md

PEDANT

A vows macro for jshinting your project's code

Example:

var vows = require('vows'),
    assert = require('assert'),
    path = require('path'),
    pedant = require('../lib/pedant');

vows.describe('An example of the "pedant" macro').addBatch(
  pedant(path.join(__dirname, '../'), pedant.settings.nodejitsu)
).export(module);

You can run this example yourself simply by running this project's test!

Install:

npm install pedant

Usage:

pedant(filepath, [settings])

  • Returns a vows batch.
  • First argument is the top-level directory of what you want to lint.
  • Second argument can be linter settings to pass to jshint.

pedant.settings

Contains some included jshint settings:

pedant.settings.nodejitsu

The official nodejitsu house style jshint settings.

Test:

npm test

License:

MIT/X11.

Something went wrong with that request. Please try again.