From 4111d21a046b73892e2c84f92815a21ef4db63e1 Mon Sep 17 00:00:00 2001 From: Patrice Sandhu Date: Tue, 25 Aug 2020 08:31:41 -0700 Subject: [PATCH] Docs: Fix typo and missing article before noun in docs (#13611) * Docs: Fix typo semicolumns in providing suggestions docs * Docs: Fix missing article before noun --- docs/developer-guide/nodejs-api.md | 2 +- docs/developer-guide/working-with-rules.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/developer-guide/nodejs-api.md b/docs/developer-guide/nodejs-api.md index 991a1cbcd26..8bfa9aecbf1 100644 --- a/docs/developer-guide/nodejs-api.md +++ b/docs/developer-guide/nodejs-api.md @@ -926,7 +926,7 @@ The top-level report object has a `results` array containing all linting results * `source` - The source code for the given file. This property is omitted if this file has no errors/warnings or if the `output` property is present. * `output` - The source code for the given file with as many fixes applied as possible, so you can use that to rewrite the files if necessary. This property is omitted if no fix is available. -The top-level report object also has `errorCount` and `warningCount` which give the exact number of errors and warnings respectively on all the files. Additionally, `usedDeprecatedRules` signals any deprecated rules used and their replacement (if available). Specifically, it is array of objects with properties like so: +The top-level report object also has `errorCount` and `warningCount` which give the exact number of errors and warnings respectively on all the files. Additionally, `usedDeprecatedRules` signals any deprecated rules used and their replacement (if available). Specifically, it is an array of objects with properties like so: * `ruleId` - The name of the rule (e.g. `indent-legacy`). * `replacedBy` - An array of rules that replace the deprecated rule (e.g. `["indent"]`). diff --git a/docs/developer-guide/working-with-rules.md b/docs/developer-guide/working-with-rules.md index 2f47c316ccb..2b814e7a98b 100644 --- a/docs/developer-guide/working-with-rules.md +++ b/docs/developer-guide/working-with-rules.md @@ -375,7 +375,7 @@ context.report({ {% endraw %} ``` -Note: Suggestions will be applied as a stand-alone change, without triggering multipass fixes. Each suggestion should focus on a singular change in the code and should not try to conform to user defined styles. For example, if a suggestion is adding a new statement into the codebase, it should not try to match correct indentation, or confirm to user preferences on presence/absence of semicolumns. All of those things can be corrected by multipass autofix when the user triggers it. +Note: Suggestions will be applied as a stand-alone change, without triggering multipass fixes. Each suggestion should focus on a singular change in the code and should not try to conform to user defined styles. For example, if a suggestion is adding a new statement into the codebase, it should not try to match correct indentation, or confirm to user preferences on presence/absence of semicolons. All of those things can be corrected by multipass autofix when the user triggers it. Best practices for suggestions: