eslint-plugin-mocha
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -0,1 +1,11 @@ | ||
## 1.1.0 (November 13, 2015) | ||
### Features | ||
* Implement new rule no-global-tests (#46) | ||
### Enhancements | ||
* Replace lodash with ramda (#45) | ||
## 1.0.0 (September 17, 2015) | ||
@@ -2,0 +12,0 @@ |
@@ -7,4 +7,5 @@ 'use strict'; | ||
'handle-done-callback': require('./lib/rules/handle-done-callback'), | ||
'no-synchronous-tests': require('./lib/rules/no-synchronous-tests') | ||
'no-synchronous-tests': require('./lib/rules/no-synchronous-tests'), | ||
'no-global-tests': require('./lib/rules/no-global-tests') | ||
} | ||
}; |
'use strict'; | ||
var _ = require('lodash'); | ||
var R = require('ramda'); | ||
@@ -41,5 +41,5 @@ module.exports = function (context) { | ||
function findParamInScope(paramName, scope) { | ||
return _.find(scope.variables, function (variable) { | ||
return R.find(function (variable) { | ||
return variable.name === paramName && variable.defs[0].type === 'Parameter'; | ||
}); | ||
}, scope.variables); | ||
} | ||
@@ -46,0 +46,0 @@ |
'use strict'; | ||
var _ = require('lodash'); | ||
var R = require('ramda'); | ||
@@ -41,5 +41,5 @@ module.exports = function (context) { | ||
function findPromiseReturnStatement(nodes) { | ||
return _.find(nodes, function (node) { | ||
return R.find(function (node) { | ||
return node.type === 'ReturnStatement' && node.argument && node.argument.type !== 'Literal'; | ||
}); | ||
}, nodes); | ||
} | ||
@@ -46,0 +46,0 @@ |
{ | ||
"name": "eslint-plugin-mocha", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Eslint rules for mocha.", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"lodash": "^3.9.3" | ||
"ramda": "^0.18.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
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
18278
13
202
+ Addedramda@^0.18.0
+ Addedramda@0.18.0(transitive)
- Removedlodash@^3.9.3