Skip to content

Commit

Permalink
update options and import support, phetsims/ratio-and-proportion#432
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 4, 2022
1 parent b956587 commit 1e6e531
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eslint/rules/bad-sim-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,17 @@ module.exports = function( context ) {
// Decided on during developer meeting, in regards to https://github.com/phetsims/scenery/issues/1324, use `{ Type }`
// import syntax from SCENERY/imports.js
{
id: 'import from scenery not from imports.js',
id: 'should import from SCENERY/imports.js instead of directly',
regex: /import.*from.*\/scenery\/(?!js\/imports.js)/
},

// Decided on during developer meeting, in regards to https://github.com/phetsims/scenery/issues/1324, use `{ Type }`
// import syntax from KITE/imports.js
{
id: 'should import from KITE/imports.js instead of directly',
regex: /import.*from.*\/kite\/(?!js\/imports.js)/
},

// DOT/Utils.toFixed or DOT/Utils.toFixedNumber should be used instead of toFixed.
// JavaScript's toFixed is notoriously buggy. Behavior differs depending on browser,
// because the spec doesn't specify whether to round or floor.
Expand Down

0 comments on commit 1e6e531

Please sign in to comment.