Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
16
node_modules/eslint-plugin-github/lib/rules/a11y-no-generic-link-text.js
generated
vendored
16
node_modules/eslint-plugin-github/lib/rules/a11y-no-generic-link-text.js
generated
vendored
|
|
@ -16,9 +16,11 @@ module.exports = {
|
|||
meta: {
|
||||
docs: {
|
||||
description: 'disallow generic link text',
|
||||
url: require('../url')(module)
|
||||
url: require('../url')(module),
|
||||
},
|
||||
schema: []
|
||||
deprecated: true,
|
||||
replacedBy: ['jsx-a11y/anchor-ambiguous-text'],
|
||||
schema: [],
|
||||
},
|
||||
|
||||
create(context) {
|
||||
|
|
@ -46,13 +48,13 @@ module.exports = {
|
|||
context.report({
|
||||
node,
|
||||
message:
|
||||
'Avoid setting generic link text like `Here`, `Click here`, `Read more`. Make sure that your link text is both descriptive and concise.'
|
||||
'Avoid setting generic link text like `Here`, `Click here`, `Read more`. Make sure that your link text is both descriptive and concise.',
|
||||
})
|
||||
}
|
||||
if (cleanTextContent && !cleanAriaLabelValue.includes(cleanTextContent)) {
|
||||
context.report({
|
||||
node,
|
||||
message: 'When using ARIA to set a more descriptive text, it must fully contain the visible label.'
|
||||
message: 'When using ARIA to set a more descriptive text, it must fully contain the visible label.',
|
||||
})
|
||||
}
|
||||
} else {
|
||||
|
|
@ -61,11 +63,11 @@ module.exports = {
|
|||
context.report({
|
||||
node: jsxTextNode,
|
||||
message:
|
||||
'Avoid setting generic link text like `Here`, `Click here`, `Read more`. Make sure that your link text is both descriptive and concise.'
|
||||
'Avoid setting generic link text like `Here`, `Click here`, `Read more`. Make sure that your link text is both descriptive and concise.',
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue