Socket
Socket
Sign inDemoInstall

mocha-eslint

Package Overview
Dependencies
3
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

14

index.js

@@ -13,6 +13,12 @@ var CLIEngine = require('eslint').CLIEngine;

it(`should have no errors in ${p}`, function () {
var report = cli.executeOnFiles([p]);
var formatter = cli.getFormatter(format);
// console.log(formatter(report.results));
if (report.errorCount !== 0) {
try {
var report = cli.executeOnFiles([p]);
var formatter = cli.getFormatter(format);
} catch (err) {
throw new Error(err);
}
if (
report &&
report.errorCount > 0
) {
throw new Error(

@@ -19,0 +25,0 @@ `${chalk.red('Code did not pass lint rules')}

{
"name": "mocha-eslint",
"version": "0.0.1",
"version": "0.0.2",
"description": "run ESLint as mocha tests",

@@ -16,5 +16,8 @@ "main": "index.js",

"license": "MIT",
"dependencies": {
"chalk": "^1.0"
},
"peerDependencies": {
"eslint": "~0.0",
"mocha": "~2.0"
"eslint": "^0.16.x",
"mocha": "^2.0"
},

@@ -21,0 +24,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc