File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
115115run ( )
You can’t perform that action at this time.
0 commit comments