no-autofocus

pull/815/head
Rich Harris 8 years ago
parent d5b8d2fd48
commit 81c5a1fb3b

@ -65,7 +65,12 @@ export default function a11y(
// no-access-key
if (name === 'accesskey') {
validator.warn(`A11y: Avoid using the accessKey attribute`, attribute.start);
validator.warn(`A11y: Avoid using accesskey`, attribute.start);
}
// no-autofocus
if (name === 'autofocus') {
validator.warn(`A11y: Avoid using autofocus`, attribute.start);
}
attributeMap.set(attribute.name, attribute);

@ -1,5 +1,5 @@
[{
"message": "A11y: Avoid using the accessKey attribute",
"message": "A11y: Avoid using accesskey",
"loc": {
"line": 1,
"column": 5

@ -0,0 +1,8 @@
[{
"message": "A11y: Avoid using autofocus",
"loc": {
"line": 1,
"column": 5
},
"pos": 5
}]
Loading…
Cancel
Save