Update checked-in dependencies
This commit is contained in:
parent
99c9f6a498
commit
e266801e21
242 changed files with 2638 additions and 9296 deletions
12
node_modules/eslint/lib/rules/utils/ast-utils.js
generated
vendored
12
node_modules/eslint/lib/rules/utils/ast-utils.js
generated
vendored
|
|
@ -1006,6 +1006,15 @@ function isTopLevelExpressionStatement(node) {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the given node is a part of a directive prologue or not.
|
||||
* @param {ASTNode} node The node to check.
|
||||
* @returns {boolean} `true` if the node is a part of directive prologue.
|
||||
*/
|
||||
function isDirective(node) {
|
||||
return node.type === "ExpressionStatement" && typeof node.directive === "string";
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Public Interface
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
@ -2158,5 +2167,6 @@ module.exports = {
|
|||
getSwitchCaseColonToken,
|
||||
getModuleExportName,
|
||||
isConstant,
|
||||
isTopLevelExpressionStatement
|
||||
isTopLevelExpressionStatement,
|
||||
isDirective
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue