@locker/eslint-plugin-locker
Version:
Lightning Web Security ESLint rules
123 lines (122 loc) • 12.1 kB
JavaScript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.rules = void 0;
const distorted_cachestorage_properties_1 = __importDefault(require("./rules/distorted-cachestorage-properties"));
const distorted_cookie_store_blocked_properties_1 = __importDefault(require("./rules/distorted-cookie-store-blocked-properties"));
const distorted_cookie_store_properties_1 = __importDefault(require("./rules/distorted-cookie-store-properties"));
const distorted_data_transfer_blocked_properties_1 = __importDefault(require("./rules/distorted-data-transfer-blocked-properties"));
const distorted_document_blocked_properties_1 = __importDefault(require("./rules/distorted-document-blocked-properties"));
const distorted_document_cookie_1 = __importDefault(require("./rules/distorted-document-cookie"));
const distorted_document_domain_setter_1 = __importDefault(require("./rules/distorted-document-domain-setter"));
const distorted_document_element_replacechildren_1 = __importDefault(require("./rules/distorted-document-element-replacechildren"));
const distorted_document_exec_command_1 = __importDefault(require("./rules/distorted-document-exec-command"));
const distorted_element_attach_shadow_1 = __importDefault(require("./rules/distorted-element-attach-shadow"));
const distorted_element_blocked_properties_1 = __importDefault(require("./rules/distorted-element-blocked-properties"));
const distorted_element_get_inner_html_1 = __importDefault(require("./rules/distorted-element-get-inner-html"));
const distorted_element_inner_html_setter_1 = __importDefault(require("./rules/distorted-element-inner-html-setter"));
const distorted_element_insert_adjacent_html_1 = __importDefault(require("./rules/distorted-element-insert-adjacent-html"));
const distorted_element_outer_html_setter_1 = __importDefault(require("./rules/distorted-element-outer-html-setter"));
const distorted_element_set_attribute_1 = __importDefault(require("./rules/distorted-element-set-attribute"));
const distorted_element_set_html_1 = __importDefault(require("./rules/distorted-element-set-html"));
const distorted_element_sethtmlunsafe_1 = __importDefault(require("./rules/distorted-element-sethtmlunsafe"));
const distorted_element_shadow_root_getter_1 = __importDefault(require("./rules/distorted-element-shadow-root-getter"));
const distorted_element_toggle_attribute_1 = __importDefault(require("./rules/distorted-element-toggle-attribute"));
const distorted_html_element_blocked_properties_1 = __importDefault(require("./rules/distorted-html-element-blocked-properties"));
const distorted_html_element_inner_text_setter_1 = __importDefault(require("./rules/distorted-html-element-inner-text-setter"));
const distorted_html_element_outer_text_setter_1 = __importDefault(require("./rules/distorted-html-element-outer-text-setter"));
const distorted_html_embed_object_element_blocked_properties_1 = __importDefault(require("./rules/distorted-html-embed-object-element-blocked-properties"));
const distorted_html_iframe_element_blocked_properties_1 = __importDefault(require("./rules/distorted-html-iframe-element-blocked-properties"));
const distorted_html_iframe_script_element_src_setter_1 = __importDefault(require("./rules/distorted-html-iframe-script-element-src-setter"));
const distorted_html_link_element_rel_list_setter_1 = __importDefault(require("./rules/distorted-html-link-element-rel-list-setter"));
const distorted_html_link_element_rel_setter_1 = __importDefault(require("./rules/distorted-html-link-element-rel-setter"));
const distorted_named_node_map_set_named_item_1 = __importDefault(require("./rules/distorted-named-node-map-set-named-item"));
const distorted_navigator_sendbeacon_1 = __importDefault(require("./rules/distorted-navigator-sendbeacon"));
const distorted_navigator_service_worker_getter_1 = __importDefault(require("./rules/distorted-navigator-service-worker-getter"));
const distorted_node_insertbefore_1 = __importDefault(require("./rules/distorted-node-insertbefore"));
const distorted_node_removechild_1 = __importDefault(require("./rules/distorted-node-removechild"));
const distorted_node_replacechild_1 = __importDefault(require("./rules/distorted-node-replacechild"));
const distorted_node_text_content_setter_1 = __importDefault(require("./rules/distorted-node-text-content-setter"));
const distorted_range_create_contextual_fragment_1 = __importDefault(require("./rules/distorted-range-create-contextual-fragment"));
const distorted_range_delete_contents_1 = __importDefault(require("./rules/distorted-range-delete-contents"));
const distorted_range_extract_contents_1 = __importDefault(require("./rules/distorted-range-extract-contents"));
const distorted_range_insertnode_1 = __importDefault(require("./rules/distorted-range-insertnode"));
const distorted_shared_worker_constructor_1 = __importDefault(require("./rules/distorted-shared-worker-constructor"));
const distorted_storage_constructor_1 = __importDefault(require("./rules/distorted-storage-constructor"));
const distorted_trusted_type_policy_factory_create_policy_1 = __importDefault(require("./rules/distorted-trusted-type-policy-factory-create-policy"));
const distorted_url_create_object_url_1 = __importDefault(require("./rules/distorted-url-create-object-url"));
const distorted_webassembly_blocked_properties_1 = __importDefault(require("./rules/distorted-webassembly-blocked-properties"));
const distorted_window_blocked_properties_1 = __importDefault(require("./rules/distorted-window-blocked-properties"));
const distorted_window_fetch_1 = __importDefault(require("./rules/distorted-window-fetch"));
const distorted_window_fetchLater_1 = __importDefault(require("./rules/distorted-window-fetchLater"));
const distorted_window_frames_getter_1 = __importDefault(require("./rules/distorted-window-frames-getter"));
const distorted_window_length_getter_1 = __importDefault(require("./rules/distorted-window-length-getter"));
const distorted_window_onstorage_setter_1 = __importDefault(require("./rules/distorted-window-onstorage-setter"));
const distorted_window_set_interval_1 = __importDefault(require("./rules/distorted-window-set-interval"));
const distorted_window_set_timeout_1 = __importDefault(require("./rules/distorted-window-set-timeout"));
const distorted_worker_constructor_1 = __importDefault(require("./rules/distorted-worker-constructor"));
const distorted_xml_http_request_window_open_1 = __importDefault(require("./rules/distorted-xml-http-request-window-open"));
const distorted_xsltprocessor_transformtodocument_1 = __importDefault(require("./rules/distorted-xsltprocessor-transformtodocument"));
const distorted_xsltprocessor_transformtofragment_1 = __importDefault(require("./rules/distorted-xsltprocessor-transformtofragment"));
const undefined_document_all_1 = __importDefault(require("./rules/undefined-document-all"));
exports.rules = {
'distorted-cachestorage-properties': distorted_cachestorage_properties_1.default,
'distorted-cookie-store-blocked-properties': distorted_cookie_store_blocked_properties_1.default,
'distorted-cookie-store-properties': distorted_cookie_store_properties_1.default,
'distorted-data-transfer-blocked-properties': distorted_data_transfer_blocked_properties_1.default,
'distorted-document-blocked-properties': distorted_document_blocked_properties_1.default,
'distorted-document-cookie': distorted_document_cookie_1.default,
'distorted-document-domain-setter': distorted_document_domain_setter_1.default,
'distorted-document-element-replacechildren': distorted_document_element_replacechildren_1.default,
'distorted-document-exec-command': distorted_document_exec_command_1.default,
'distorted-element-attach-shadow': distorted_element_attach_shadow_1.default,
'distorted-element-blocked-properties': distorted_element_blocked_properties_1.default,
'distorted-element-get-inner-html': distorted_element_get_inner_html_1.default,
'distorted-element-inner-html-setter': distorted_element_inner_html_setter_1.default,
'distorted-element-insert-adjacent-html': distorted_element_insert_adjacent_html_1.default,
'distorted-element-outer-html-setter': distorted_element_outer_html_setter_1.default,
'distorted-element-set-attribute': distorted_element_set_attribute_1.default,
'distorted-element-set-html': distorted_element_set_html_1.default,
'distorted-element-sethtmlunsafe': distorted_element_sethtmlunsafe_1.default,
'distorted-element-shadow-root-getter': distorted_element_shadow_root_getter_1.default,
'distorted-element-toggle-attribute': distorted_element_toggle_attribute_1.default,
'distorted-html-element-blocked-properties': distorted_html_element_blocked_properties_1.default,
'distorted-html-element-inner-text-setter': distorted_html_element_inner_text_setter_1.default,
'distorted-html-element-outer-text-setter': distorted_html_element_outer_text_setter_1.default,
'distorted-html-embed-object-element-blocked-properties': distorted_html_embed_object_element_blocked_properties_1.default,
'distorted-html-iframe-element-blocked-properties': distorted_html_iframe_element_blocked_properties_1.default,
'distorted-html-iframe-script-element-src-setter': distorted_html_iframe_script_element_src_setter_1.default,
'distorted-html-link-element-rel-list-setter': distorted_html_link_element_rel_list_setter_1.default,
'distorted-html-link-element-rel-setter': distorted_html_link_element_rel_setter_1.default,
'distorted-named-node-map-set-named-item': distorted_named_node_map_set_named_item_1.default,
'distorted-navigator-sendbeacon': distorted_navigator_sendbeacon_1.default,
'distorted-navigator-service-worker-getter': distorted_navigator_service_worker_getter_1.default,
'distorted-node-insertbefore': distorted_node_insertbefore_1.default,
'distorted-node-removechild': distorted_node_removechild_1.default,
'distorted-node-replacechild': distorted_node_replacechild_1.default,
'distorted-node-text-content-setter': distorted_node_text_content_setter_1.default,
'distorted-range-create-contextual-fragment': distorted_range_create_contextual_fragment_1.default,
'distorted-range-delete-contents': distorted_range_delete_contents_1.default,
'distorted-range-extract-contents': distorted_range_extract_contents_1.default,
'distorted-range-insertnode': distorted_range_insertnode_1.default,
'distorted-shared-worker-constructor': distorted_shared_worker_constructor_1.default,
'distorted-storage-constructor': distorted_storage_constructor_1.default,
'distorted-trusted-type-policy-factory-create-policy': distorted_trusted_type_policy_factory_create_policy_1.default,
'distorted-url-create-object-url': distorted_url_create_object_url_1.default,
'distorted-webassembly-blocked-properties': distorted_webassembly_blocked_properties_1.default,
'distorted-window-blocked-properties': distorted_window_blocked_properties_1.default,
'distorted-window-fetch': distorted_window_fetch_1.default,
'distorted-window-fetchLater': distorted_window_fetchLater_1.default,
'distorted-window-frames-getter': distorted_window_frames_getter_1.default,
'distorted-window-length-getter': distorted_window_length_getter_1.default,
'distorted-window-onstorage-setter': distorted_window_onstorage_setter_1.default,
'distorted-window-set-interval': distorted_window_set_interval_1.default,
'distorted-window-set-timeout': distorted_window_set_timeout_1.default,
'distorted-worker-constructor': distorted_worker_constructor_1.default,
'distorted-xml-http-request-window-open': distorted_xml_http_request_window_open_1.default,
'distorted-xsltprocessor-transformtodocument': distorted_xsltprocessor_transformtodocument_1.default,
'distorted-xsltprocessor-transformtofragment': distorted_xsltprocessor_transformtofragment_1.default,
'undefined-document-all': undefined_document_all_1.default,
};