Socket
Socket
Sign inDemoInstall

mocha-eslint

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-eslint - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

17

index.js

@@ -8,5 +8,7 @@ var path = require('path');

var mochaInterface;
function test(p, opts) {
opts = opts || {};
it('should have no errors in ' + p, function () {
mochaInterface.it('should have no errors in ' + p, function () {
var format, warn;

@@ -54,4 +56,5 @@

module.exports = function (patterns, options) {
mochaInterface = getMochaInterface();
var contextName = (options && options.contextName) || 'eslint';
describe(contextName, function () {
mochaInterface.describe(contextName, function () {
globAll.sync(patterns).forEach(function (file) {

@@ -62,1 +65,11 @@ test(file, options);

};
function getMochaInterface () {
if (global.describe) {
return { describe: global.describe, it: global.it };
}
if (global.suite) {
return { describe: global.suite, it: global.test };
}
throw new Error('no mocha interface was found on the global scope');
}

10

package.json
{
"name": "mocha-eslint",
"version": "5.0.0",
"version": "6.0.0",
"description": "run ESLint as mocha tests",

@@ -17,4 +17,4 @@ "main": "index.js",

"dependencies": {
"chalk": "^2.4.1",
"eslint": "^5.10.0",
"chalk": "^2.4.2",
"eslint": "^6.6.0",
"glob-all": "^3.1.0",

@@ -24,4 +24,4 @@ "replaceall": "^0.1.6"

"devDependencies": {
"es6-promise": "^4.2.5",
"mocha": "^5.2.0"
"es6-promise": "^4.2.8",
"mocha": "^6.2.2"
},

@@ -28,0 +28,0 @@ "repository": {

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