diff options
-rw-r--r-- | docs/contributing/development_tools.md | 4 | ||||
-rw-r--r-- | docs/contributing/style_guide.md | 12 | ||||
-rw-r--r-- | docs/examples/file_system_events.md | 2 | ||||
-rw-r--r-- | docs/getting_started/typescript.md | 2 | ||||
-rw-r--r-- | docs/runtime/compiler_apis.md | 2 | ||||
-rw-r--r-- | docs/tools/debugger.md | 2 | ||||
-rw-r--r-- | docs/tools/linter.md | 6 |
7 files changed, 15 insertions, 15 deletions
diff --git a/docs/contributing/development_tools.md b/docs/contributing/development_tools.md index c05a1ee98..844ce31f3 100644 --- a/docs/contributing/development_tools.md +++ b/docs/contributing/development_tools.md @@ -34,7 +34,7 @@ Format the code: ### Profiling -To start profiling, +To start profiling: ```sh # Make sure we're only building release. @@ -107,7 +107,7 @@ Current executable set to '../deno/target/debug/deno' (x86_64). ### V8 flags -V8 has many many internal command-line flags. +V8 has many many internal command-line flags: ```shell $ deno run --v8-flags=--help _ diff --git a/docs/contributing/style_guide.md b/docs/contributing/style_guide.md index 8de0d228f..7656bf431 100644 --- a/docs/contributing/style_guide.md +++ b/docs/contributing/style_guide.md @@ -49,7 +49,7 @@ https://chromium.googlesource.com/chromium/src/+/master/styleguide/inclusive_cod Follow Rust conventions and be consistent with existing code. -## Typescript +## TypeScript The TypeScript portions of the codebase include `cli/js` for the built-ins and the standard library `std`. @@ -90,7 +90,7 @@ When designing function interfaces, stick to the following rules. Other arguments can be objects, but they must be distinguishable from a 'plain' Object runtime, by having either: - - a distinguishing prototype (e.g. `Array`, `Map`, `Date`, `class MyThing`) + - a distinguishing prototype (e.g. `Array`, `Map`, `Date`, `class MyThing`). - a well-known symbol property (e.g. an iterable with `Symbol.iterator`). This allows the API to evolve in a backwards compatible way, even when the @@ -193,7 +193,7 @@ underscore. By convention, only files in its own directory should import it. We strive for complete documentation. Every exported symbol ideally should have a documentation line. -If possible, use a single line for the JS Doc. Example: +If possible, use a single line for the JSDoc. Example: ```ts /** foo does bar. */ @@ -235,7 +235,7 @@ comments should be written as: /** This is a good single line JSDoc. */ ``` -And not +And not: ```ts /** @@ -291,7 +291,7 @@ Deno.test("myTestFunction", function () { Top level functions should use the `function` keyword. Arrow syntax should be limited to closures. -Bad +Bad: ```ts export const foo = (): string => { @@ -299,7 +299,7 @@ export const foo = (): string => { }; ``` -Good +Good: ```ts export function foo(): string { diff --git a/docs/examples/file_system_events.md b/docs/examples/file_system_events.md index 2abebc33e..2999ccdfe 100644 --- a/docs/examples/file_system_events.md +++ b/docs/examples/file_system_events.md @@ -1,4 +1,4 @@ -### File system events +## File system events To poll for file system events: diff --git a/docs/getting_started/typescript.md b/docs/getting_started/typescript.md index 0a89b8a6c..a72fd3689 100644 --- a/docs/getting_started/typescript.md +++ b/docs/getting_started/typescript.md @@ -16,7 +16,7 @@ import { queue } from "./collections.ts"; ### `--no-check` option -When using `deno run`, `deno test`, `deno cache`,`deno info`, or `deno bundle` +When using `deno run`, `deno test`, `deno cache`, `deno info`, or `deno bundle` you can specify the `--no-check` flag to disable TypeScript type checking. This can significantly reduce the time that program startup takes. This can be very useful when type checking is provided by your editor and you want startup time diff --git a/docs/runtime/compiler_apis.md b/docs/runtime/compiler_apis.md index 8379d1b0d..d9a49a01c 100644 --- a/docs/runtime/compiler_apis.md +++ b/docs/runtime/compiler_apis.md @@ -202,7 +202,7 @@ errors logged as part of the compilation. #### Using the triple slash reference You do not have to specify the `lib` in the compiler options. Deno also supports -[the triple-slash reference to a lib](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-lib-). +[the triple-slash reference to a lib](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-lib-) which can be embedded in the contents of the file. For example, if you have a `main.ts` like: diff --git a/docs/tools/debugger.md b/docs/tools/debugger.md index 400d050de..2a4c7f0d8 100644 --- a/docs/tools/debugger.md +++ b/docs/tools/debugger.md @@ -32,7 +32,7 @@ Open `chrome://inspect` and click `Inspect` next to target:  -It might take a few seconds after opening the devtools to load all modules. +It might take a few seconds after opening the Devtools to load all modules.  diff --git a/docs/tools/linter.md b/docs/tools/linter.md index fa8e4dd48..684da4a14 100644 --- a/docs/tools/linter.md +++ b/docs/tools/linter.md @@ -62,7 +62,7 @@ deno lint --unstable myfile1.ts myfile2.ts #### Files To ignore whole file `// deno-lint-ignore-file` directive should placed at the -top of the file. +top of the file: ```ts // deno-lint-ignore-file @@ -93,7 +93,7 @@ function foo(): any { #### Diagnostics To ignore certain diagnostic `// deno-lint-ignore <codes...>` directive should -be placed before offending line. Specifying ignored rule name is required. +be placed before offending line. Specifying ignored rule name is required: ```ts // deno-lint-ignore no-explicit-any @@ -109,7 +109,7 @@ function bar(a: any) { To provide some compatibility with ESLint `deno lint` also supports `// eslint-ignore-next-line` directive. Just like with `// deno-lint-ignore`, -it's required to specify the ignored rule name. +it's required to specify the ignored rule name: ```ts // eslint-ignore-next-line no-empty |