Skip to content

Commit

Permalink
Merge branch 'master' into a11ystring-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Sep 30, 2019
2 parents 7e3a8fe + abf477c commit ba4f356
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 43 deletions.
4 changes: 3 additions & 1 deletion eslint/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ module.exports = {
'phet-object-shorthand': 2,

// disallow parens surrounding single args in arrow functions
'arrow-parens': [ 2, 'as-needed' ]
'arrow-parens': [ 2, 'as-needed' ],

'no-trailing-spaces': [ 2, { skipBlankLines: true, ignoreComments: true } ]
},
env: {
browser: true,
Expand Down
41 changes: 0 additions & 41 deletions eslint/sim_es6_eslintrc_review.js

This file was deleted.

14 changes: 13 additions & 1 deletion js/SimVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
**************************************************************
* IMPORTANT NOTE: This file is copied from PERENNIAL to CHIPPER frequently. If this is in CHIPPER, then it is AUTO
* GENERATED; do not edit, as it will be overwritten. Make sure that any change here is supported by usages of
* CHIPPER's SimVersion (i.e. in JOIST/UpdateCheck.js), see https://github.com/phetsims/perennial/issues/111 for more
* CHIPPER's SimVersion (i.e. in JOIST/updateCheck.js), see https://github.com/phetsims/perennial/issues/111 for more
**************************************************************
*
* See https://github.com/phetsims/chipper/issues/560 for discussion on version ID definition.
Expand Down Expand Up @@ -113,6 +113,18 @@ const assert = typeof module !== 'undefined' ? require( 'assert' ) : window && w
};
}

/**
* @returns {boolean}
* @public
*/
get isSimNotPublished() {
return this.major < 1 || // e.g. 0.0.0-dev.1
( this.major === 1 && // e.g. 1.0.0-dev.1
this.minor === 0 &&
this.maintenance === 0 &&
this.testType );
}

/**
* Takes a serialized form of the SimVersion and returns an actual instance.
* @public
Expand Down

0 comments on commit ba4f356

Please sign in to comment.