sonarjs/memoize-cache-key
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/memoize-cache-key": "error",
},
},
];Lodash and Underscore.js memoize calls on functions with multiple parameters should use an explicit cache key function
No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/memoize-cache-key
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/memoize-cache-key": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
"switch" statements should not have too many "case" clauses
"for" loop increment clauses should modify the loops' counters
Links with identical accessible names should have identical targets
"new" should only be used with functions and classes
Opened windows should not have access to the originating page
All branches in a conditional structure should not have exactly the same implementation