eslint-plugin-jsx-a11y
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -30,3 +30,4 @@ /** | ||
if (hasAltProp === false) { | ||
// alt must have a value. | ||
if (hasAltProp === false || hasAltProp === null) { | ||
context.report({ | ||
@@ -33,0 +34,0 @@ node: node, |
{ | ||
"name": "eslint-plugin-jsx-a11y", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A static analysis linter of jsx and their accessibility with screen readers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -25,3 +25,4 @@ /** | ||
if (hasAltProp === false) { | ||
// alt must have a value. | ||
if (hasAltProp === false || hasAltProp === null) { | ||
context.report({ | ||
@@ -28,0 +29,0 @@ node, |
@@ -51,2 +51,3 @@ /** | ||
{ code: '<img />;', errors: [ expectedError ], parserOptions }, | ||
{ code: '<img alt />;', errors: [ expectedError ], parserOptions }, | ||
{ code: '<img alt={undefined} />;', errors: [ expectedError ], parserOptions }, | ||
@@ -53,0 +54,0 @@ { code: '<img alt={`${undefined}`} />;', errors: [ expectedError ], parserOptions }, |
66649
1441