diff --git a/Makefile.js b/Makefile.js index 1b241c1ae1d..1fcfecb4234 100644 --- a/Makefile.js +++ b/Makefile.js @@ -780,7 +780,6 @@ target.gensite = function(prereleaseVersion) { echo("> Updating the demos (Step 13)"); target.webpack("production"); cp("-f", "build/eslint.js", `${SITE_DIR}src/js/eslint.js`); - cp("-f", "build/espree.js", `${SITE_DIR}src/js/espree.js`); } else { echo("> Skipped updating the demos (Step 13)"); } diff --git a/docs/rules/comma-style.md b/docs/rules/comma-style.md index 2a55dbf58c4..24b5515743d 100644 --- a/docs/rules/comma-style.md +++ b/docs/rules/comma-style.md @@ -39,7 +39,7 @@ This rule also accepts an additional `exceptions` object: * `"VariableDeclaration": true` ignores comma style in variable declarations * `"NewExpression": true` ignores comma style in the parameters of constructor expressions -A way to determine the node types as defined by [ESTree](https://github.com/estree/estree) is to use the [online demo](https://eslint.org/parser). +A way to determine the node types as defined by [ESTree](https://github.com/estree/estree) is to use [AST Explorer](https://astexplorer.net/) with the espree parser. ### last diff --git a/docs/rules/no-multi-spaces.md b/docs/rules/no-multi-spaces.md index 07cd0e9011a..c4b12e938e8 100644 --- a/docs/rules/no-multi-spaces.md +++ b/docs/rules/no-multi-spaces.md @@ -102,7 +102,7 @@ var x = 5; /* multiline To avoid contradictions with other rules that require multiple spaces, this rule has an `exceptions` option to ignore certain nodes. -This option is an object that expects property names to be AST node types as defined by [ESTree](https://github.com/estree/estree). The easiest way to determine the node types for `exceptions` is to use the [online demo](https://eslint.org/parser). +This option is an object that expects property names to be AST node types as defined by [ESTree](https://github.com/estree/estree). The easiest way to determine the node types for `exceptions` is to use [AST Explorer](https://astexplorer.net/) with the espree parser. Only the `Property` node type is ignored by default, because for the [key-spacing](key-spacing.md) rule some alignment options require multiple spaces in properties of object literals. diff --git a/docs/rules/no-restricted-syntax.md b/docs/rules/no-restricted-syntax.md index 37dbe8f016c..06651672177 100644 --- a/docs/rules/no-restricted-syntax.md +++ b/docs/rules/no-restricted-syntax.md @@ -2,7 +2,7 @@ JavaScript has a lot of language features, and not everyone likes all of them. As a result, some projects choose to disallow the use of certain language features altogether. For instance, you might decide to disallow the use of `try-catch` or `class`, or you might decide to disallow the use of the `in` operator. -Rather than creating separate rules for every language feature you want to turn off, this rule allows you to configure the syntax elements you want to restrict use of. These elements are represented by their [ESTree](https://github.com/estree/estree) node types. For example, a function declaration is represented by `FunctionDeclaration` and the `with` statement is represented by `WithStatement`. You may find the full list of AST node names you can use [on GitHub](https://github.com/eslint/espree/blob/master/lib/ast-node-types.js) and use the [online parser](https://eslint.org/parser/) to see what type of nodes your code consists of. +Rather than creating separate rules for every language feature you want to turn off, this rule allows you to configure the syntax elements you want to restrict use of. These elements are represented by their [ESTree](https://github.com/estree/estree) node types. For example, a function declaration is represented by `FunctionDeclaration` and the `with` statement is represented by `WithStatement`. You may find the full list of AST node names you can use [on GitHub](https://github.com/eslint/espree/blob/master/lib/ast-node-types.js) and use [AST Explorer](https://astexplorer.net/) with the espree parser to see what type of nodes your code consists of. You can also specify [AST selectors](../developer-guide/selectors) to restrict, allowing much more precise control over syntax patterns. diff --git a/webpack.config.js b/webpack.config.js index 1630cef979e..6a43ac755b7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,8 +3,7 @@ module.exports = { mode: "none", entry: { - eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"], - espree: ["core-js/stable", "regenerator-runtime/runtime", "espree"] + eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"] }, output: { filename: "[name].js",