Skip to content

Commit

Permalink
Include -- before file names for good measure
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed May 31, 2024
1 parent f30541c commit b311179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const joinFiles = ( files ) => {
const PLUGIN_BASE_NAME = path.basename( __dirname );

module.exports = {
'**/*.js': ( files ) => `npm run lint-js ${ joinFiles( files ) }`,
'**/*.js': ( files ) => `npm run lint-js -- ${ joinFiles( files ) }`,
'**/*.php': ( files ) => {
const commands = [ 'composer phpstan' ];

Expand Down Expand Up @@ -53,7 +53,7 @@ module.exports = {
);

if ( otherFiles.length ) {
commands.push( `composer lint ${ joinFiles( otherFiles ) }` );
commands.push( `composer lint -- ${ joinFiles( otherFiles ) }` );
}

return commands;
Expand Down

0 comments on commit b311179

Please sign in to comment.