eslint-plugin-mocha
Advanced tools
Comparing version 2.2.0 to 3.0.0
@@ -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 @@ |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21816
296