Update checked-in dependencies
This commit is contained in:
parent
601c5ba56e
commit
eff6331393
1778 changed files with 42517 additions and 154082 deletions
2
node_modules/eslint-plugin-github/lib/rules/a11y-no-title-attribute.js
generated
vendored
2
node_modules/eslint-plugin-github/lib/rules/a11y-no-title-attribute.js
generated
vendored
|
|
@ -50,7 +50,7 @@ module.exports = {
|
|||
create(context) {
|
||||
return {
|
||||
JSXElement: node => {
|
||||
const elementType = getElementType(context, node.openingElement)
|
||||
const elementType = getElementType(context, node.openingElement, true)
|
||||
if (elementType !== `iframe` && ifSemanticElement(context, node)) {
|
||||
const titleProp = getPropValue(getProp(node.openingElement.attributes, `title`))
|
||||
if (titleProp) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const {getProp, getPropValue} = require('jsx-ast-utils')
|
||||
const {getProp, getLiteralPropValue} = require('jsx-ast-utils')
|
||||
const {getElementType} = require('../utils/get-element-type')
|
||||
const {generateObjSchema} = require('eslint-plugin-jsx-a11y/lib/util/schemas')
|
||||
|
||||
|
|
@ -32,9 +32,12 @@ const checkIfInteractiveElement = (context, node) => {
|
|||
const checkIfVisuallyHiddenAndInteractive = (context, options, node, isParentVisuallyHidden) => {
|
||||
const {className, componentName} = options
|
||||
if (node.type === 'JSXElement') {
|
||||
const classes = getPropValue(getProp(node.openingElement.attributes, 'className'))
|
||||
const classes = getLiteralPropValue(getProp(node.openingElement.attributes, 'className'))
|
||||
const isVisuallyHiddenElement = node.openingElement.name.name === componentName
|
||||
const hasSROnlyClass = typeof classes !== 'undefined' && classes.includes(className)
|
||||
let hasSROnlyClass = false
|
||||
if (classes != null) {
|
||||
hasSROnlyClass = classes.includes(className)
|
||||
}
|
||||
let isHidden = false
|
||||
if (hasSROnlyClass || isVisuallyHiddenElement || !!isParentVisuallyHidden) {
|
||||
if (checkIfInteractiveElement(context, node)) {
|
||||
|
|
|
|||
4
node_modules/eslint-plugin-github/lib/rules/no-innerText.js
generated
vendored
4
node_modules/eslint-plugin-github/lib/rules/no-innerText.js
generated
vendored
|
|
@ -12,6 +12,10 @@ module.exports = {
|
|||
create(context) {
|
||||
return {
|
||||
MemberExpression(node) {
|
||||
// If the member expression is part of a call expression like `.innerText()` then it is not the same
|
||||
// as the `Element.innerText` property, and should not trigger a warning
|
||||
if (node.parent.type === 'CallExpression') return
|
||||
|
||||
if (node.property && node.property.name === 'innerText') {
|
||||
context.report({
|
||||
meta: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue