From 9fd68027971cd5c4f4eb4bd406d83d755638a3be Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 16 Feb 2021 12:28:14 -0900 Subject: [PATCH] don't access window.event, plus lint rule, https://github.com/phetsims/scenery/issues/1053 https://github.com/phetsims/ratio-and-proportion/issues/353 --- eslint/.eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eslint/.eslintrc.js b/eslint/.eslintrc.js index d4dde271..f4b1f373 100644 --- a/eslint/.eslintrc.js +++ b/eslint/.eslintrc.js @@ -177,8 +177,12 @@ module.exports = { }, globals: { - // read-only globals --------------------------------- + // globals that should never be accessed --------------------------------- + + // Using window.event is most likely a bug, instead the event should be passed through via a parameter, discovered in https://github.com/phetsims/scenery/issues/1053 + event: 'off', + // read-only globals --------------------------------- phet: false, // allow assertions