Skip to content

Commit

Permalink
minor updates, #410
Browse files Browse the repository at this point in the history
zepumph committed Nov 15, 2024
1 parent 9d28239 commit a4c5bfc
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/common/phetTimingLog.js
Original file line number Diff line number Diff line change
@@ -126,6 +126,7 @@ const phetTimingLog = {
* Invoke the task and return the return value of the task.
* @param {string} taskName
* @param {()=>Promise<T>} task
* @param [options]
* @returns {Promise<T>}
*/
async startAsync( taskName, task, options ) {
6 changes: 5 additions & 1 deletion js/eslint/phet-rules/require-statement-match.js
Original file line number Diff line number Diff line change
@@ -127,7 +127,11 @@ module.exports = {
}

// Enforce no .js suffix for relative paths in javascript files, see https://github.com/phetsims/chipper/issues/1498
const enforceNoJsSuffix = filename.endsWith( '.js' ) && !rhs.includes( 'node_modules' ); // Set to false if not enforcing
// Set to false if not enforcing
const enforceNoJsSuffix = filename.endsWith( '.js' ) && !rhs.includes( 'node_modules' ) &&

// TODO: remove this as part of https://github.com/phetsims/perennial/issues/410
!filename.includes( 'perennial' );

if ( enforceNoJsSuffix && hasExtension && extName === '.js' ) {
context.report( {

0 comments on commit a4c5bfc

Please sign in to comment.