eslint-plugin-jsx-a11y
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -11,3 +11,3 @@ 'use strict'; | ||
'no-access-key': require('./rules/no-access-key'), | ||
'use-label-for': require('./rules/use-label-for'), | ||
'label-uses-for': require('./rules/label-uses-for'), | ||
'no-hash-href': require('./rules/no-hash-href') | ||
@@ -29,3 +29,3 @@ }, | ||
"jsx-a11y/no-access-key": 2, | ||
"jsx-a11y/use-label-for": 2, | ||
"jsx-a11y/label-uses-for": 2, | ||
"jsx-a11y/no-hash-href": 2 | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "eslint-plugin-jsx-a11y", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "A static analysis linter of jsx and their accessibility with screen readers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -24,3 +24,3 @@ <p align="center"> | ||
## Why? | ||
Ryan Florence built out this awesome runtime-analysis tool called [react-a11y](https://github.com/reactjs/react-a11y). It is pretty awesome. However, since you're probably already using linting in your project, this plugin comes for free and closer to the actual development process. Pairing this plugin with an editor lint plugin, you can bake accessibility standards into your application in real-time. | ||
Ryan Florence built out this awesome runtime-analysis tool called [react-a11y](https://github.com/reactjs/react-a11y). It is super useful. However, since you're probably already using linting in your project, this plugin comes for free and closer to the actual development process. Pairing this plugin with an editor lint plugin, you can bake accessibility standards into your application in real-time. | ||
@@ -75,3 +75,3 @@ **Note**: This project does not *replace* react-a11y, but can and should be used in conjunction with it. Static analysis tools cannot determine values of variables that are being placed in props before runtime, so linting will not fail if that value is undefined and/or does not pass the lint rule. | ||
- [no-access-key](docs/rules/no-access-key.md): Enforce that the accessKey prop is not used on any element to avoid complications with keyboard commands used by a screenreader. | ||
- [use-label-for](docs/rules/use-label-for.md): Enforce that label elements have the htmlFor attribute | ||
- [label-uses-for](docs/rules/label-uses-for.md): Enforce that label elements have the htmlFor attribute | ||
- [redundant-alt](docs/rules/redundant-alt.md): Enforce img alt attribute does not contain the word image, picture, or photo. | ||
@@ -78,0 +78,0 @@ - [no-hash-href](docs/rules/no-hash-href.md): Enforce an anchor element's href prop value is not just #. |
@@ -11,3 +11,3 @@ 'use strict'; | ||
'no-access-key': require('./rules/no-access-key'), | ||
'use-label-for': require('./rules/use-label-for'), | ||
'label-uses-for': require('./rules/label-uses-for'), | ||
'no-hash-href': require('./rules/no-hash-href') | ||
@@ -29,3 +29,3 @@ }, | ||
"jsx-a11y/no-access-key": 2, | ||
"jsx-a11y/use-label-for": 2, | ||
"jsx-a11y/label-uses-for": 2, | ||
"jsx-a11y/no-hash-href": 2 | ||
@@ -32,0 +32,0 @@ } |
@@ -24,6 +24,6 @@ /* eslint-env mocha */ | ||
describe('configurations', function() { | ||
it('should export a \'recommended\' configuration', function() { | ||
describe('configurations', () => { | ||
it('should export a \'recommended\' configuration', () => { | ||
assert(plugin.configs.recommended); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85856