website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
21 lines • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DetectEvalWithExpressionRule = void 0;
const eslint_helper_1 = require("../../../linters/eslint.helper");
class DetectEvalWithExpressionRule {
constructor(dom, lightHouse, htmlValidator, eslint) {
this.id = 'detect-eval-with-expression';
this.tags = ['javascript', 'security'];
this.ruleUrl = 'https://github.com/eslint-community/eslint-plugin-security/blob/main/docs/rules/detect-eval-with-expression.md';
this.description = 'Detects "eval(variable)" which can allow an attacker to run arbitrary code inside your process.';
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.DetectEvalWithExpressionRule = DetectEvalWithExpressionRule;
//# sourceMappingURL=detect-eval-with-expression.rule.js.map