Skip to content

Commit

Permalink
Add *.js suffix in relative require statements, remove unnecessary es…
Browse files Browse the repository at this point in the history
…lint-disable directives, rename require variables, see phetsims/chipper#1498
  • Loading branch information
samreid committed Oct 28, 2024
1 parent e9114c6 commit 57f221a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2013-2016, University of Colorado Boulder

const Gruntfile = require( '../chipper/Gruntfile' );
const registerTasks = require( '../perennial-alias/js/grunt/util/registerTasks' );
const Gruntfile = require( '../chipper/Gruntfile.js' );
const registerTasks = require( '../perennial-alias/js/grunt/util/registerTasks.js' );

/**
* Dot grunt tasks
Expand Down
6 changes: 3 additions & 3 deletions js/grunt/tasks/doc-dot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @author Jonathan Olson <[email protected]>
*/
const esprima = require( 'esprima' );
const jsBeautify = require( 'js-beautify' ); // eslint-disable-line phet/require-statement-match
const extractDocumentation = require( '../../../../chipper/js/common/extractDocumentation' );
const documentationToHTML = require( '../../../../chipper/js/common/documentationToHTML' );
const jsBeautify = require( 'js-beautify' );
const extractDocumentation = require( '../../../../chipper/js/common/extractDocumentation.js' );
const documentationToHTML = require( '../../../../chipper/js/common/documentationToHTML.js' );
const fs = require( 'fs' );

// constants
Expand Down

0 comments on commit 57f221a

Please sign in to comment.