Socket
Socket
Sign inDemoInstall

buster-jshint

Package Overview
Dependencies
23
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    buster-jshint

Buster-extension: jshint your files as part of test run.


Version published
Weekly downloads
1
Maintainers
1
Install size
2.68 MB
Created
Weekly downloads
 

Readme

Source

buster-jshint Build Status

Simplified version of buster-lint extension for buster.js to make linting with jshint your JavaScript part of the test run, without extra stuff like watcher, plus gives you extra control on jshint options.

Does not bundle jshint, relies on npm dependency.

Installation

Get it from npm:

npm install buster-jshint

Then add it to your buster.js config file:

config["My tests"] = {
  extensions: [ require("buster-jshint") ]
};

Configuration

You'll probably want to change some options. All examples here show the default values, so while they are rather meaningless as actual configuration, they are illustrative.

Excluding files

To avoid linting dependencies or other nasty legacy bits, you can match the filename either by string or regexp.

config["My tests"] = {
  extensions: [ require("buster-jshint") ],
  "buster-jshint": {
    excludes: [ "jquery", "raphael" ] // default is [ ]
  }
};

Changing the rules

For jshint:

config["My tests"] = {
  extensions: [ require("buster-jshint") ],
  "buster-jshint": {
    options: {
      // jshint options
    }
  }
};

FAQs

Last updated on 16 Jun 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc