Skip to content

Commit 1c0b4c7

Browse files
authored
Merge branch 'master' into patch-1
2 parents 91cbe0e + 20b48a4 commit 1c0b4c7

File tree

6 files changed

+49
-16
lines changed

6 files changed

+49
-16
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
6.4.1 / 2020-10-26
2+
==================
3+
- f8a4496 Upgrade jsx-ast-utils to v3.1.0
4+
5+
6.4.0 / 2020-10-26
6+
==================
7+
8+
- 83e4ff2 [Deps] update `axe-core`, `jsx-ast-utils`
9+
- eb92b07 [Dev Deps] update `@babel/cli`, `@babel/core`, `@babel/plugin-transform-flow-strip-types`, `eslint-plugin-flowtype`, `eslint-plugin-import`, `estraverse`, `expect`, `object.assign`
10+
- 3d98d7a [Deps] update `@babel/runtime`, `axe-core`
11+
- f702f62 [readme] add Spanish translation
12+
- c2ae092 [Docs] `no-static-element-interactions`: Fixed rule name in comments
13+
- b90e20d Fix screenreader -> screen reader
14+
- 645900a Fixed rule name in comments
15+
- 381b9d6 [fix:634] Ignore control elements that are hidden
16+
- 2c47f0a [Fix] `autocomplete-valid`: workaround for axe not being able to handle `null`
17+
- 00bd6d8 Add failing test for autocomplete with dynamic type
18+
- 3c49c9a Add WCAG guidelines to rule documentation
19+
- 4ecaf35 Add a testcase for tablist to interactive supports focus
20+
- dac6864 Deprecate the accessible-emoji rule
21+
- 5191053 Update to [email protected]
22+
- b315698 Allow negative tabindex in aria-activedescendant-has-tabindex
23+
- 8e6fcd0 docs: fix travis badge now points to correct location at travis-ci.com
24+
- 2234df7 Account for additional control elements in label-has-associated-control
25+
- 5cbb718 Adding test cases for label tests
26+
- 66c425c Additional test case for no-redundant-roles
27+
128
6.3.1 / 2020-06-19
229
==================
330

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626

2727
Static AST checker for accessibility rules on JSX elements.
2828

29+
30+
31+
#### *Read this in [other languages](https://github.com/ari-os310/eslint-plugin-jsx-a11y/blob/master/translations/Translations.md).*
32+
33+
[Mexican Spanish🇲🇽](https://github.com/ari-os310/eslint-plugin-jsx-a11y/blob/master/translations/README.mx.md)
34+
2935
## Why?
3036
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.
3137

@@ -80,7 +86,6 @@ Then configure the rules you want to use under the rules section.
8086
}
8187
```
8288

83-
8489
You can also enable all the recommended or strict rules at once.
8590
Add `plugin:jsx-a11y/recommended` or `plugin:jsx-a11y/strict` in `extends`:
8691

docs/rules/no-onchange.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# no-onchange
1+
# [Deprecated] no-onchange
2+
3+
⚠️ **Deprecated:** This rule is based on reports of behavior of [old browsers (eg. IE 10 and below)](https://www.quirksmode.org/dom/events/change.html#t05). In the meantime, this behavior has been corrected, both in newer versions of browsers as well as [in the DOM spec](https://bugzilla.mozilla.org/show_bug.cgi?id=969068#c2).
24

35
Enforce usage of `onBlur` over/in parallel with `onChange` on select menu elements for accessibility. `onBlur` **should** be used instead of `onChange`, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users. `onBlur` is a more declarative action by the user: for instance in a dropdown, using the arrow keys to toggle between options will trigger the `onChange` event in some browsers. Regardless, when a change of context results from an `onBlur` event or an `onChange` event, the user should be notified of the change unless it occurs below the currently focused element.
46

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-jsx-a11y",
3-
"version": "6.3.1",
3+
"version": "6.4.1",
44
"description": "Static AST checker for accessibility rules on JSX elements.",
55
"keywords": [
66
"eslint",
@@ -30,25 +30,25 @@
3030
"jest": "jest --coverage __tests__/**/*"
3131
},
3232
"devDependencies": {
33-
"@babel/cli": "^7.10.1",
34-
"@babel/core": "^7.10.2",
35-
"@babel/plugin-transform-flow-strip-types": "^7.10.1",
33+
"@babel/cli": "^7.11.6",
34+
"@babel/core": "^7.11.6",
35+
"@babel/plugin-transform-flow-strip-types": "^7.10.4",
3636
"babel-eslint": "^10.1.0",
3737
"babel-jest": "^24.9.0",
3838
"babel-preset-airbnb": "^5.0.0",
3939
"coveralls": "^3.1.0",
4040
"eslint": "^3 || ^4 || ^5 || ^6 || ^7",
4141
"eslint-config-airbnb-base": "^14.2.0",
42-
"eslint-plugin-flowtype": "^5.1.3",
43-
"eslint-plugin-import": "^2.21.2",
44-
"estraverse": "^5.0.0",
45-
"expect": "^24.3.1",
42+
"eslint-plugin-flowtype": "^5.2.0",
43+
"eslint-plugin-import": "^2.22.1",
44+
"estraverse": "^5.2.0",
45+
"expect": "^24.9.0",
4646
"flow-bin": "^0.113.0",
4747
"in-publish": "^2.0.1",
4848
"jest": "^24.9.0",
4949
"jscodeshift": "^0.7.0",
5050
"minimist": "^1.2.5",
51-
"object.assign": "^4.1.0",
51+
"object.assign": "^4.1.1",
5252
"rimraf": "^3.0.2",
5353
"safe-publish-latest": "^1.1.4",
5454
"to-ast": "^1.0.0"
@@ -58,16 +58,16 @@
5858
},
5959
"license": "MIT",
6060
"dependencies": {
61-
"@babel/runtime": "^7.10.2",
61+
"@babel/runtime": "^7.11.2",
6262
"aria-query": "^4.2.2",
6363
"array-includes": "^3.1.1",
6464
"ast-types-flow": "^0.0.7",
65-
"axe-core": "^3.5.4",
65+
"axe-core": "^4.0.2",
6666
"axobject-query": "^2.2.0",
6767
"damerau-levenshtein": "^1.0.6",
6868
"emoji-regex": "^9.0.0",
6969
"has": "^1.0.3",
70-
"jsx-ast-utils": "^2.4.1",
70+
"jsx-ast-utils": "^3.1.0",
7171
"language-tags": "^1.0.5"
7272
},
7373
"peerDependencies": {

src/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ module.exports = {
175175
allowExpressionValues: true,
176176
},
177177
],
178-
'jsx-a11y/no-onchange': 'error',
179178
'jsx-a11y/no-redundant-roles': 'error',
180179
'jsx-a11y/no-static-element-interactions': [
181180
'error',
@@ -283,7 +282,6 @@ module.exports = {
283282
],
284283
'jsx-a11y/no-noninteractive-element-to-interactive-role': 'error',
285284
'jsx-a11y/no-noninteractive-tabindex': 'error',
286-
'jsx-a11y/no-onchange': 'error',
287285
'jsx-a11y/no-redundant-roles': 'error',
288286
'jsx-a11y/no-static-element-interactions': 'error',
289287
'jsx-a11y/role-has-required-aria-props': 'error',

src/rules/no-onchange.js

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
docs: {
2525
url: 'https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules/no-onchange.md',
2626
},
27+
deprecated: true,
2728
schema: [schema],
2829
},
2930

0 commit comments

Comments
 (0)