You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/rules/no-undef.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This rule can help you locate potential ReferenceErrors resulting from misspelli
16
16
17
17
## Rule Details
18
18
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).
Copy file name to clipboardExpand all lines: docs/src/user-guide/command-line-interface.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ eleventyNavigation:
10
10
11
11
---
12
12
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.
14
14
15
15
Most users use [`npx`](https://docs.npmjs.com/cli/v8/commands/npx) to run ESLint on the command line like this:
Copy file name to clipboardExpand all lines: docs/src/user-guide/configuring/ignoring-code.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ When ESLint is run, it looks in the current working directory to find an `.eslin
50
50
Globs are matched using [node-ignore](https://github.com/kaelzhang/node-ignore), so a number of features are available:
51
51
52
52
* 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).
54
54
* Lines preceded by `!` are negated patterns that re-include a pattern that was ignored by an earlier pattern.
55
55
* Ignore patterns behave according to the `.gitignore`[specification](https://git-scm.com/docs/gitignore).
Copy file name to clipboardExpand all lines: docs/src/user-guide/configuring/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ eleventyNavigation:
13
13
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:
14
14
15
15
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).
17
17
18
18
Here are some of the options that you can configure in ESLint:
Copy file name to clipboardExpand all lines: docs/src/user-guide/configuring/language-options.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ An environment provides predefined global variables. The available environments
53
53
54
54
These environments are not mutually exclusive, so you can define more than one at a time.
55
55
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.
Copy file name to clipboardExpand all lines: docs/src/user-guide/configuring/plugins.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ eleventyNavigation:
19
19
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:
20
20
21
21
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).
23
23
24
24
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.
Copy file name to clipboardExpand all lines: docs/src/user-guide/configuring/rules.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ To configure rules inside of a file using configuration comments, use a comment
29
29
/* eslint eqeqeq: "off", curly: "error" */
30
30
```
31
31
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:
33
33
34
34
```js
35
35
/* eslint eqeqeq: 0, curly: 2 */
@@ -43,7 +43,7 @@ If a rule has additional options, you can specify them using array literal synta
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).
47
47
48
48
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:
@@ -280,7 +280,7 @@ To disable all inline config comments, use the `noInlineConfig` setting. For exa
280
280
}
281
281
```
282
282
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.
284
284
285
285
#### Report unused `eslint-disable` comments
286
286
@@ -293,4 +293,4 @@ To report unused `eslint-disable` comments, use the `reportUnusedDisableDirectiv
293
293
}
294
294
```
295
295
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