Skip to content

Commit

Permalink
fix(setup-lint.mjs): fix npm commands
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroMiguel committed Jan 23, 2023
1 parent 073b31d commit b8aa979
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/setup-lint.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b8aa979

Please sign in to comment.