Skip to content

Commit b516974

Browse files
authored
docs: update links to eslint/js repo (#18781)
1 parent fb7a3f5 commit b516974

8 files changed

+8
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. In many ways, it is similar to JSLint and JSHint with a few exceptions:
2323

24-
* ESLint uses [Espree](https://github.com/eslint/espree) for JavaScript parsing.
24+
* ESLint uses [Espree](https://github.com/eslint/js/tree/main/packages/espree) for JavaScript parsing.
2525
* ESLint uses an AST to evaluate patterns in code.
2626
* ESLint is completely pluggable, every single rule is a plugin and you can add more at runtime.
2727

docs/src/extend/custom-parsers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The `parseForESLint` method should return an object that contains the required p
4545

4646
* `ast` should contain the [AST](#ast-specification) object.
4747
* `services` can contain any parser-dependent services (such as type checkers for nodes). The value of the `services` property is available to rules as `context.sourceCode.parserServices`. Default is an empty object.
48-
* `scopeManager` can be a [ScopeManager](./scope-manager-interface) object. Custom parsers can use customized scope analysis for experimental/enhancement syntaxes. The default is the `ScopeManager` object which is created by [eslint-scope](https://github.com/eslint/eslint-scope).
48+
* `scopeManager` can be a [ScopeManager](./scope-manager-interface) object. Custom parsers can use customized scope analysis for experimental/enhancement syntaxes. The default is the `ScopeManager` object which is created by [eslint-scope](https://github.com/eslint/js/tree/main/packages/eslint-scope).
4949
* Support for `scopeManager` was added in ESLint v4.14.0. ESLint versions that support `scopeManager` will provide an `eslintScopeManager: true` property in `parserOptions`, which can be used for feature detection.
5050
* `visitorKeys` can be an object to customize AST traversal. The keys of the object are the type of AST nodes. Each value is an array of the property names which should be traversed. The default is [KEYS of `eslint-visitor-keys`](https://github.com/eslint/eslint-visitor-keys#evkkeys).
5151
* Support for `visitorKeys` was added in ESLint v4.14.0. ESLint versions that support `visitorKeys` will provide an `eslintVisitorKeys: true` property in `parserOptions`, which can be used for feature detection.

docs/src/extend/scope-manager-interface.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: ScopeManager
33

44
---
55

6-
This document was written based on the implementation of [eslint-scope](https://github.com/eslint/eslint-scope), a fork of [escope](https://github.com/estools/escope), and deprecates some members ESLint is not using.
6+
This document was written based on the implementation of [eslint-scope](https://github.com/eslint/js/tree/main/packages/eslint-scope), a fork of [escope](https://github.com/estools/escope), and deprecates some members ESLint is not using.
77

88
----
99

docs/src/use/configure/configuration-files.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Each configuration object contains all of the information ESLint needs to execut
6666
* `ecmaVersion` - The version of ECMAScript to support. May be any year (i.e., `2022`) or version (i.e., `5`). Set to `"latest"` for the most recent supported version. (default: `"latest"`)
6767
* `sourceType` - The type of JavaScript source code. Possible values are `"script"` for traditional script files, `"module"` for ECMAScript modules (ESM), and `"commonjs"` for CommonJS files. (default: `"module"` for `.js` and `.mjs` files; `"commonjs"` for `.cjs` files)
6868
* `globals` - An object specifying additional objects that should be added to the global scope during linting.
69-
* `parser` - An object containing a `parse()` method or a `parseForESLint()` method. (default: [`espree`](https://github.com/eslint/espree))
69+
* `parser` - An object containing a `parse()` method or a `parseForESLint()` method. (default: [`espree`](https://github.com/eslint/js/tree/main/packages/espree))
7070
* `parserOptions` - An object specifying additional options that are passed directly to the `parse()` or `parseForESLint()` method on the parser. The available options are parser-dependent.
7171
* `linterOptions` - An object containing settings related to the linting process.
7272
* `noInlineConfig` - A Boolean value indicating if inline configuration is allowed.

docs/src/use/configure/parser-deprecated.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can use custom parsers to convert JavaScript code into an abstract syntax tr
1010

1111
## Configure a Custom Parser
1212

13-
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 if the parser meets the following requirements:
13+
By default, ESLint uses [Espree](https://github.com/eslint/js/tree/main/packages/espree) as its parser. You can optionally specify that a different parser should be used in your configuration file if the parser meets the following requirements:
1414

1515
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.
1616
1. It must conform to the [parser interface](../../extend/custom-parsers).

docs/src/use/configure/parser.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can use custom parsers to convert JavaScript code into an abstract syntax tr
1515

1616
## Configure a Custom Parser
1717

18-
In many cases, you can use the [default parser](https://github.com/eslint/espree) that ESLint ships with for parsing your JavaScript code. You can optionally override the default parser by using the `parser` property. The `parser` property must be an object that conforms to the [parser interface](../../extend/custom-parsers). For example, you can use the [`@babel/eslint-parser`](https://www.npmjs.com/package/@babel/eslint-parser) package to allow ESLint to parse experimental syntax:
18+
In many cases, you can use the [default parser](https://github.com/eslint/js/tree/main/packages/espree) that ESLint ships with for parsing your JavaScript code. You can optionally override the default parser by using the `parser` property. The `parser` property must be an object that conforms to the [parser interface](../../extend/custom-parsers). For example, you can use the [`@babel/eslint-parser`](https://www.npmjs.com/package/@babel/eslint-parser) package to allow ESLint to parse experimental syntax:
1919

2020
```js
2121
// eslint.config.js

docs/src/use/core-concepts/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ For more information on overrides in legacy configs, see [Configuration Files (D
272272
An object containing a method that reads in a string and converts it to a standardized format.
273273

274274
ESLint uses parsers to convert source code strings into an [AST](#abstract-syntax-tree-ast) shape.
275-
By default, ESLint uses the [Espree](https://github.com/eslint/espree) parser, which generates an AST compatible with standard JavaScript runtimes and versions.
275+
By default, ESLint uses the [Espree](https://github.com/eslint/js/tree/main/packages/espree) parser, which generates an AST compatible with standard JavaScript runtimes and versions.
276276

277277
Custom parsers let ESLint parse non-standard JavaScript syntax.
278278
Often custom parsers are included as part of shareable configurations or plugins, so you don’t have to use them directly.

docs/src/use/core-concepts/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ For more information, refer to [Configure Plugins](../configure/plugins).
6464

6565
## Parsers
6666

67-
An ESLint parser converts code into an abstract syntax tree that ESLint can evaluate. By default, ESLint uses the built-in [Espree](https://github.com/eslint/espree) parser, which is compatible with standard JavaScript runtimes and versions.
67+
An ESLint parser converts code into an abstract syntax tree that ESLint can evaluate. By default, ESLint uses the built-in [Espree](https://github.com/eslint/js/tree/main/packages/espree) parser, which is compatible with standard JavaScript runtimes and versions.
6868

6969
Custom parsers let ESLint parse non-standard JavaScript syntax. Often custom parsers are included as part of shareable configurations or plugins, so you don't have to use them directly.
7070

0 commit comments

Comments
 (0)