Skip to content

Commit

Permalink
Add rule to prevent singular Util modules, see phetsims/tasks#966
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid authored and zepumph committed Oct 22, 2024
1 parent 6b51e38 commit f5eaafb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eslint/rules/bad-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ module.exports = function( context ) {

'@return ',

'Util = require( \'',// Utils should now be plural, see https://github.com/phetsims/tasks/issues/966

// if on a one line arrow function returning something, prefer instead `() => theReturn`, see https://github.com/phetsims/chipper/issues/790
' => { return '
];
Expand Down

0 comments on commit f5eaafb

Please sign in to comment.