From b8aa97969e8c5813315f1b9fc99bb7a59a34fbb1 Mon Sep 17 00:00:00 2001 From: Sandro Date: Mon, 23 Jan 2023 18:39:10 +0000 Subject: [PATCH] fix(setup-lint.mjs): fix npm commands --- bin/setup-lint.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {