New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mocha-jscs

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-jscs

Add jscs as mocha test in your test suite.

  • 5.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
46
decreased by-87.33%
Maintainers
1
Weekly downloads
 
Created
Source

mocha-jscs

Add jscs as mocha test in your test suite.

Version Travis CI Quality Coverage Dependencies Gitter

Usage

npm install mocha-jscs --save-dev

Make sure you have a jscs config defined using either:

  • a .jscs.json file in your project root
  • or jscs options in your package.json

In your config you should use one of the available presets or for more advanced configurations, define your own set of rules.

Next, add this to test/index.js in your project, with the following content:

require("mocha-jscs")();

You can also config the paths to run against:

require("mocha-jscs")(["./lib"]); // Array of paths

That's it! You are done.

Contributing

devDependency Status

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

Keywords

FAQs

Package last updated on 31 May 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc