Skip to content

Commit 7be9d3a

Browse files
authored
refactor: typo quit -> quiet (#287)
1 parent 1488785 commit 7be9d3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cli.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ If file/glob is omitted, './package.json' file will be processed.
2626
)
2727
}
2828

29-
function sortPackageJsonFiles(patterns, { isCheck, shouldBeQuit }) {
29+
function sortPackageJsonFiles(patterns, { isCheck, shouldBeQuiet }) {
3030
const files = globbySync(patterns)
31-
const printToStdout = shouldBeQuit ? () => {} : console.log
31+
const printToStdout = shouldBeQuiet ? () => {} : console.log
3232

3333
if (files.length === 0) {
3434
console.error('No matching files.')
@@ -93,13 +93,13 @@ function run() {
9393

9494
const patterns = []
9595
let isCheck = false
96-
let shouldBeQuit = false
96+
let shouldBeQuiet = false
9797

9898
for (const argument of cliArguments) {
9999
if (argument === '--check' || argument === '-c') {
100100
isCheck = true
101101
} else if (argument === '--quiet' || argument === '-q') {
102-
shouldBeQuit = true
102+
shouldBeQuiet = true
103103
} else {
104104
patterns.push(argument)
105105
}
@@ -109,7 +109,7 @@ function run() {
109109
patterns[0] = 'package.json'
110110
}
111111

112-
sortPackageJsonFiles(patterns, { isCheck, shouldBeQuit })
112+
sortPackageJsonFiles(patterns, { isCheck, shouldBeQuiet })
113113
}
114114

115115
run()

0 commit comments

Comments
 (0)