From e9a5e0f39f0a14c6c9b63567397abcc0c5068c1b Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 14 Feb 2019 16:45:49 -0900 Subject: [PATCH] add ' static get ' to bad sim text, https://github.com/phetsims/tasks/issues/983 --- eslint/rules/bad-sim-text.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eslint/rules/bad-sim-text.js b/eslint/rules/bad-sim-text.js index d240aad3..e0f92cd0 100644 --- a/eslint/rules/bad-sim-text.js +++ b/eslint/rules/bad-sim-text.js @@ -15,6 +15,9 @@ module.exports = function( context ) { var badTextsForSimCode = [ + // babel doesn't support compiling static getters, see https://github.com/phetsims/tasks/issues/983 + ' static get ', + // should be using dot.Util.roundSymmetric, Math.round does not treat positive and negative numbers // symmetrically see https://github.com/phetsims/dot/issues/35#issuecomment-113587879 'Math.round',