Skip to content

Commit 8b65f17

Browse files
author
Kai Cataldo
authoredDec 6, 2019
Chore: remove references to parser demo (#12644)
1 parent e9cef99 commit 8b65f17

5 files changed

+4
-6
lines changed
 

‎Makefile.js

-1
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,6 @@ target.gensite = function(prereleaseVersion) {
780780
echo("> Updating the demos (Step 13)");
781781
target.webpack("production");
782782
cp("-f", "build/eslint.js", `${SITE_DIR}src/js/eslint.js`);
783-
cp("-f", "build/espree.js", `${SITE_DIR}src/js/espree.js`);
784783
} else {
785784
echo("> Skipped updating the demos (Step 13)");
786785
}

‎docs/rules/comma-style.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This rule also accepts an additional `exceptions` object:
3939
* `"VariableDeclaration": true` ignores comma style in variable declarations
4040
* `"NewExpression": true` ignores comma style in the parameters of constructor expressions
4141

42-
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).
42+
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.
4343

4444
### last
4545

‎docs/rules/no-multi-spaces.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ var x = 5; /* multiline
102102

103103
To avoid contradictions with other rules that require multiple spaces, this rule has an `exceptions` option to ignore certain nodes.
104104

105-
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).
105+
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.
106106

107107
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.
108108

‎docs/rules/no-restricted-syntax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
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.
44

5-
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.
5+
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.
66

77
You can also specify [AST selectors](../developer-guide/selectors) to restrict, allowing much more precise control over syntax patterns.
88

‎webpack.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
module.exports = {
44
mode: "none",
55
entry: {
6-
eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"],
7-
espree: ["core-js/stable", "regenerator-runtime/runtime", "espree"]
6+
eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"]
87
},
98
output: {
109
filename: "[name].js",

0 commit comments

Comments
 (0)
Please sign in to comment.