diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-30 03:16:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 21:16:48 -0500 |
commit | 73a3cc21d0e7ceec1275078db125f57ce97725fb (patch) | |
tree | 17d845d5d125d3ba8ecefa49e57e02e9c088c68b /std/prettier/ignore.ts | |
parent | f0a6062012c4e09553877c9feedb3fbc3d4625b9 (diff) |
feat: dprint formatter (#3820)
* rewrite fmt_test in Rust, remove tools/fmt_test.py
* remove //std/prettier
Diffstat (limited to 'std/prettier/ignore.ts')
-rw-r--r-- | std/prettier/ignore.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/std/prettier/ignore.ts b/std/prettier/ignore.ts deleted file mode 100644 index 08a823984..000000000 --- a/std/prettier/ignore.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -/** - * Parse the contents of the ignore file and return patterns. - * It can parse files like .gitignore/.npmignore/.prettierignore - * @param ignoreString - * @returns patterns - */ -export function parse(ignoreString: string): Set<string> { - const partterns = ignoreString - .split(/\r?\n/) - .filter(line => line.trim() !== "" && line.charAt(0) !== "#"); - - return new Set(partterns); -} |