From 364234262efabd91fa8bd53161d9d3e1e37e7944 Mon Sep 17 00:00:00 2001 From: cherryblossom000 <31467609+cherryblossom000@users.noreply.github.com> Date: Sat, 5 Oct 2019 06:37:20 +1000 Subject: [PATCH] Docs: Fix minor formatting/grammar errors (#12371) * Docs: Fix link to code conventions * Docs: Fix formattting * Docs: Fix formatting of example config All other example configs in the docs spaced curly braces in object literals, so this commit updates this for consistency. * Docs: Fixed grammar * Docs: Revert link to code conventions This reverts commit ab5dba7574ba6c5758274de2cb94c7c598f88033. * Docs: Revert link to code conventions * Docs: Revert link to code conventions Sorry for all the commits. --- docs/rules/no-obj-calls.md | 2 +- docs/rules/space-infix-ops.md | 2 +- docs/rules/symbol-description.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/rules/no-obj-calls.md b/docs/rules/no-obj-calls.md index cfd5576eae5..7cd5ac4d4fa 100644 --- a/docs/rules/no-obj-calls.md +++ b/docs/rules/no-obj-calls.md @@ -12,7 +12,7 @@ The [ECMAScript 2015 specification](https://www.ecma-international.org/ecma-262/ And the [ECMAScript 2017 specification](https://www.ecma-international.org/ecma-262/8.0/index.html#sec-atomics-object) makes it clear that `Atomics` cannot be invoked: -> The Atomics object does not have a [[Call]] internal method; it is not possible to invoke the Atomics object as a function. +> The Atomics object does not have a `[[Call]]` internal method; it is not possible to invoke the Atomics object as a function. ## Rule Details diff --git a/docs/rules/space-infix-ops.md b/docs/rules/space-infix-ops.md index 406e2030cf4..6a00e50edde 100644 --- a/docs/rules/space-infix-ops.md +++ b/docs/rules/space-infix-ops.md @@ -23,7 +23,7 @@ This rule is aimed at ensuring there are spaces around infix operators. This rule accepts a single options argument with the following defaults: ```json -"space-infix-ops": ["error", {"int32Hint": false}] +"space-infix-ops": ["error", { "int32Hint": false }] ``` ### `int32Hint` diff --git a/docs/rules/symbol-description.md b/docs/rules/symbol-description.md index eb15d94ff47..61be8767ed5 100644 --- a/docs/rules/symbol-description.md +++ b/docs/rules/symbol-description.md @@ -1,6 +1,6 @@ # require symbol description (symbol-description) -The `Symbol` function may have optional description: +The `Symbol` function may have an optional description: ```js var foo = Symbol("some description");