Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mocha-jscs

tomchentw1.9kMIT5.0.1

Add jscs as mocha test in your test suite.

mocha, jscs, test, suite

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

5.0.1 (2016-05-31)

5.0.0 (2016-05-15)

Features

  • package.json: upgrade jscs version (#11) (97e3f86)

4.2.1 (2016-04-28)

4.2.0 (2016-01-31)

Bug Fixes

  • package.json: update devDependencies (0c9464e)

4.1.1 (2016-01-31)

4.1.0 (2016-01-31)

4.0.0 (2015-09-30)

Features

  • index.js: use colorized output (42ca2ca), closes #9

<a name"3.0.0">

3.0.0 (2015-09-21)

Bug Fixes

  • index.js: timeout to 30s a la mocha-jshint (10792e16)

<a name"2.0.0">

2.0.0 (2015-09-07)

Features

1.2.0 (2015-06-17)

Features

  • index.js: switch to checkPath for both files and directories (2274e3b5)

1.1.0 (2015-04-29)

1.0.2 (2014-11-20)

1.0.1 (2014-10-26)

Features

  • index.js: create mocha suite with paths (07dfcd2d)