sonarjs/hashing
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/hashing": "error",
},
},
];The documentation shows no incorrect example for this rule.
const crypto = require("crypto");
const hash = crypto.createHash('sha512'); // CompliantExamples from the ESLint documentation.
sonarjs/hashing
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/hashing": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Lifecycle hooks should not be interleaved with test cases or nested suites
Generators should explicitly "yield" a value
"in" should not be used with primitive types
Future reserved words should not be used as identifiers
Functions should be called consistently with or without "new"