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/maintain/manage-issues.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
@@ -44,7 +44,7 @@ All of ESLint's issues and pull requests, across all GitHub repositories, are ma
44
44
-**Implementing**: There is an open pull request for each of these issues or this is a pull request that has been approved.
45
45
-**Second Review Needed**: Pull requests that already have one approval and the approver is requesting a second review before merging.
46
46
-**Merge Candidates**: Pull requests that already have at least one approval and at least one approver believes the pull request is ready to merge into the next release but would still like a TSC member to verify.
47
-
-**Completed**: The issue has been closed (either via pull request merge or by the team manually closing the issue).
47
+
-**Complete**: The issue has been closed (either via pull request merge or by the team manually closing the issue).
48
48
49
49
We make every attempt to automate movement between as many columns as we can, but sometimes moving issues needs to be done manually.
Copy file name to clipboardExpand all lines: docs/src/use/configure/configuration-files.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ module.exports = defineConfig([
65
65
66
66
Each configuration object contains all of the information ESLint needs to execute on a set of files. Each configuration object is made up of these properties:
67
67
68
-
-`name` - A name for the configuration object. This is used in error messages and config inspector to help identify which configuration object is being used. ([Naming Convention](#configuration-naming-conventions))
68
+
-`name` - A name for the configuration object. This is used in error messages and [config inspector](https://github.com/eslint/config-inspector) to help identify which configuration object is being used. ([Naming Convention](#configuration-naming-conventions))
69
69
-`files` - An array of glob patterns indicating the files that the configuration object should apply to. If not specified, the configuration object applies to all files matched by any other configuration object.
70
70
-`ignores` - An array of glob patterns indicating the files that the configuration object should not apply to. If not specified, the configuration object applies to all files matched by `files`. If `ignores` is used without any other keys in the configuration object, then the patterns act as [global ignores](#globally-ignoring-files-with-ignores) and it gets applied to every configuration object.
71
71
-`extends` - An array of strings, configuration objects, or configuration arrays that contain additional configuration to apply.
@@ -284,7 +284,7 @@ export default defineConfig([
284
284
ignores: [".config/", "dist/", "tsconfig.json"] // acts as global ignores, due to the absence of other properties
285
285
},
286
286
{ ... }, // ... other configuration object, inherit global ignores
287
-
{ ... }, // ... other configuration object inherit global ignores
287
+
{ ... }, // ... other configuration object, inherit global ignores
{ ... }, // ... other configuration object, inherit global ignores
313
-
{ ... }, // ... other configuration object inherit global ignores
313
+
{ ... }, // ... other configuration object, inherit global ignores
314
314
]);
315
315
316
316
// Example of non-global ignores
@@ -357,7 +357,7 @@ export default defineConfig([
357
357
]);
358
358
```
359
359
360
-
Using this configuration, all JavaScript files define a custom global object defined called `MY_CUSTOM_GLOBAL` while those JavaScript files in the `tests` directory have `it` and `describe` defined as global objects in addition to `MY_CUSTOM_GLOBAL`. For any JavaScript file in the tests directory, both configuration objects are applied, so `languageOptions.globals` are merged to create a final result.
360
+
Using this configuration, all JavaScript files define a custom global object defined called `MY_CUSTOM_GLOBAL` while those JavaScript files in the `tests` directory have `it` and `describe` defined as global objects in addition to `MY_CUSTOM_GLOBAL`. For any JavaScript file in the `tests` directory, both configuration objects are applied, so `languageOptions.globals` are merged to create a final result.
361
361
362
362
### Configuring Linter Options
363
363
@@ -582,7 +582,7 @@ export default defineConfig([
582
582
]);
583
583
```
584
584
585
-
Here, the `js/recommended` predefined configuration is applied first and then another configuration object adds the desired configuration for `no-unused-vars`.
585
+
Here, the `js/recommended` predefined configuration is applied first and then another configuration object adds the desired configuration for [`no-unused-vars`](../../rules/no-unused-vars).
586
586
587
587
For more information on how to combine predefined configs with your preferences, please see [Combine Configs](combine-configs).
Copy file name to clipboardExpand all lines: docs/src/use/configure/rules.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,15 +41,15 @@ In this example, [`eqeqeq`](../../rules/eqeqeq) is turned off and [`curly`](../.
41
41
/* eslint eqeqeq: 0, curly: 2 */
42
42
```
43
43
44
-
This example is the same as the last example, only it uses the numeric codes instead of the string values. The `eqeqeq` rule is off and the `curly` rule is set to be an error.
44
+
This example is the same as the last example, only it uses the numeric codes instead of the string values. The [`eqeqeq`](../../rules/eqeqeq) rule is off and the [`curly`](../../rules/curly) rule is set to be an error.
45
45
46
46
If a rule has additional options, you can specify them using array literal syntax, such as:
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).
52
+
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).
Copy file name to clipboardExpand all lines: docs/src/use/core-concepts/glossary.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ You can let ESLint know which global variables your code uses with [global decla
187
187
A source code comment that configures a rule to a different severity and/or set of options.
188
188
189
189
Inline configs use similar syntax as [config files](#config-file-configuration-file) to specify any number of rules by name, their new severity, and optionally new options for the rules.
190
-
For example, the following inline config comment simultaneously disables the `eqeqeq` rule and sets the `curly` rule to `"error"`:
190
+
For example, the following inline config comment simultaneously disables the [`eqeqeq`](../../rules/eqeqeq) rule and sets the [`curly`](../../rules/curly) rule to `"error"`:
191
191
192
192
```js
193
193
/* eslint eqeqeq: "off", curly: "error" */
@@ -218,7 +218,7 @@ Note that a _linter_ is separate from [formatters](#formatter-tool) and [type ch
218
218
219
219
A [rule](#rule) that inspects how code operates to find problems.
220
220
221
-
Many logical rules look for likely crashes (e.g. [`no-undef`](../../rules/no-undef)), unintended behavior (e.g. [`no-sparse-arrays`](../../rules/no-sparse-arrays)), and unused code (e.g [`no-unused-vars`](../../rules/no-unused-vars)),
221
+
Many logical rules look for likely crashes (e.g. [`no-undef`](../../rules/no-undef)), unintended behavior (e.g. [`no-sparse-arrays`](../../rules/no-sparse-arrays)), and unused code (e.g [`no-unused-vars`](../../rules/no-unused-vars)).
222
222
223
223
You can see the full list of logical rules that ship with ESLint under [Rules > Possible Problems](../../rules/#possible-problems)
Copy file name to clipboardExpand all lines: docs/src/use/core-concepts/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,11 +52,11 @@ Shareable configurations are ESLint configurations that are shared via npm.
52
52
53
53
Often shareable configurations are used to enforce style guides using ESLint's built-in rules. For example the sharable configuration [eslint-config-airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base) implements the popular Airbnb JavaScript style guide.
54
54
55
-
For more information, refer to [Using a shareable configuration package](../configure/configuration-files#using-a-shareable-configuration-package).
55
+
For more information, refer to [Using a Shareable Configuration Package](../configure/configuration-files#using-a-shareable-configuration-package).
56
56
57
57
## Plugins
58
58
59
-
An ESLint plugin is an npm module that can contain a set of ESLint rules, configurations, processors, and languages. Often plugins include custom rules. Plugins can be used to enforce a style guide and support JavaScript extensions (like TypeScript), libraries (like React), and frameworks (Angular).
59
+
An ESLint plugin is an npm module that can contain a set of ESLint rules, configurations, processors, and languages. Often plugins include custom rules. Plugins can be used to enforce a style guide and support JavaScript extensions (like [TypeScript](https://www.typescriptlang.org)), libraries (like [React](https://react.dev)), and frameworks (like [Angular](https://angular.dev)).
60
60
61
61
A popular use case for plugins is to enforce best practices for a framework. For example, [@angular-eslint/eslint-plugin](https://www.npmjs.com/package/@angular-eslint/eslint-plugin) contains best practices for using the Angular framework.
Copy file name to clipboardExpand all lines: docs/src/use/getting-started.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,9 @@ export default defineConfig([
87
87
88
88
The names `"no-unused-vars"` and `"no-undef"` are the names of [rules](../rules) in ESLint. The first value is the error level of the rule and can be one of these values:
89
89
90
-
- "off" or 0 - turn the rule off
91
-
- "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
92
-
- "error" or 2 - turn the rule on as an error (exit code will be 1)
90
+
-`"off"` or `0` - turn the rule off
91
+
-`"warn"` or `1` - turn the rule on as a warning (doesn’t affect exit code)
92
+
-`"error"` or `2` - turn the rule on as an error (exit code will be 1)
93
93
94
94
The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the configuration docs).
95
95
@@ -118,7 +118,7 @@ Before you begin, you must already have a `package.json` file. If you don't, mak
0 commit comments