lab-lint
Lint test to be integrated into the lab test system.
Last updated 7 years ago by leichtgewicht .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lab-lint 
SYNC missed versions from official npm registry.

lab-lint

This small library offers JsLinting for the spumko/lab testing framework.

usage

Install the library using npm:

npm i lab-lint --save-dev

Create a unit test in your /test folder and add following lines:

"use strict";

/*jslint nomen: true*/
var dirname = __dirname;
/*jslint nomen: false */

var Lab = require("lab");

require("lab-lint")(Lab, dirname);

This will automatically add linting of all .js files in the /lib and /test folder of your project. (yes, it is opinionated :-p)

configuration

You can setup your guidelines by adding a .jslint file to your project folder. It's a json file and accepts all settings that jslint accepts.

Current Tags

  • 0.0.3                                ...           latest (7 years ago)

4 Versions

  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |