bump prettier to 1.18.2 (denoland/deno_std#592)

Original: 06958a4ada
This commit is contained in:
Axetroy 2019-09-12 11:31:23 +08:00 committed by Ryan Dahl
parent 08087e921e
commit 878a9a29e7
37 changed files with 775 additions and 711 deletions

View file

@ -85,13 +85,11 @@ export async function getMatchingUrls(
);
const matchingRemoteUrls = includeRemote.filter(
(candidateUrl: string): boolean => {
return !excludeRemotePatterns.some(
(pattern: RegExp): boolean => {
const r = pattern.test(candidateUrl);
pattern.lastIndex = 0;
return r;
}
);
return !excludeRemotePatterns.some((pattern: RegExp): boolean => {
const r = pattern.test(candidateUrl);
pattern.lastIndex = 0;
return r;
});
}
);
@ -135,11 +133,9 @@ export async function main(root: string = cwd()): Promise<void> {
if (parsedArgs._.length) {
includeFiles = (parsedArgs._ as string[])
.map(
(fileGlob: string): string[] => {
return fileGlob.split(",");
}
)
.map((fileGlob: string): string[] => {
return fileGlob.split(",");
})
.flat();
} else {
includeFiles = DEFAULT_GLOBS;