website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
21 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DetectNonLiteralFsFilenameRule = void 0;
const eslint_helper_1 = require("../../../linters/eslint.helper");
class DetectNonLiteralFsFilenameRule {
constructor(dom, lightHouse, htmlValidator, eslint) {
this.id = 'detect-non-literal-fs-filename';
this.tags = ['javascript', 'security'];
this.ruleUrl = 'https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-non-literal-fs-filename.md';
this.description = 'Detects variable in filename argument of "fs" calls, which might allow an attacker to access anything on your system.';
this.dom = dom;
this.eslint = eslint;
this.lightHouse = lightHouse;
this.htmlValidator = htmlValidator;
}
check() {
return eslint_helper_1.EslintHelper.identifyRuleSecurity(this.id, this.ruleFlow, this.eslint);
}
}
exports.DetectNonLiteralFsFilenameRule = DetectNonLiteralFsFilenameRule;
//# sourceMappingURL=detect-non-literal-fs-filename.rule.js.map