diff --git a/bin/setup-lint.mjs b/bin/setup-lint.mjs index d2b5d4a..1a64337 100644 --- a/bin/setup-lint.mjs +++ b/bin/setup-lint.mjs @@ -13,10 +13,8 @@ readLineInterface.question( (userInput) => { readLineInterface.close() if (userInput.toLowerCase() === 'y') { - exec('npm pkg set scripts.lint="eslint ."') - exec('npm pkg set scripts.lint:fix="eslint . --fix"') exec( - 'npm pkg set scripts.format="prettier --write \'./**/*.{js,jsx,json}\'"', + 'npm pkg set scripts.lint="eslint ." && npm pkg set scripts.lint:fix="eslint . --fix" && npm pkg set scripts.format="prettier --write \'./**/*.{js,jsx,json}\'"', ) console.log('Now you can use "npm run lint" to lint your files.') } else {