File tree 7 files changed +55
-206
lines changed
a11y-no-interactive-element-to-noninteractive-role
a11y-no-noninteractive-element-to-interactive-role
7 files changed +55
-206
lines changed Original file line number Diff line number Diff line change 103
103
"@ampproject/remapping" : " ^2.2.1" ,
104
104
"@jridgewell/sourcemap-codec" : " ^1.4.15" ,
105
105
"acorn" : " ^8.8.2" ,
106
- "aria-query" : " ^5.1.3 " ,
107
- "axobject-query" : " ^3.1 .1" ,
106
+ "aria-query" : " ^5.2.1 " ,
107
+ "axobject-query" : " ^3.2 .1" ,
108
108
"code-red" : " ^1.0.0" ,
109
109
"css-tree" : " ^2.3.1" ,
110
110
"estree-walker" : " ^3.0.3" ,
118
118
"@rollup/plugin-commonjs" : " ^24.1.0" ,
119
119
"@rollup/plugin-json" : " ^6.0.0" ,
120
120
"@rollup/plugin-node-resolve" : " ^15.0.2" ,
121
- "@rollup/plugin-replace" : " ^5.0.2" ,
122
121
"@sveltejs/eslint-config" : " ^6.0.4" ,
123
122
"@types/aria-query" : " ^5.0.1" ,
124
123
"@types/estree" : " ^1.0.1" ,
133
132
"source-map" : " ^0.7.4" ,
134
133
"tiny-glob" : " ^0.2.9" ,
135
134
"typescript" : " ^5.0.4" ,
136
- "util" : " ^0.12.5" ,
137
135
"vitest" : " ^0.31.1"
138
136
}
139
137
}
Original file line number Diff line number Diff line change 1
1
import fs from 'node:fs' ;
2
2
import { createRequire } from 'node:module' ;
3
- import replace from '@rollup/plugin-replace' ;
4
3
import resolve from '@rollup/plugin-node-resolve' ;
5
4
import commonjs from '@rollup/plugin-commonjs' ;
6
5
import json from '@rollup/plugin-json' ;
@@ -25,19 +24,8 @@ export default [
25
24
{
26
25
input : 'src/compiler/index.js' ,
27
26
plugins : [
28
- replace ( {
29
- preventAssignment : true ,
30
- values : {
31
- 'process.env.NODE_DEBUG' : false // appears inside the util package
32
- }
33
- } ) ,
34
27
{
35
28
resolveId ( id ) {
36
- // util is a built-in module in Node.js, but we want a self-contained compiler bundle
37
- // that also works in the browser, so we load its polyfill instead
38
- if ( id === 'util' ) {
39
- return require . resolve ( './node_modules/util' ) ; // just 'utils' would resolve this to the built-in module
40
- }
41
29
// Must import from the `css-tree` browser bundled distribution due to `createRequire` usage if importing from css-tree directly
42
30
if ( id === 'css-tree' ) {
43
31
return require . resolve ( './node_modules/css-tree/dist/csstree.esm.js' ) ;
Original file line number Diff line number Diff line change 143
143
<menuitem role =" listitem" />
144
144
<option class =" foo" role =" listitem" />
145
145
<select class =" foo" role =" listitem" />
146
- <summary role =" listitem" />
146
+ <summary role =" listitem" /> // TODO: https://github.com/sveltejs/svelte/issues/8728
147
147
<textarea class =" foo" role =" listitem" />
148
148
<tr role =" listitem" />
Original file line number Diff line number Diff line change 671
671
"line" : 145
672
672
}
673
673
},
674
- {
675
- "code" : " a11y-no-interactive-element-to-noninteractive-role" ,
676
- "end" : {
677
- "column" : 27 ,
678
- "line" : 146
679
- },
680
- "message" : " A11y: <summary> cannot have role 'listitem'" ,
681
- "start" : {
682
- "column" : 0 ,
683
- "line" : 146
684
- }
685
- },
686
674
{
687
675
"code" : " a11y-no-interactive-element-to-noninteractive-role" ,
688
676
"end" : {
Original file line number Diff line number Diff line change 2
2
<article role =" button" />
3
3
<aside role ="checkbox" aria-checked ={false } />
4
4
<blockquote role =" columnheader" />
5
- <body role ="combobox" aria-controls ={[]} aria-expanded />
5
+ <body role ="combobox" aria-controls ={[]} aria-expanded /> // TODO: https://github.com/sveltejs/svelte/issues/8728
6
6
<br role =" grid" />
7
7
<caption role =" gridcell" />
8
8
<dd role =" link" />
18
18
<figure role =" option" aria-selected />
19
19
<footer role =" radio" aria-checked />
20
20
<form role =" radiogroup" />
21
- <frame role =" row" />
21
+ <frame role =" row" /> // TODO: https://github.com/sveltejs/svelte/issues/8728
22
22
<h1 role =" rowheader" >Button</h1 >
23
23
<h2 role ="scrollbar" aria-controls ={[]} aria-valuenow ={0 } >Button</h2 >
24
24
<h3 role =" searchbox" >Button</h3 >
46
46
<section role =" radio" aria-label =" radio" aria-checked />
47
47
<table role =" menu" />
48
48
<tbody role =" searchbox" />
49
- <td role =" button" />
49
+ <td role =" button" /> // TODO: https://github.com/sveltejs/svelte/issues/8728
50
50
<tfoot role =" listbox" />
51
51
<thead role ="slider" aria-valuenow ={0 } />
52
52
<time role =" doc-backlink" />
Original file line number Diff line number Diff line change 35
35
"line" : 4
36
36
}
37
37
},
38
- {
39
- "code" : " a11y-no-noninteractive-element-to-interactive-role" ,
40
- "end" : {
41
- "column" : 57 ,
42
- "line" : 5
43
- },
44
- "message" : " A11y: Non-interactive element <body> cannot have interactive role 'combobox'" ,
45
- "start" : {
46
- "column" : 0 ,
47
- "line" : 5
48
- }
49
- },
50
38
{
51
39
"code" : " a11y-no-noninteractive-element-to-interactive-role" ,
52
40
"end" : {
203
191
"line" : 20
204
192
}
205
193
},
206
- {
207
- "code" : " a11y-no-noninteractive-element-to-interactive-role" ,
208
- "end" : {
209
- "column" : 20 ,
210
- "line" : 21
211
- },
212
- "message" : " A11y: Non-interactive element <frame> cannot have interactive role 'row'" ,
213
- "start" : {
214
- "column" : 0 ,
215
- "line" : 21
216
- }
217
- },
218
194
{
219
195
"code" : " a11y-no-noninteractive-element-to-interactive-role" ,
220
196
"end" : {
563
539
"line" : 48
564
540
}
565
541
},
566
- {
567
- "code" : " a11y-no-noninteractive-element-to-interactive-role" ,
568
- "end" : {
569
- "column" : 20 ,
570
- "line" : 49
571
- },
572
- "message" : " A11y: Non-interactive element <td> cannot have interactive role 'button'" ,
573
- "start" : {
574
- "column" : 0 ,
575
- "line" : 49
576
- }
577
- },
578
542
{
579
543
"code" : " a11y-no-noninteractive-element-to-interactive-role" ,
580
544
"end" : {
You can’t perform that action at this time.
0 commit comments