From 55e77a872d84c748363c2ce9314a8070c8db65eb Mon Sep 17 00:00:00 2001 From: Frederik Braun Date: Mon, 6 Mar 2017 12:26:34 +0100 Subject: [PATCH 2/2] Add missing rules to index.js (fixes #4) --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 94c89df..6af3e66 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,7 @@ "use strict"; module.exports = { rules: { + 'accidental_assignment': require('./lib/rules/accidental_assignment.js'), 'assign_to_hostname': require('./lib/rules/assign_to_hostname'), 'assign_to_href': require('./lib/rules/assign_to_href'), 'assign_to_location': require('./lib/rules/assign_to_location'), @@ -53,6 +54,7 @@ module.exports = { 'object_mozSystem': require('./lib/rules/object_mozSystem'), 'property_addIdleObserver': require('./lib/rules/property_addIdleObserver'), 'property_createContextualFragment': require('./lib/rules/property_createContextualFragment'), + 'property_crypto': require('./lib/rules/property_crypto'), 'property_geolocation': require('./lib/rules/property_geolocation'), 'property_getDataStores': require('./lib/rules/property_getDataStores'), 'property_getDeviceStorage': require('./lib/rules/property_getDeviceStorage'), @@ -89,6 +91,7 @@ module.exports = { 'property_sessionStorage': require('./lib/rules/property_sessionStorage') }, rulesConfig: { + 'accidental_assignment': 2, 'assign_to_hostname': 2, 'assign_to_href': 2, 'assign_to_location': 2, @@ -141,6 +144,7 @@ module.exports = { 'object_mozSystem': 2, 'property_addIdleObserver': 2, 'property_createContextualFragment': 2, + 'property_crypto': 2, 'property_geolocation': 2, 'property_getDataStores': 2, 'property_getDeviceStorage': 2, -- 2.7.4