Skip to content

Commit e953620

Browse files
authored
Merge branch 'master' into greenkeeper/estraverse-5.0.0
2 parents f52c206 + 4c60546 commit e953620

24 files changed

+77
-455
lines changed

.travis.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
language: node_js
22
node_js:
3+
- "14"
34
- "12"
45
- "10"
5-
- "9"
66
- "8"
7-
- "7"
87
- "6"
9-
- "5"
108
- "4"
119
cache:
1210
yarn: true
@@ -29,6 +27,7 @@ env:
2927
global:
3028
- TEST=true
3129
matrix:
30+
- ESLINT=7
3231
- ESLINT=6
3332
- ESLINT=5
3433
- ESLINT=4
@@ -45,19 +44,15 @@ matrix:
4544
env: ESLINT=5
4645
- node_js: "4"
4746
env: ESLINT=6
48-
- node_js: "5"
49-
env: ESLINT=5
47+
- node_js: "4"
48+
env: ESLINT=7
5049
- node_js: "6"
5150
env: ESLINT=6
51+
- node_js: "6"
52+
env: ESLINT=7
53+
- node_js: "8"
54+
env: ESLINT=7
5255
allow_failures:
53-
- node_js: "7"
54-
env: ESLINT=6
55-
- node_js: "5"
56-
env: ESLINT=6
57-
- node_js: "5"
58-
env: ESLINT=4
59-
- node_js: "5"
60-
env: ESLINT=3
6156
- node_js: "4"
6257
env: ESLINT=4
6358
- node_js: "4"

__tests__/src/rules/alt-text-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const array = [{
5050
'input[type="image"]': ['InputImage'],
5151
}];
5252

53-
5453
ruleTester.run('alt-text', rule, {
5554
valid: [
5655
// DEFAULT ELEMENT 'img' TESTS

__tests__/src/rules/label-has-associated-control-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const htmlForValid = [
3030
{ code: '<label htmlFor="js_id"><span><span><span>A label</span></span></span></label>', options: [{ depth: 4 }] },
3131
{ code: '<label htmlFor="js_id" aria-label="A label" />' },
3232
{ code: '<label htmlFor="js_id" aria-labelledby="A label" />' },
33+
{ code: '<div><label htmlFor="js_id">A label</label><input id="js_id" /></div>' },
3334
// Custom label component.
3435
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ labelComponents: ['CustomLabel'] }] },
3536
{ code: '<CustomLabel htmlFor="js_id" label="A label" />', options: [{ labelAttributes: ['label'], labelComponents: ['CustomLabel'] }] },

__tests__/src/rules/label-has-for-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const expectedEveryError = {
3434
type: 'JSXOpeningElement',
3535
};
3636

37-
3837
const optionsComponents = [{
3938
components: ['Label', 'Descriptor'],
4039
}];

__tests__/src/rules/lang-test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ ruleTester.run('lang', rule, {
3030
{ code: '<div lang="foo" />;' },
3131
{ code: '<html lang="en" />' },
3232
{ code: '<html lang="en-US" />' },
33+
{ code: '<html lang="zh-Hans" />' },
34+
{ code: '<html lang="zh-Hant-HK" />' },
35+
{ code: '<html lang="zh-yue-Hant" />' },
36+
{ code: '<html lang="ja-Latn" />' },
3337
{ code: '<html lang={foo} />' },
3438
{ code: '<HTML lang="foo" />' },
3539
{ code: '<Foo lang="bar" />' },

__tests__/src/rules/mouse-events-have-key-events-test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,21 @@ ruleTester.run('mouse-events-have-key-events', rule, {
3939
code: '<div onMouseOver={handleMouseOver} onFocus={handleFocus} {...props} />;',
4040
},
4141
{ code: '<div />;' },
42+
{ code: '<div onBlur={() => {}} />' },
43+
{ code: '<div onFocus={() => {}} />' },
4244
{ code: '<div onMouseOut={() => void 0} onBlur={() => void 0} />' },
4345
{ code: '<div onMouseOut={() => void 0} onBlur={() => void 0} {...props} />' },
4446
{ code: '<div onMouseOut={handleMouseOut} onBlur={handleOnBlur} />' },
4547
{ code: '<div onMouseOut={handleMouseOut} onBlur={handleOnBlur} {...props} />' },
48+
{ code: '<MyElement />' },
49+
{ code: '<MyElement onMouseOver={() => {}} />' },
50+
{ code: '<MyElement onMouseOut={() => {}} />' },
51+
{ code: '<MyElement onBlur={() => {}} />' },
52+
{ code: '<MyElement onFocus={() => {}} />' },
53+
{ code: '<MyElement onMouseOver={() => {}} {...props} />' },
54+
{ code: '<MyElement onMouseOut={() => {}} {...props} />' },
55+
{ code: '<MyElement onBlur={() => {}} {...props} />' },
56+
{ code: '<MyElement onFocus={() => {}} {...props} />' },
4657
].map(parserOptionsMapper),
4758
invalid: [
4859
{ code: '<div onMouseOver={() => void 0} />;', errors: [mouseOverError] },

__tests__/src/rules/no-onchange-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* @author Ethan Cohen
55
*/
66

7-
87
// -----------------------------------------------------------------------------
98
// Requirements
109
// -----------------------------------------------------------------------------

__tests__/src/rules/role-has-required-aria-props-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const errorMessage = (role) => {
2929
};
3030
};
3131

32-
3332
// Create basic test cases using all valid role types.
3433
const basicValidityTests = [...roles.keys()].map((role) => {
3534
const {

__tests__/src/util/hasAccessibleChild-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ describe('hasAccessibleChild', () => {
1111
});
1212
});
1313

14-
1514
describe('has no children and sets dangerouslySetInnerHTML', () => {
1615
it('Returns true', () => {
1716
const prop = JSXAttributeMock('dangerouslySetInnerHTML', true);

docs/rules/aria-activedescendant-has-tabindex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# aria-activedescendant-has-tabindex
22

3-
`aria-activedescendant` is used to manage focus within a [composite widget](https://www.w3.org/TR/wai-aria/roles#composite_header).
3+
`aria-activedescendant` is used to manage focus within a [composite widget](https://www.w3.org/TR/wai-aria/#composite).
44
The element with the attribute `aria-activedescendant` retains the active document
55
focus; it indicates which of its child elements has secondary focus by assigning
66
the ID of that element to the value of `aria-activedescendant`. This pattern is

0 commit comments

Comments
 (0)