diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-11 21:32:06 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-11 21:34:01 +0200 |
commit | 997b300745b343feab58e715aa225396f9b896c8 (patch) | |
tree | 9db466d9af83a3170124694dc1e8f52e543eecad | |
parent | 314f08672157a0977d7c3eeb72010eb0f717d889 (diff) |
deno2: fmt js dir
-rw-r--r-- | deno2/js/main.ts | 5 | ||||
-rwxr-xr-x | deno2/tools/format.sh | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/deno2/js/main.ts b/deno2/js/main.ts index a41a7dfee..b34ecf24d 100644 --- a/deno2/js/main.ts +++ b/deno2/js/main.ts @@ -1,7 +1,6 @@ const globalEval = eval; const window = globalEval("this"); -window['foo'] = () => { +window["foo"] = () => { deno_print("Hello world from foo"); return "foo"; -} - +}; diff --git a/deno2/tools/format.sh b/deno2/tools/format.sh index 25c9f4a89..a5c324175 100755 --- a/deno2/tools/format.sh +++ b/deno2/tools/format.sh @@ -4,3 +4,4 @@ clang-format -i -style Google *.cc *.h include/*.h gn format BUILD.gn gn format .gn yapf -i tools/*.py +prettier --write js/*.ts js/*.js |