Skip to content

Commit

Permalink
don't access window.event, plus lint rule, phetsims/scenery#1053 phet…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 22, 2024
1 parent 7e167b9 commit 9fd6802
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eslint/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fd6802

Please sign in to comment.