sonarjs/no-os-command-from-path
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/no-os-command-from-path": "error",
},
},
];The documentation shows no incorrect example for this rule.
const cp = require('child_process');
cp.exec('/usr/bin/file.exe'); // CompliantExamples from the ESLint documentation.
sonarjs/no-os-command-from-path
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-os-command-from-path": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Initial values of parameters, caught exceptions, and loop variables should not be ignored
Wrapper objects should not be used for primitive types
Assignments should not be made from within sub-expressions