Socket
Socket
Sign inDemoInstall

eslint-plugin-mocha

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-mocha - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 3.0.0 (June 2, 2016)
### Breaking Changes
* Remove autofix on no-exclusive-tests rule. (#63)
## 2.2.0 (April 14, 2016)

@@ -2,0 +8,0 @@

13

lib/rules/no-exclusive-tests.js

@@ -27,12 +27,2 @@ 'use strict';

function createAutofixFunction(callee) {
var endRangeOfMemberExpression = callee.range[1],
endRangeOfMemberExpressionObject = callee.object.range[1],
rangeToRemove = [ endRangeOfMemberExpressionObject, endRangeOfMemberExpression ];
return function removeOnlyProperty(fixer) {
return fixer.removeRange(rangeToRemove);
};
}
return {

@@ -45,4 +35,3 @@ CallExpression: function (node) {

node: callee.property,
message: 'Unexpected exclusive mocha test.',
fix: createAutofixFunction(callee)
message: 'Unexpected exclusive mocha test.'
});

@@ -49,0 +38,0 @@ }

{
"name": "eslint-plugin-mocha",
"version": "2.2.0",
"version": "3.0.0",
"description": "Eslint rules for mocha.",

@@ -5,0 +5,0 @@ "main": "index.js",

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