summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/generator-star-spacing.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/generator-star-spacing.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/generator-star-spacing.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/generator-star-spacing.js13
1 files changed, 4 insertions, 9 deletions
diff --git a/tools/node_modules/eslint/lib/rules/generator-star-spacing.js b/tools/node_modules/eslint/lib/rules/generator-star-spacing.js
index 6f860290ce..65534f727f 100644
--- a/tools/node_modules/eslint/lib/rules/generator-star-spacing.js
+++ b/tools/node_modules/eslint/lib/rules/generator-star-spacing.js
@@ -78,9 +78,8 @@ module.exports = {
/**
* Returns resolved option definitions based on an option and defaults
- *
- * @param {any} option - The option object or string value
- * @param {Object} defaults - The defaults to use if options are not present
+ * @param {any} option The option object or string value
+ * @param {Object} defaults The defaults to use if options are not present
* @returns {Object} the resolved object definition
*/
function optionToDefinition(option, defaults) {
@@ -107,8 +106,7 @@ module.exports = {
/**
* Checks if the given token is a star token or not.
- *
- * @param {Token} token - The token to check.
+ * @param {Token} token The token to check.
* @returns {boolean} `true` if the token is a star token.
*/
function isStarToken(token) {
@@ -117,8 +115,7 @@ module.exports = {
/**
* Gets the generator star token of the given function node.
- *
- * @param {ASTNode} node - The function node to get.
+ * @param {ASTNode} node The function node to get.
* @returns {Token} Found star token.
*/
function getStarToken(node) {
@@ -139,7 +136,6 @@ module.exports = {
/**
* Checks the spacing between two tokens before or after the star token.
- *
* @param {string} kind Either "named", "anonymous", or "method"
* @param {string} side Either "before" or "after".
* @param {Token} leftToken `function` keyword token if side is "before", or
@@ -173,7 +169,6 @@ module.exports = {
/**
* Enforces the spacing around the star if node is a generator function.
- *
* @param {ASTNode} node A function expression or declaration node.
* @returns {void}
*/