Skip to content

Commit

Permalink
Chore: remove references to parser demo (#12644)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo authored Dec 6, 2019
1 parent e9cef99 commit 8b65f17
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion Makefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
}
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/comma-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-multi-spaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-restricted-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8b65f17

Please sign in to comment.