diff --git a/scripts/format b/scripts/format index 8c8113e6..f2edb54a 100755 --- a/scripts/format +++ b/scripts/format @@ -31,6 +31,12 @@ const filter = (files = []) => .filter(file => !optOut.some(pkg => file.indexOf(pkg) === 0)); const run = async (files = []) => { + const filteredFiles = filter(files); + + if (!filteredFiles.length) { + return; + } + const cp = execa( 'prettier', ['--write', '--single-quote'].concat(filter(files))