UNPKG

tslint-to-eslint-config

Version:

Converts your TSLint configuration to the closest reasonable ESLint equivalent.

24 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertNoDocumentWrite = void 0; const convertNoDocumentWrite = () => { return { rules: [ { ruleArguments: [ { message: "Forbidden call to document.write.", selector: 'CallExpression[callee.type="MemberExpression"][callee.object.name="document"][callee.property.name=/^(write|writeln)$/]', }, { message: "Forbidden write to document.write.", selector: 'CallExpression[callee.type="MemberExpression"][callee.object.type="MemberExpression"][callee.object.object.name="window"][callee.object.property.name="document"][callee.property.name=/^(write|writeln)$/]', }, ], ruleName: "no-restricted-syntax", }, ], }; }; exports.convertNoDocumentWrite = convertNoDocumentWrite; //# sourceMappingURL=no-document-write.js.map