Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd0a526

Browse filesBrowse files
authored
chore: Run Prettier
1 parent 50a07db commit cd0a526
Copy full SHA for cd0a526

File tree

Expand file treeCollapse file tree

9 files changed

+68
-68
lines changed
Filter options
Expand file treeCollapse file tree

9 files changed

+68
-68
lines changed

‎.eslintrc.js

Copy file name to clipboard
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
22
root: true,
33
parserOptions: {
4-
ecmaVersion: 13
4+
ecmaVersion: 13,
55
},
66
env: {
77
es6: true,
8-
node: true
8+
node: true,
99
},
1010
extends: [require.resolve('./lib/configs/recommended'), 'plugin:eslint-plugin/all'],
1111
plugins: ['eslint-plugin'],
@@ -15,6 +15,6 @@ module.exports = {
1515
'i18n-text/no-en': 'off',
1616
'eslint-plugin/prefer-placeholders': 'off',
1717
'eslint-plugin/test-case-shorthand-strings': 'off',
18-
'eslint-plugin/require-meta-docs-url': 'off'
19-
}
18+
'eslint-plugin/require-meta-docs-url': 'off',
19+
},
2020
}

‎docs/rules/authenticity-token.md

Copy file name to clipboardExpand all lines: docs/rules/authenticity-token.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ on('click', '.js-my-button', function (e) {
3333

3434
fetch(form.action, {
3535
method: form.method,
36-
body: new FormData(form)
36+
body: new FormData(form),
3737
}).then(function () {
3838
alert('Success!')
3939
})
@@ -52,7 +52,7 @@ An alternate, but less preferred approach is to include the a signed CSRF url in
5252
on('click', '.js-my-button', function (e) {
5353
csrfRequest(this.getAttribute('data-url'), {
5454
method: 'PUT',
55-
body: data
55+
body: data,
5656
}).then(function () {
5757
alert('Success!')
5858
})

‎docs/rules/no-useless-passive.md

Copy file name to clipboardExpand all lines: docs/rules/no-useless-passive.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ window.addEventListener(
2121
() => {
2222
console.log('Scroll event fired!')
2323
},
24-
{passive: true}
24+
{passive: true},
2525
)
2626
```
2727

‎docs/rules/prefer-observers.md

Copy file name to clipboardExpand all lines: docs/rules/prefer-observers.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ window.addEventListener('scroll', () => {
3434
const isIntersecting = checkIfElementIntersects(
3535
element.getBoundingClientRect(),
3636
window.innerHeight,
37-
document.clientHeight
37+
document.clientHeight,
3838
)
3939
element.classList.toggle('intersecting', isIntersecting)
4040
})

‎docs/rules/require-passive-events.md

Copy file name to clipboardExpand all lines: docs/rules/require-passive-events.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ window.addEventListener(
2828
() => {
2929
/* ... */
3030
},
31-
{passive: true}
31+
{passive: true},
3232
)
3333
```
3434

‎lib/configs/react.js

Copy file name to clipboardExpand all lines: lib/configs/react.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ module.exports = {
22
parserOptions: {
33
sourceType: 'module',
44
ecmaFeatures: {
5-
jsx: true
6-
}
5+
jsx: true,
6+
},
77
},
88
plugins: ['github', 'jsx-a11y'],
99
extends: ['plugin:jsx-a11y/recommended'],
1010
rules: {
1111
'github/a11y-no-generic-link-text': 'error',
1212
'github/role-supports-aria-props': 'error',
13-
'jsx-a11y/role-supports-aria-props': 'off'
14-
}
13+
'jsx-a11y/role-supports-aria-props': 'off',
14+
},
1515
}

‎lib/rules/role-supports-aria-props.js

Copy file name to clipboardExpand all lines: lib/rules/role-supports-aria-props.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ module.exports = {
2929
docs: {
3030
description:
3131
'Enforce that elements with explicit or implicit roles defined contain only `aria-*` properties supported by that `role`.',
32-
url: require('../url')(module)
32+
url: require('../url')(module),
3333
},
34-
schema: []
34+
schema: [],
3535
},
3636

3737
create(context) {
@@ -91,11 +91,11 @@ module.exports = {
9191
if (prohibitedProps?.includes(propName(prop))) {
9292
context.report({
9393
node,
94-
message: `The attribute ${propName(prop)} is not supported by the role ${role}.`
94+
message: `The attribute ${propName(prop)} is not supported by the role ${role}.`,
9595
})
9696
}
9797
}
98-
}
98+
},
9999
}
100-
}
100+
},
101101
}

‎tests/role-supports-aria-props.js

Copy file name to clipboardExpand all lines: tests/role-supports-aria-props.js
+46-46Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const ruleTester = new RuleTester({
1818
ecmaVersion: 'latest',
1919
sourceType: 'module',
2020
ecmaFeatures: {
21-
jsx: true
22-
}
23-
}
21+
jsx: true,
22+
},
23+
},
2424
})
2525

2626
function getErrorMessage(attribute, role) {
@@ -343,170 +343,170 @@ ruleTester.run('role-supports-aria-props', rule, {
343343
{code: '<select aria-expanded />'},
344344
{code: '<datalist aria-expanded />'},
345345
{code: '<div role="heading" aria-level />'},
346-
{code: '<div role="heading" aria-level="1" />'}
346+
{code: '<div role="heading" aria-level="1" />'},
347347
],
348348

349349
invalid: [
350350
// implicit basic checks
351351
{
352352
code: '<a href="#" aria-checked />',
353-
errors: [getErrorMessage('aria-checked', 'link')]
353+
errors: [getErrorMessage('aria-checked', 'link')],
354354
},
355355
{
356356
code: '<area href="#" aria-checked />',
357-
errors: [getErrorMessage('aria-checked', 'link')]
357+
errors: [getErrorMessage('aria-checked', 'link')],
358358
},
359359
{
360360
code: '<link href="#" aria-checked />',
361-
errors: [getErrorMessage('aria-checked', 'link')]
361+
errors: [getErrorMessage('aria-checked', 'link')],
362362
},
363363
{
364364
code: '<img alt="foobar" aria-checked />',
365-
errors: [getErrorMessage('aria-checked', 'img')]
365+
errors: [getErrorMessage('aria-checked', 'img')],
366366
},
367367
{
368368
code: '<menu type="toolbar" aria-checked />',
369-
errors: [getErrorMessage('aria-checked', 'toolbar')]
369+
errors: [getErrorMessage('aria-checked', 'toolbar')],
370370
},
371371
{
372372
code: '<aside aria-checked />',
373-
errors: [getErrorMessage('aria-checked', 'complementary')]
373+
errors: [getErrorMessage('aria-checked', 'complementary')],
374374
},
375375
{
376376
code: '<ul aria-expanded />',
377-
errors: [getErrorMessage('aria-expanded', 'list')]
377+
errors: [getErrorMessage('aria-expanded', 'list')],
378378
},
379379
{
380380
code: '<details aria-expanded />',
381-
errors: [getErrorMessage('aria-expanded', 'group')]
381+
errors: [getErrorMessage('aria-expanded', 'group')],
382382
},
383383
{
384384
code: '<dialog aria-expanded />',
385-
errors: [getErrorMessage('aria-expanded', 'dialog')]
385+
errors: [getErrorMessage('aria-expanded', 'dialog')],
386386
},
387387
{
388388
code: '<aside aria-expanded />',
389-
errors: [getErrorMessage('aria-expanded', 'complementary')]
389+
errors: [getErrorMessage('aria-expanded', 'complementary')],
390390
},
391391
{
392392
code: '<article aria-expanded />',
393-
errors: [getErrorMessage('aria-expanded', 'article')]
393+
errors: [getErrorMessage('aria-expanded', 'article')],
394394
},
395395
{
396396
code: '<body aria-expanded />',
397-
errors: [getErrorMessage('aria-expanded', 'document')]
397+
errors: [getErrorMessage('aria-expanded', 'document')],
398398
},
399399
{
400400
code: '<li aria-expanded />',
401-
errors: [getErrorMessage('aria-expanded', 'listitem')]
401+
errors: [getErrorMessage('aria-expanded', 'listitem')],
402402
},
403403
{
404404
code: '<nav aria-expanded />',
405-
errors: [getErrorMessage('aria-expanded', 'navigation')]
405+
errors: [getErrorMessage('aria-expanded', 'navigation')],
406406
},
407407
{
408408
code: '<ol aria-expanded />',
409-
errors: [getErrorMessage('aria-expanded', 'list')]
409+
errors: [getErrorMessage('aria-expanded', 'list')],
410410
},
411411
{
412412
code: '<output aria-expanded />',
413-
errors: [getErrorMessage('aria-expanded', 'status')]
413+
errors: [getErrorMessage('aria-expanded', 'status')],
414414
},
415415
{
416416
code: '<section aria-expanded />',
417-
errors: [getErrorMessage('aria-expanded', 'region')]
417+
errors: [getErrorMessage('aria-expanded', 'region')],
418418
},
419419
{
420420
code: '<tbody aria-expanded />',
421-
errors: [getErrorMessage('aria-expanded', 'rowgroup')]
421+
errors: [getErrorMessage('aria-expanded', 'rowgroup')],
422422
},
423423
{
424424
code: '<tfoot aria-expanded />',
425-
errors: [getErrorMessage('aria-expanded', 'rowgroup')]
425+
errors: [getErrorMessage('aria-expanded', 'rowgroup')],
426426
},
427427
{
428428
code: '<thead aria-expanded />',
429-
errors: [getErrorMessage('aria-expanded', 'rowgroup')]
429+
errors: [getErrorMessage('aria-expanded', 'rowgroup')],
430430
},
431431
{
432432
code: '<input type="radio" aria-invalid />',
433-
errors: [getErrorMessage('aria-invalid', 'radio')]
433+
errors: [getErrorMessage('aria-invalid', 'radio')],
434434
},
435435
{
436436
code: '<input type="radio" aria-selected />',
437-
errors: [getErrorMessage('aria-selected', 'radio')]
437+
errors: [getErrorMessage('aria-selected', 'radio')],
438438
},
439439
{
440440
code: '<input type="radio" aria-haspopup />',
441-
errors: [getErrorMessage('aria-haspopup', 'radio')]
441+
errors: [getErrorMessage('aria-haspopup', 'radio')],
442442
},
443443
{
444444
code: '<input type="checkbox" aria-haspopup />',
445-
errors: [getErrorMessage('aria-haspopup', 'checkbox')]
445+
errors: [getErrorMessage('aria-haspopup', 'checkbox')],
446446
},
447447
{
448448
code: '<input type="reset" aria-invalid />',
449-
errors: [getErrorMessage('aria-invalid', 'button')]
449+
errors: [getErrorMessage('aria-invalid', 'button')],
450450
},
451451
{
452452
code: '<input type="submit" aria-invalid />',
453-
errors: [getErrorMessage('aria-invalid', 'button')]
453+
errors: [getErrorMessage('aria-invalid', 'button')],
454454
},
455455
{
456456
code: '<input type="image" aria-invalid />',
457-
errors: [getErrorMessage('aria-invalid', 'button')]
457+
errors: [getErrorMessage('aria-invalid', 'button')],
458458
},
459459
{
460460
code: '<input type="button" aria-invalid />',
461-
errors: [getErrorMessage('aria-invalid', 'button')]
461+
errors: [getErrorMessage('aria-invalid', 'button')],
462462
},
463463
{
464464
code: '<menuitem type="command" aria-invalid />',
465-
errors: [getErrorMessage('aria-invalid', 'menuitem')]
465+
errors: [getErrorMessage('aria-invalid', 'menuitem')],
466466
},
467467
{
468468
code: '<menuitem type="radio" aria-selected />',
469-
errors: [getErrorMessage('aria-selected', 'menuitemradio')]
469+
errors: [getErrorMessage('aria-selected', 'menuitemradio')],
470470
},
471471
{
472472
code: '<menu type="toolbar" aria-haspopup />',
473-
errors: [getErrorMessage('aria-haspopup', 'toolbar')]
473+
errors: [getErrorMessage('aria-haspopup', 'toolbar')],
474474
},
475475
{
476476
code: '<menu type="toolbar" aria-invalid />',
477-
errors: [getErrorMessage('aria-invalid', 'toolbar')]
477+
errors: [getErrorMessage('aria-invalid', 'toolbar')],
478478
},
479479
{
480480
code: '<menu type="toolbar" aria-expanded />',
481-
errors: [getErrorMessage('aria-expanded', 'toolbar')]
481+
errors: [getErrorMessage('aria-expanded', 'toolbar')],
482482
},
483483
{
484484
code: '<link href="#" aria-invalid />',
485-
errors: [getErrorMessage('aria-invalid', 'link')]
485+
errors: [getErrorMessage('aria-invalid', 'link')],
486486
},
487487
{
488488
code: '<area href="#" aria-invalid />',
489-
errors: [getErrorMessage('aria-invalid', 'link')]
489+
errors: [getErrorMessage('aria-invalid', 'link')],
490490
},
491491
{
492492
code: '<a href="#" aria-invalid />',
493-
errors: [getErrorMessage('aria-invalid', 'link')]
493+
errors: [getErrorMessage('aria-invalid', 'link')],
494494
},
495495
{
496496
code: '<span aria-label />',
497-
errors: [getErrorMessage('aria-label', 'generic')]
497+
errors: [getErrorMessage('aria-label', 'generic')],
498498
},
499499
{
500500
code: '<span aria-labelledby />',
501-
errors: [getErrorMessage('aria-labelledby', 'generic')]
501+
errors: [getErrorMessage('aria-labelledby', 'generic')],
502502
},
503503
{
504504
code: '<div aria-label />',
505-
errors: [getErrorMessage('aria-label', 'generic')]
505+
errors: [getErrorMessage('aria-label', 'generic')],
506506
},
507507
{
508508
code: '<div aria-labelledby />',
509-
errors: [getErrorMessage('aria-labelledby', 'generic')]
510-
}
511-
]
509+
errors: [getErrorMessage('aria-labelledby', 'generic')],
510+
},
511+
],
512512
})

‎tests/utils/object-map.js

Copy file name to clipboardExpand all lines: tests/utils/object-map.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('ObjectMap', function () {
4646
it('lists entries that exist', function () {
4747
const iterable = [
4848
[{name: 'form'}, ['form']],
49-
[{name: 'span'}, ['generic']]
49+
[{name: 'span'}, ['generic']],
5050
]
5151
const objectMap = new ObjectMap(iterable)
5252
const iterator = objectMap.entries()
@@ -89,7 +89,7 @@ describe('ObjectMap', function () {
8989
it('calls callback for each datum', function () {
9090
const iterable = [
9191
[{name: 'form'}, ['form']],
92-
[{name: 'span'}, ['generic']]
92+
[{name: 'span'}, ['generic']],
9393
]
9494
const objectMap = new ObjectMap(iterable)
9595
const values = []
@@ -129,7 +129,7 @@ describe('ObjectMap', function () {
129129
it('lists keys', function () {
130130
const iterable = [
131131
[{name: 'form'}, ['form']],
132-
[{name: 'span'}, ['generic']]
132+
[{name: 'span'}, ['generic']],
133133
]
134134
const objectMap = new ObjectMap(iterable)
135135
const iterator = objectMap.keys()
@@ -168,7 +168,7 @@ describe('ObjectMap', function () {
168168
it('lists values', function () {
169169
const iterable = [
170170
[{name: 'form'}, ['form']],
171-
[{name: 'span'}, ['generic']]
171+
[{name: 'span'}, ['generic']],
172172
]
173173
const objectMap = new ObjectMap(iterable)
174174
const iterator = objectMap.values()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.