Skip to content

Commit

Permalink
Fix: Add to rebased
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Aug 18, 2021
1 parent be3f06b commit 38955bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rules/no-undef-init.js
Expand Up @@ -37,6 +37,7 @@ module.exports = {
/**
* Get the node of init target.
* @param {ASTNode} node The node to get.
* @throws {Error} (Unreachable.)
* @returns {ASTNode} The node of init target.
*/
function getIdNode(node) {
Expand All @@ -53,6 +54,7 @@ module.exports = {
/**
* Get the node of init value.
* @param {ASTNode} node The node to get.
* @throws {Error} (Unreachable.)
* @returns {ASTNode} The node of init value.
*/
function getInitNode(node) {
Expand All @@ -69,6 +71,7 @@ module.exports = {
/**
* Get the parent kind of the node.
* @param {ASTNode} node The node to get.
* @throws {Error} (Unreachable.)
* @returns {string} The parent kind.
*/
function getParentKind(node) {
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-useless-computed-key.js
Expand Up @@ -36,6 +36,7 @@ const astUtils = require("./utils/ast-utils");
* - class C { static ["prototype"]() {} } produces a runtime error (doesn't break the whole script)
* class C { static "prototype"() {} } produces a parsing error (breaks the whole script)
* @param {ASTNode} node The node to check. It can be `Property`, `PropertyDefinition` or `MethodDefinition`.
* @throws {Error} (Unreachable.)
* @returns {void} `true` if the node has useless computed key.
*/
function hasUselessComputedKey(node) {
Expand Down

0 comments on commit 38955bc

Please sign in to comment.