UNPKG

@locker/eslint-plugin-locker

Version:
19 lines (18 loc) 656 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const eslint_rule_maker_1 = require("@locker/eslint-rule-maker"); const util_1 = require("../util"); exports.default = (0, eslint_rule_maker_1.createRule)({ meta: { docs: { description: `distorted Element.prototype.attachShadow`, category: 'Lightning Web Security', recommended: true, url: (0, util_1.docURL)('distorted-element-attach-shadow'), }, }, rule: { message: () => `Element.prototype.attachShadow is distorted by Lightning Web Security.`, search: ['*.attachShadow'], }, });