Skip to content

Commit

Permalink
fix lint task for perennial, phetsims/rosetta#370
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 21, 2023
1 parent 4e7ceb8 commit ea11603
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/grunt/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,9 @@ module.exports = function( grunt ) {
--disable-eslint-cache: cache will not be read or written
--fix: autofixable changes will be written to disk
--format: Append an additional set of rules for formatting
--type-info: Include rules for TypeScript that use type checking. Slows down eslint significantly.
--patterns: comma-separated list of directory/file patterns. Default: repo where the command was run.
--chip-away: output a list of responsible devs for each repo with lint problems
--disable-with-comment: add an es-lint disable with comment to lint errors`,
--disable-with-comment: add an es-lint disable with comment to lint errors
--repos: comma separated list of repos to lint in addition to the repo from running`,
wrapTask( async () => {
const lint = require( './lint' );

Expand All @@ -358,7 +357,9 @@ module.exports = function( grunt ) {
const chipAway = grunt.option( 'chip-away' );
const disableWithComment = grunt.option( 'disable-with-comment' );

const lintReturnValue = await lint( [ repo ], {
const extraRepos = grunt.option( 'repos' ) ? grunt.option( 'repos' ).split( ',' ) : [ ];

const lintReturnValue = await lint( [ repo, ...extraRepos ], {
cache: cache,
fix: fix,
format: format,
Expand Down

0 comments on commit ea11603

Please sign in to comment.