Skip to content

Commit

Permalink
remove static getters from bad text, phetsims/tasks#1048
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 22, 2024
1 parent 4b7c987 commit 1261272
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions eslint/rules/bad-sim-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ module.exports = function( context ) {
// see getBadTextTester for schema.
const forbiddenTextObjects = [

// babel doesn't support compiling static getters, see https://github.com/phetsims/tasks/issues/983
{ id: ' static get ', codeTokens: [ 'static', 'get' ] },

// should be using dot.Utils.roundSymmetric, Math.round does not treat positive and negative numbers
// symmetrically see https://github.com/phetsims/dot/issues/35#issuecomment-113587879
{ id: 'Math.round(', codeTokens: [ 'Math', '.', 'round', '(' ] },
Expand Down

0 comments on commit 1261272

Please sign in to comment.