From b311179af31a34f8d7f20a327719f6dcb222d73e Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 31 May 2024 14:07:55 -0700 Subject: [PATCH] Include -- before file names for good measure --- lint-staged.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lint-staged.config.js b/lint-staged.config.js index 64ed2e5214..36c59ab33b 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -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' ]; @@ -53,7 +53,7 @@ module.exports = { ); if ( otherFiles.length ) { - commands.push( `composer lint ${ joinFiles( otherFiles ) }` ); + commands.push( `composer lint -- ${ joinFiles( otherFiles ) }` ); } return commands;