Skip to content

Commit

Permalink
feat: dprint formatter (denoland/deno#3820)
Browse files Browse the repository at this point in the history
* rewrite fmt_test in Rust, remove tools/fmt_test.py
* remove //prettier
  • Loading branch information
bartlomieju authored and caspervonb committed Jan 31, 2021
1 parent fe84f96 commit e8308cf
Show file tree
Hide file tree
Showing 47 changed files with 4 additions and 33,973 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Here are the dedicated documentations of modules:
- [http](http/README.md)
- [log](log/README.md)
- [media_types](media_types/README.md)
- [prettier](prettier/README.md)
- [strings](strings/README.md)
- [testing](testing/README.md)
- [uuid](uuid/README.md)
Expand Down
10 changes: 4 additions & 6 deletions manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ $ echo 'export PATH="$HOME/.deno/bin:$PATH"' >> ~/.bashrc
Installation directory can be changed using `-d/--dir` flag:

```shell
$ deno install --dir /usr/local/bin prettier https://deno.land/std/prettier/main.ts --allow-write --allow-read
$ deno install --dir /usr/local/bin file_server https://deno.land/std/http/file_server.ts --allow-net --allow-read
```

When installing a script you can specify permissions that will be used to run
Expand All @@ -857,13 +857,11 @@ additional CLI flags you want to pass to the script.
Example:

```shell
$ deno install format_check https://deno.land/std/prettier/main.ts --allow-write --allow-read --check --print-width 88 --tab-width 2
$ deno install file_server https://deno.land/std/http/file_server.ts --allow-net --allow-read 8080
```

Above command creates an executable called `format_check` that runs `prettier`
with write and read permissions. When you run `format_check` deno will run
prettier in `check` mode and configured to use `88` column width with `2` column
tabs.
Above command creates an executable called `file_server` that runs with write
and read permissions and binds to port 8080.

It is a good practice to use `import.meta.main` idiom for an entry point for
executable file. See
Expand Down
48 changes: 0 additions & 48 deletions prettier/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions prettier/ignore.ts

This file was deleted.

81 changes: 0 additions & 81 deletions prettier/ignore_test.ts

This file was deleted.

Loading

0 comments on commit e8308cf

Please sign in to comment.