From 8464cde9609bc4b51935b4d665a2138ba4f33531 Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Sun, 13 Jun 2021 22:33:26 -0700 Subject: [PATCH] docs: fix --fix link --- docs/rules/meta-property-ordering.md | 2 +- docs/rules/no-deprecated-context-methods.md | 2 +- docs/rules/no-deprecated-report-api.md | 2 +- docs/rules/no-identical-tests.md | 2 +- docs/rules/prefer-object-rule.md | 2 +- docs/rules/prefer-output-null.md | 2 +- docs/rules/test-case-property-ordering.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/rules/meta-property-ordering.md b/docs/rules/meta-property-ordering.md index 8115af82..949d5f5d 100644 --- a/docs/rules/meta-property-ordering.md +++ b/docs/rules/meta-property-ordering.md @@ -1,6 +1,6 @@ # enforce ordering of meta properties in rule source (meta-property-ordering) -(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule. +(fixable) The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) automatically fixes problems reported by this rule. This rule enforces that meta properties of a rule are placed in a consistent order. diff --git a/docs/rules/no-deprecated-context-methods.md b/docs/rules/no-deprecated-context-methods.md index fe64b210..fc8b81b4 100644 --- a/docs/rules/no-deprecated-context-methods.md +++ b/docs/rules/no-deprecated-context-methods.md @@ -1,6 +1,6 @@ # Disallows usage of deprecated methods on rule context objects (no-deprecated-context-methods) -(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule. +(fixable) The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) automatically fixes problems reported by this rule. This rule disallows the use of deprecated methods on rule `context` objects. diff --git a/docs/rules/no-deprecated-report-api.md b/docs/rules/no-deprecated-report-api.md index 507322c7..72f022a5 100644 --- a/docs/rules/no-deprecated-report-api.md +++ b/docs/rules/no-deprecated-report-api.md @@ -1,6 +1,6 @@ # disallow use of the deprecated context.report() API (no-deprecated-report-api) -(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule. +(fixable) The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) automatically fixes problems reported by this rule. ESLint has two APIs that rules can use to report problems. The [deprecated API](http://eslint.org/docs/developer-guide/working-with-rules-deprecated) accepts multiple arguments: `context.report(node, [loc], message)`. The ["new API"](http://eslint.org/docs/developer-guide/working-with-rules#contextreport) accepts a single argument: an object containing information about the reported problem. It is recommended that all rules use the new API. diff --git a/docs/rules/no-identical-tests.md b/docs/rules/no-identical-tests.md index 77d90d93..304a8896 100644 --- a/docs/rules/no-identical-tests.md +++ b/docs/rules/no-identical-tests.md @@ -1,6 +1,6 @@ # Disallow identical tests (no-identical-tests) -(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule. +(fixable) The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) automatically fixes problems reported by this rule. When a rule has a lot of tests, it's sometimes difficult to tell if any tests are duplicates. This rule would warn if any test cases have the same properties. diff --git a/docs/rules/prefer-object-rule.md b/docs/rules/prefer-object-rule.md index 9013a5d3..2422d228 100644 --- a/docs/rules/prefer-object-rule.md +++ b/docs/rules/prefer-object-rule.md @@ -1,6 +1,6 @@ # Disallow rule exports where the export is a function. (prefer-object-rule) -(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule. +(fixable) The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) automatically fixes problems reported by this rule. ## Rule Details diff --git a/docs/rules/prefer-output-null.md b/docs/rules/prefer-output-null.md index d247504d..583c1d40 100644 --- a/docs/rules/prefer-output-null.md +++ b/docs/rules/prefer-output-null.md @@ -1,6 +1,6 @@ # Disallows invalid RuleTester test cases with the output the same as the code. (prefer-output-null) -(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule. +(fixable) The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) automatically fixes problems reported by this rule. ## Rule Details diff --git a/docs/rules/test-case-property-ordering.md b/docs/rules/test-case-property-ordering.md index 40acd2d4..a084a23a 100644 --- a/docs/rules/test-case-property-ordering.md +++ b/docs/rules/test-case-property-ordering.md @@ -1,6 +1,6 @@ # enforce ordering of keys in test cases (test-case-property-ordering) -(fixable) The `--fix` option on the [command line](../user-guide/command-line-interface#fix) automatically fixes problems reported by this rule. +(fixable) The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#-fix) automatically fixes problems reported by this rule. This rule enforces that the properties of RuleTester test cases are arranged in a consistent order.