Skip to content

Commit

Permalink
Use dprint for internal formatting (denoland#6682)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jul 14, 2020
1 parent 9eca71c commit cde4dbb
Show file tree
Hide file tree
Showing 378 changed files with 3,116 additions and 3,121 deletions.
28 changes: 28 additions & 0 deletions .dprintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://dprint.dev/schemas/v0.json",
"projectType": "openSource",
"lineWidth": 80,
"indentWidth": 2,
"typescript": {
"deno": true
},
"markdown": {
"textWrap": "always"
},
"includes": ["**/*.{ts,tsx,js,jsx,json,md}"],
"excludes": [
".cargo_home",
"deno_typescript/typescript",
"std/**/testdata",
"std/**/vendor",
"std/node_modules",
"std/hash/_wasm",
"target",
"third_party"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.19.9.wasm",
"https://plugins.dprint.dev/json-0.4.1.wasm",
"https://plugins.dprint.dev/markdown-0.2.4.wasm"
]
}
9 changes: 0 additions & 9 deletions .prettierignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion cli/js/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const ANSI_PATTERN = new RegExp(
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",
].join("|"),
"g"
"g",
);

export function stripColor(string: string): string {
Expand Down
Loading

0 comments on commit cde4dbb

Please sign in to comment.