Skip to content

Commit

Permalink
Remove opt-out of enforceNoJsSuffix in perennial, see #403 and #410
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 19, 2024
1 parent 4dd9dfa commit 66048bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/eslint/phet-rules/require-statement-match.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ module.exports = {

// Enforce no .js suffix for relative paths in javascript files, see https://github.com/phetsims/chipper/issues/1498
// 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' );
const enforceNoJsSuffix = filename.endsWith( '.js' ) && !rhs.includes( 'node_modules' );

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

0 comments on commit 66048bb

Please sign in to comment.