Allow running yarn lint on subset of paths (#34646)

This commit is contained in:
Sebastian "Sebbie" Silbermann
2025-09-30 12:30:40 +02:00
committed by GitHub
parent ba2214e571
commit e6f2a8a376
2 changed files with 10 additions and 4 deletions

View File

@@ -16,9 +16,9 @@ async function main() {
console.log('Hint: run `yarn linc` to only lint changed files.');
}
const {_, ...cliOptions} = minimist(process.argv.slice(2));
const {_: paths, ...cliOptions} = minimist(process.argv.slice(2));
if (await runESLint({onlyChanged: false, ...cliOptions})) {
if (await runESLint({onlyChanged: false, ...cliOptions, paths})) {
console.log('Lint passed.');
} else {
console.log('Lint failed.');