sonarjs/publicly-writable-directories
eslint-plugin-sonarjs
No autofixRecommended
eslint.config.js
export default [
{
rules: {
"sonarjs/publicly-writable-directories": "error",
},
},
];Temporary files should not be created in publicly writable directories
The documentation shows no incorrect example for this rule.
const tmp = require('tmp');
const tmpobj = tmp.fileSync(); // CompliantExamples from the ESLint documentation.
sonarjs/publicly-writable-directories
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/publicly-writable-directories": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Public "static" fields should be read-only
"Array.reduce()" calls should include an initial value
Pseudorandom number generators (PRNGs) should not be used in security contexts
Debugging features should not be enabled in production
Regular expressions should not be too complicated