Skip to content
Permalink
Browse files

Chore: remove references to parser demo (#12644)

  • Loading branch information
kaicataldo committed Dec 6, 2019
1 parent e9cef99 commit 8b65f175dfb4fac11ed7184537be400ed14996fb
Showing with 4 additions and 6 deletions.
  1. +0 −1 Makefile.js
  2. +1 −1 docs/rules/comma-style.md
  3. +1 −1 docs/rules/no-multi-spaces.md
  4. +1 −1 docs/rules/no-restricted-syntax.md
  5. +1 −2 webpack.config.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)");
}
@@ -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

@@ -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.

@@ -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.

@@ -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",

0 comments on commit 8b65f17

Please sign in to comment.
You can’t perform that action at this time.