sonarjs/reduce-initial-value
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/reduce-initial-value": "error",
},
},
];"Array.reduce()" calls should include an initial value
No code example for this rule
The linters' documentation does not include one we could extract.
sonarjs/reduce-initial-value
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/reduce-initial-value": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Temporary files should not be created in publicly writable directories
Public "static" fields should be read-only
Regular expressions should not be too complicated
Pseudorandom number generators (PRNGs) should not be used in security contexts
Wallet phrases should not be hard-coded