sonarjs/hidden-files
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/hidden-files": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
The documentation shows no incorrect example for this rule.
let serveStatic = require("serve-static");
let app = express();
let serveStaticMiddleware = serveStatic('public', { 'index': false, 'dotfiles': 'ignore'}); // Compliant: ignore or deny are recommended values
let serveStaticDefault = serveStatic('public', { 'index': false}); // Compliant: by default, "dotfiles" (file or directory that begins with a dot) are not served (with the exception that files within a directory that begins with a dot are not ignored), see serve-static module documentation
app.use(serveStaticMiddleware);Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
sonarjs/hidden-files
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/hidden-files": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Function and method names should comply with a naming convention
Default export names and file names should match