Skip to content

Commit 21d6479

Browse files
authored
docs: change some absolute links to relative (#15970)
1 parent f31216a commit 21d6479

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

docs/src/rules/no-undef.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This rule can help you locate potential ReferenceErrors resulting from misspelli
1616

1717
## Rule Details
1818

19-
Any reference to an undeclared variable causes a warning, unless the variable is explicitly mentioned in a `/*global ...*/` comment, or specified in the [`globals` key in the configuration file](https://eslint.org/docs/user-guide/configuring#specifying-globals). A common use case for these is if you intentionally use globals that are defined elsewhere (e.g. in a script sourced from HTML).
19+
Any reference to an undeclared variable causes a warning, unless the variable is explicitly mentioned in a `/*global ...*/` comment, or specified in the [`globals` key in the configuration file](../user-guide/configuring/language-options#using-configuration-files-1). A common use case for these is if you intentionally use globals that are defined elsewhere (e.g. in a script sourced from HTML).
2020

2121
Examples of **incorrect** code for this rule:
2222

docs/src/user-guide/command-line-interface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ eleventyNavigation:
1010

1111
---
1212

13-
ESLint requires Node.js for installation. Follow the instructions in the [Getting Started Guide](https://eslint.org/docs/user-guide/getting-started) to install ESLint.
13+
ESLint requires Node.js for installation. Follow the instructions in the [Getting Started Guide](getting-started) to install ESLint.
1414

1515
Most users use [`npx`](https://docs.npmjs.com/cli/v8/commands/npx) to run ESLint on the command line like this:
1616

docs/src/user-guide/configuring/ignoring-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ When ESLint is run, it looks in the current working directory to find an `.eslin
5050
Globs are matched using [node-ignore](https://github.com/kaelzhang/node-ignore), so a number of features are available:
5151

5252
* Lines beginning with `#` are treated as comments and do not affect the ignore patterns.
53-
* Paths are relative to the current working directory. This is also true of paths passed in via the `--ignore-pattern` [command](https://eslint.org/docs/user-guide/command-line-interface#--ignore-pattern).
53+
* Paths are relative to the current working directory. This is also true of paths passed in via the `--ignore-pattern` [command](../command-line-interface#--ignore-pattern).
5454
* Lines preceded by `!` are negated patterns that re-include a pattern that was ignored by an earlier pattern.
5555
* Ignore patterns behave according to the `.gitignore` [specification](https://git-scm.com/docs/gitignore).
5656

docs/src/user-guide/configuring/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ eleventyNavigation:
1313
ESLint is designed to be flexible and configurable for your use case. You can turn off every rule and run only with basic syntax validation or mix and match the bundled rules and your custom rules to fit the needs of your project. There are two primary ways to configure ESLint:
1414

1515
1. **Configuration Comments** - use JavaScript comments to embed configuration information directly into a file.
16-
1. **Configuration Files** - use a JavaScript, JSON, or YAML file to specify configuration information for an entire directory and all of its subdirectories. This can be in the form of a [`.eslintrc.*`](./configuration-files#configuration-file-formats) file or an `eslintConfig` field in a [`package.json`](https://docs.npmjs.com/files/package.json) file, both of which ESLint will look for and read automatically, or you can specify a configuration file on the [command line](https://eslint.org/docs/user-guide/command-line-interface).
16+
1. **Configuration Files** - use a JavaScript, JSON, or YAML file to specify configuration information for an entire directory and all of its subdirectories. This can be in the form of a [`.eslintrc.*`](./configuration-files#configuration-file-formats) file or an `eslintConfig` field in a [`package.json`](https://docs.npmjs.com/files/package.json) file, both of which ESLint will look for and read automatically, or you can specify a configuration file on the [command line](../command-line-interface).
1717

1818
Here are some of the options that you can configure in ESLint:
1919

docs/src/user-guide/configuring/language-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ An environment provides predefined global variables. The available environments
5353

5454
These environments are not mutually exclusive, so you can define more than one at a time.
5555

56-
Environments can be specified inside of a file, in configuration files or using the `--env` [command line](https://eslint.org/docs/user-guide/command-line-interface) flag.
56+
Environments can be specified inside of a file, in configuration files or using the `--env` [command line](../command-line-interface) flag.
5757

5858
### Using configuration comments
5959

docs/src/user-guide/configuring/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ eleventyNavigation:
1919
By default, ESLint uses [Espree](https://github.com/eslint/espree) as its parser. You can optionally specify that a different parser should be used in your configuration file so long as the parser meets the following requirements:
2020

2121
1. It must be a Node module loadable from the config file where the parser is used. Usually, this means you should install the parser package separately using npm.
22-
1. It must conform to the [parser interface](https://eslint.org/docs/developer-guide/working-with-custom-parsers).
22+
1. It must conform to the [parser interface](../../developer-guide/working-with-custom-parsers).
2323

2424
Note that even with these compatibilities, there are no guarantees that an external parser will work correctly with ESLint and ESLint will not fix bugs related to incompatibilities with other parsers.
2525

docs/src/user-guide/configuring/rules.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To configure rules inside of a file using configuration comments, use a comment
2929
/* eslint eqeqeq: "off", curly: "error" */
3030
```
3131

32-
In this example, [`eqeqeq`](https://eslint.org/docs/rules/eqeqeq) is turned off and [`curly`](https://eslint.org/docs/rules/curly) is turned on as an error. You can also use the numeric equivalent for the rule severity:
32+
In this example, [`eqeqeq`](../../rules/eqeqeq) is turned off and [`curly`](../../rules/curly) is turned on as an error. You can also use the numeric equivalent for the rule severity:
3333

3434
```js
3535
/* eslint eqeqeq: 0, curly: 2 */
@@ -43,7 +43,7 @@ If a rule has additional options, you can specify them using array literal synta
4343
/* eslint quotes: ["error", "double"], curly: 2 */
4444
```
4545

46-
This comment specifies the "double" option for the [`quotes`](https://eslint.org/docs/rules/quotes) rule. The first item in the array is always the rule severity (number or string).
46+
This comment specifies the "double" option for the [`quotes`](../../rules/quotes) rule. The first item in the array is always the rule severity (number or string).
4747

4848
Configuration comments can include descriptions to explain why the comment is necessary. The description must occur after the configuration and is separated from the configuration by two or more consecutive `-` characters. For example:
4949

@@ -221,10 +221,10 @@ alert('foo'); /* eslint-disable-line no-alert, quotes, semi */
221221
/* eslint-disable-next-line no-alert, quotes, semi */
222222
alert('foo');
223223
224-
/* eslint-disable-next-line
225-
no-alert,
226-
quotes,
227-
semi
224+
/* eslint-disable-next-line
225+
no-alert,
226+
quotes,
227+
semi
228228
*/
229229
alert('foo');
230230
```
@@ -280,7 +280,7 @@ To disable all inline config comments, use the `noInlineConfig` setting. For exa
280280
}
281281
```
282282

283-
This setting is similar to [--no-inline-config](https://eslint.org/docs/user-guide/command-line-interface#--no-inline-config) CLI option.
283+
This setting is similar to [--no-inline-config](../command-line-interface#--no-inline-config) CLI option.
284284

285285
#### Report unused `eslint-disable` comments
286286

@@ -293,4 +293,4 @@ To report unused `eslint-disable` comments, use the `reportUnusedDisableDirectiv
293293
}
294294
```
295295

296-
This setting is similar to [--report-unused-disable-directives](https://eslint.org/docs/user-guide/command-line-interface#--report-unused-disable-directives) CLI option, but doesn't fail linting (reports as `"warn"` severity).
296+
This setting is similar to [--report-unused-disable-directives](../command-line-interface#--report-unused-disable-directives) CLI option, but doesn't fail linting (reports as `"warn"` severity).

0 commit comments

Comments
 (0)