Update checked-in dependencies
This commit is contained in:
parent
3e913ef09d
commit
9660df3fcc
990 changed files with 74805 additions and 60149 deletions
4
node_modules/eslint-plugin-jsx-a11y/lib/util/mayContainChildComponent.js
generated
vendored
4
node_modules/eslint-plugin-jsx-a11y/lib/util/mayContainChildComponent.js
generated
vendored
|
|
@ -1,12 +1,12 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = mayContainChildComponent;
|
||||
var _jsxAstUtils = require("jsx-ast-utils");
|
||||
var _minimatch = _interopRequireDefault(require("minimatch"));
|
||||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
||||
/**
|
||||
* Returns true if it can positively determine that the element lacks an
|
||||
* accessible label. If no determination is possible, it returns false. Treat
|
||||
|
|
@ -34,7 +34,7 @@ function mayContainChildComponent(root, componentName) {
|
|||
if (childNode.type === 'JSXExpressionContainer') {
|
||||
return true;
|
||||
}
|
||||
// Check for comonents with the provided name.
|
||||
// Check for components with the provided name.
|
||||
if (childNode.type === 'JSXElement' && childNode.openingElement && (0, _minimatch["default"])(elementType(childNode.openingElement), componentName)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue