Skip to content

Commit

Permalink
apply nested eslint configs for entry points (allowing floating promi…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 3, 2024
1 parent 6ac4165 commit 4d30232
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/grunt/tasks/doc-dot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,7 @@ let html = template.replace( '{{API_INDEX}}', indexHTML ).replace( '{{API_CONTEN

html = beautify_html( html, { indent_size: 2 } );

fs.writeFileSync( 'doc/index.html', html );
fs.writeFileSync( 'doc/index.html', html );

// TODO: Why does this not fail lint in Webstorm? Rename grunt/tasks/eslint.config.mjs and it fails correctly. https://github.com/phetsims/chipper/issues/1483
// (async()=>{})();
16 changes: 16 additions & 0 deletions js/grunt/tasks/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2024, University of Colorado Boulder

/**
* ESLint configuration for grunt tasks.
*
* @author Sam Reid (PhET Interactive Simulations)
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

import allowFloatingPromises from '../../../../perennial-alias/js/eslint/config/util/allowFloatingPromises.mjs';
import eslintConfig from '../eslint.config.mjs';

export default [
...eslintConfig,
...allowFloatingPromises
];

0 comments on commit 4d30232

Please sign in to comment.