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 1.0.0 to 1.1.0

lib/rules/no-global-tests.js

10

CHANGELOG.md

@@ -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 @@

3

index.js

@@ -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": {

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