summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/no-else-return.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-10-25 12:48:14 -0700
committercjihrig <cjihrig@gmail.com>2019-10-28 09:51:24 -0400
commit511f67bcb42b59c9a3a3efab8fed578db100afe1 (patch)
tree8b64f390dd727dd739fd2fb84d69df3c829a9315 /tools/node_modules/eslint/lib/rules/no-else-return.js
parentb35181f877d5a92e8bb52eb071489f2a7d87494b (diff)
downloadandroid-node-v8-511f67bcb42b59c9a3a3efab8fed578db100afe1.tar.gz
android-node-v8-511f67bcb42b59c9a3a3efab8fed578db100afe1.tar.bz2
android-node-v8-511f67bcb42b59c9a3a3efab8fed578db100afe1.zip
tools: update ESLint to 6.6.0
Update ESLint to 6.6.0 PR-URL: https://github.com/nodejs/node/pull/30123 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/no-else-return.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/no-else-return.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/node_modules/eslint/lib/rules/no-else-return.js b/tools/node_modules/eslint/lib/rules/no-else-return.js
index c63af2be52..84409fac87 100644
--- a/tools/node_modules/eslint/lib/rules/no-else-return.js
+++ b/tools/node_modules/eslint/lib/rules/no-else-return.js
@@ -58,7 +58,6 @@ module.exports = {
*
* This is not a generic function. In particular, it is assumed that the scope is a function scope or
* a function's inner scope, and that the names can be valid identifiers in the given scope.
- *
* @param {string[]} names Array of variable names.
* @param {eslint-scope.Scope} scope Function scope or a function's inner scope.
* @returns {boolean} True if all names can be safely declared, false otherwise.
@@ -134,7 +133,6 @@ module.exports = {
/**
* Checks whether the removal of `else` and its braces is safe from variable name collisions.
- *
* @param {Node} node The 'else' node.
* @param {eslint-scope.Scope} scope The scope in which the node and the whole 'if' statement is.
* @returns {boolean} True if it is safe, false otherwise.
@@ -171,7 +169,6 @@ module.exports = {
/**
* Display the context report if rule is violated
- *
* @param {Node} node The 'else' node
* @returns {void}
*/
@@ -255,7 +252,6 @@ module.exports = {
/**
* Check to see if the node is a ReturnStatement
- *
* @param {Node} node The node being evaluated
* @returns {boolean} True if node is a return
*/
@@ -267,7 +263,6 @@ module.exports = {
* Naive return checking, does not iterate through the whole
* BlockStatement because we make the assumption that the ReturnStatement
* will be the last node in the body of the BlockStatement.
- *
* @param {Node} node The consequent/alternate node
* @returns {boolean} True if it has a return
*/
@@ -284,7 +279,6 @@ module.exports = {
/**
* Check to see if the node is valid for evaluation,
* meaning it has an else.
- *
* @param {Node} node The node being evaluated
* @returns {boolean} True if the node is valid
*/
@@ -296,7 +290,6 @@ module.exports = {
* If the consequent is an IfStatement, check to see if it has an else
* and both its consequent and alternate path return, meaning this is
* a nested case of rule violation. If-Else not considered currently.
- *
* @param {Node} node The consequent node
* @returns {boolean} True if this is a nested rule violation
*/
@@ -309,7 +302,6 @@ module.exports = {
* Check the consequent/body node to make sure it is not
* a ReturnStatement or an IfStatement that returns on both
* code paths.
- *
* @param {Node} node The consequent or body node
* @returns {boolean} `true` if it is a Return/If node that always returns.
*/