0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-08 07:16:56 -05:00

docs: Use JSONC code block for commenting (#9511)

This commit is contained in:
Takahiko Inayama 2021-02-17 10:18:39 +09:00 committed by GitHub
parent e2a91190c3
commit 097efa100a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -167,7 +167,7 @@ page, first `npm install --save-dev typescript-deno-plugin typescript` in your
project (`npm init -y` as necessary), then add the following block to your project (`npm init -y` as necessary), then add the following block to your
`tsconfig.json` and you are off to the races! `tsconfig.json` and you are off to the races!
```json ```jsonc
{ {
"compilerOptions": { "compilerOptions": {
"plugins": [ "plugins": [
@ -238,7 +238,7 @@ endif
syntax highlighting syntax highlighting
- Add the following `.sublime-project` file to your project folder - Add the following `.sublime-project` file to your project folder
```json ```jsonc
{ {
"settings": { "settings": {
"LSP": { "LSP": {

View file

@ -42,9 +42,9 @@ $ deno run --import-map=import_map.json --unstable color.ts
To use starting directory for absolute imports: To use starting directory for absolute imports:
```json **import_map.json**
// import_map.json
```jsonc
{ {
"imports": { "imports": {
"/": "./" "/": "./"
@ -52,17 +52,17 @@ To use starting directory for absolute imports:
} }
``` ```
```ts **main.ts**
// main.ts
```ts
import { MyUtil } from "/util.ts"; import { MyUtil } from "/util.ts";
``` ```
You may map a different directory: (eg. src) You may map a different directory: (eg. src)
```json **import_map.json**
// import_map.json
```jsonc
{ {
"imports": { "imports": {
"/": "./src/" "/": "./src/"