Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Autogenerated new docs and demo at Sat Oct 09 2021 16:45:35
Browse files Browse the repository at this point in the history
  • Loading branch information
ESLint Jenkins committed Oct 9, 2021
1 parent 4edae88 commit 5b5e2c6
Show file tree
Hide file tree
Showing 54 changed files with 1,805 additions and 2,428 deletions.
1,268 changes: 629 additions & 639 deletions _data/rules.yml

Large diffs are not rendered by default.

166 changes: 166 additions & 0 deletions _posts/2021-10-09-eslint-v8.0.0-released.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/developer-guide/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edit_link: https://github.com/eslint/eslint/edit/master/docs/developer-guide/arc
At a high level, there are a few key parts to ESLint:

* `bin/eslint.js` - this is the file that actually gets executed with the command line utility. It's a dumb wrapper that does nothing more than bootstrap ESLint, passing the command line arguments to `cli`. This is intentionally small so as not to require heavy testing.
* `lib/api.js` - this is the entry point of `require("eslint")`. This file exposes an object that contains public classes `Linter`, `CLIEngine`, `RuleTester`, and `SourceCode`.
* `lib/api.js` - this is the entry point of `require("eslint")`. This file exposes an object that contains public classes `Linter`, `ESLint`, `RuleTester`, and `SourceCode`.
* `lib/cli.js` - this is the heart of the ESLint CLI. It takes an array of arguments and then uses `eslint` to execute the commands. By keeping this as a separate utility, it allows others to effectively call ESLint from within another Node.js program as if it were done on the command line. The main call is `cli.execute()`. This is also the part that does all the file reading, directory traversing, input, and output.
* `lib/init/` - this module contains `--init` functionality that set up a configuration file for end users.
* `lib/cli-engine/` - this module is `CLIEngine` class that finds source code files and configuration files then does code verifying with the `Linter` class. This includes the loading logic of configuration files, parsers, plugins, and formatters.
Expand Down
1 change: 1 addition & 0 deletions docs/developer-guide/code-path-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ This has references of both the initial segment and the final segments of a code
`CodePath` has the following properties:

* `id` (`string`) - A unique string. Respective rules can use `id` to save additional information for each code path.
* `origin` (`string`) - The reason that the code path was started. May be `"program"`, `"function"`, or `"class-field-initializer"`.
* `initialSegment` (`CodePathSegment`) - The initial segment of this code path.
* `finalSegments` (`CodePathSegment[]`) - The final segments which includes both returned and thrown.
* `returnedSegments` (`CodePathSegment[]`) - The final segments which includes only returned.
Expand Down

0 comments on commit 5b5e2c6

Please sign in to comment.