Socket
Socket
Sign inDemoInstall

eslint-plugin-jsx-a11y

Package Overview
Dependencies
0
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

3

lib/rules/img-uses-alt.js

@@ -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 },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc