eslint-plugin-mocha
Advanced tools
Comparing version 8.1.0 to 8.2.0
@@ -0,1 +1,11 @@ | ||
## 8.2.0 (May 25, 2021) | ||
### Enhancements | ||
* Memoize names (increases speed by 10x) ([#280](https://github.com/lo1tuma/eslint-plugin-mocha/pull/280)) | ||
### Code Refactoring | ||
* - Avoid passing superfluous argument ([#278](https://github.com/lo1tuma/eslint-plugin-mocha/pull/278)) | ||
## 8.1.0 (March 5, 2021) | ||
@@ -2,0 +12,0 @@ |
@@ -284,3 +284,3 @@ 'use strict'; | ||
// Reports if it's a callback which can replace with arrows. | ||
const callbackInfo = getCallbackInfo(node, context); | ||
const callbackInfo = getCallbackInfo(node); | ||
@@ -287,0 +287,0 @@ if (callbackInfo.isCallback && |
@@ -17,2 +17,3 @@ 'use strict'; | ||
const allPass = require('ramda/src/allPass'); | ||
const memoizeWith = require('ramda/src/memoizeWith'); | ||
@@ -119,8 +120,10 @@ const INTERFACES = { | ||
const getNamesByTypeMemoized = memoizeWith((type, options) => JSON.stringify({ type, options }), getNamesByType); | ||
function getTestCaseNames(options) { | ||
return getNamesByType(TYPES.testCase, options); | ||
return getNamesByTypeMemoized(TYPES.testCase, options); | ||
} | ||
function getSuiteNames(options) { | ||
return getNamesByType(TYPES.suite, options); | ||
return getNamesByTypeMemoized(TYPES.suite, options); | ||
} | ||
@@ -127,0 +130,0 @@ |
{ | ||
"name": "eslint-plugin-mocha", | ||
"version": "8.1.0", | ||
"version": "8.2.0", | ||
"description": "Eslint rules for mocha.", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
89029
30
1818