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

Package detail

eslint-mocha

kellyselden43MIT0.7.3

Auto inject ESLint tests into your Mocha suite

eslint, mocha

readme

eslint-mocha

Build Status Build status Code Climate Coverage Status

npm version dependencies Status devDependencies Status peerDependencies Status

Auto inject ESLint tests into your Mocha suite. This is a zero-code alternative to mocha-eslint, where you need to write some boilerplate code to get up and running.

Installation

npm install eslint-mocha

You also need eslint and mocha as dependencies.

Usage

eslint-mocha --eslint-args="my eslint args" --mocha-args="my mocha args"

Example

eslint-mocha --eslint-args="**/*.js" --mocha-args="test/**/*-test.js"