@citolab/qti-components 6.9.1-beta.8 → 6.9.1-beta.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,331 @@
1
+ import customElement from "eslint-plugin-custom-element";
2
+ import html from "@html-eslint/eslint-plugin";
3
+ import htmlParser from "@html-eslint/parser";
4
+
5
+ export const rules = {
6
+ "custom-element/required-attrs": ["error"],
7
+
8
+ "custom-element/no-deprecated-attrs": ["warn"],
9
+
10
+ "custom-element/constrained-attrs": ["error"],
11
+
12
+ "custom-element/no-deprecated-tags": ["warn"],
13
+
14
+ "custom-element/no-boolean-attr-values": [
15
+ "error",
16
+ {
17
+ tag: "undefined",
18
+ attr: "disabled",
19
+ },
20
+ {
21
+ tag: "undefined",
22
+ attr: "readonly",
23
+ },
24
+ {
25
+ tag: "qti-assessment-item",
26
+ attr: "disabled",
27
+ },
28
+ {
29
+ tag: "qti-assessment-item",
30
+ attr: "readonly",
31
+ },
32
+ {
33
+ tag: "qti-extended-text-interaction",
34
+ attr: "disabled",
35
+ },
36
+ {
37
+ tag: "qti-extended-text-interaction",
38
+ attr: "readonly",
39
+ },
40
+ {
41
+ tag: "qti-text-entry-interaction",
42
+ attr: "disabled",
43
+ },
44
+ {
45
+ tag: "qti-text-entry-interaction",
46
+ attr: "readonly",
47
+ },
48
+ {
49
+ tag: "qti-hottext-interaction",
50
+ attr: "disabled",
51
+ },
52
+ {
53
+ tag: "qti-hottext-interaction",
54
+ attr: "readonly",
55
+ },
56
+ {
57
+ tag: "qti-inline-choice-interaction",
58
+ attr: "disabled",
59
+ },
60
+ {
61
+ tag: "qti-inline-choice-interaction",
62
+ attr: "readonly",
63
+ },
64
+ {
65
+ tag: "qti-simple-choice",
66
+ attr: "aria-disabled",
67
+ },
68
+ {
69
+ tag: "qti-simple-choice",
70
+ attr: "aria-readonly",
71
+ },
72
+ {
73
+ tag: "qti-choice-interaction",
74
+ attr: "shuffle",
75
+ },
76
+ {
77
+ tag: "qti-choice-interaction",
78
+ attr: "disabled",
79
+ },
80
+ {
81
+ tag: "qti-choice-interaction",
82
+ attr: "readonly",
83
+ },
84
+ {
85
+ tag: "qti-portable-custom-interaction",
86
+ attr: "disabled",
87
+ },
88
+ {
89
+ tag: "qti-portable-custom-interaction",
90
+ attr: "readonly",
91
+ },
92
+ {
93
+ tag: "qti-simple-associable-choice",
94
+ attr: "fixed",
95
+ },
96
+ {
97
+ tag: "qti-simple-associable-choice",
98
+ attr: "aria-disabled",
99
+ },
100
+ {
101
+ tag: "qti-simple-associable-choice",
102
+ attr: "aria-readonly",
103
+ },
104
+ {
105
+ tag: "qti-associate-interaction",
106
+ attr: "disabled",
107
+ },
108
+ {
109
+ tag: "qti-associate-interaction",
110
+ attr: "readonly",
111
+ },
112
+ {
113
+ tag: "qti-custom-interaction",
114
+ attr: "disabled",
115
+ },
116
+ {
117
+ tag: "qti-custom-interaction",
118
+ attr: "readonly",
119
+ },
120
+ {
121
+ tag: "qti-end-attempt-interaction",
122
+ attr: "disabled",
123
+ },
124
+ {
125
+ tag: "qti-end-attempt-interaction",
126
+ attr: "readonly",
127
+ },
128
+ {
129
+ tag: "qti-gap-match-interaction",
130
+ attr: "disabled",
131
+ },
132
+ {
133
+ tag: "qti-gap-match-interaction",
134
+ attr: "readonly",
135
+ },
136
+ {
137
+ tag: "qti-hotspot-choice",
138
+ attr: "aria-disabled",
139
+ },
140
+ {
141
+ tag: "qti-hotspot-choice",
142
+ attr: "aria-readonly",
143
+ },
144
+ {
145
+ tag: "qti-graphic-associate-interaction",
146
+ attr: "disabled",
147
+ },
148
+ {
149
+ tag: "qti-graphic-associate-interaction",
150
+ attr: "readonly",
151
+ },
152
+ {
153
+ tag: "qti-graphic-gap-match-interaction",
154
+ attr: "disabled",
155
+ },
156
+ {
157
+ tag: "qti-graphic-gap-match-interaction",
158
+ attr: "readonly",
159
+ },
160
+ {
161
+ tag: "qti-graphic-order-interaction",
162
+ attr: "disabled",
163
+ },
164
+ {
165
+ tag: "qti-graphic-order-interaction",
166
+ attr: "readonly",
167
+ },
168
+ {
169
+ tag: "qti-hotspot-interaction",
170
+ attr: "disabled",
171
+ },
172
+ {
173
+ tag: "qti-hotspot-interaction",
174
+ attr: "readonly",
175
+ },
176
+ {
177
+ tag: "qti-match-interaction",
178
+ attr: "disabled",
179
+ },
180
+ {
181
+ tag: "qti-match-interaction",
182
+ attr: "readonly",
183
+ },
184
+ {
185
+ tag: "qti-media-interaction",
186
+ attr: "disabled",
187
+ },
188
+ {
189
+ tag: "qti-media-interaction",
190
+ attr: "readonly",
191
+ },
192
+ {
193
+ tag: "qti-order-interaction",
194
+ attr: "shuffle",
195
+ },
196
+ {
197
+ tag: "qti-order-interaction",
198
+ attr: "disabled",
199
+ },
200
+ {
201
+ tag: "qti-order-interaction",
202
+ attr: "readonly",
203
+ },
204
+ {
205
+ tag: "qti-select-point-interaction",
206
+ attr: "disabled",
207
+ },
208
+ {
209
+ tag: "qti-select-point-interaction",
210
+ attr: "readonly",
211
+ },
212
+ {
213
+ tag: "qti-slider-interaction",
214
+ attr: "step-label",
215
+ },
216
+ {
217
+ tag: "qti-slider-interaction",
218
+ attr: "reverse",
219
+ },
220
+ {
221
+ tag: "qti-slider-interaction",
222
+ attr: "disabled",
223
+ },
224
+ {
225
+ tag: "qti-slider-interaction",
226
+ attr: "readonly",
227
+ },
228
+ {
229
+ tag: "qti-gap-text",
230
+ attr: "aria-disabled",
231
+ },
232
+ {
233
+ tag: "qti-gap-text",
234
+ attr: "aria-readonly",
235
+ },
236
+ {
237
+ tag: "qti-hottext",
238
+ attr: "aria-disabled",
239
+ },
240
+ {
241
+ tag: "qti-hottext",
242
+ attr: "aria-readonly",
243
+ },
244
+ {
245
+ tag: "test-element",
246
+ attr: "shuffle",
247
+ },
248
+ {
249
+ tag: "test-element",
250
+ attr: "disabled",
251
+ },
252
+ {
253
+ tag: "test-element",
254
+ attr: "readonly",
255
+ },
256
+ {
257
+ tag: "test-element",
258
+ attr: "shuffle",
259
+ },
260
+ {
261
+ tag: "test-element",
262
+ attr: "disabled",
263
+ },
264
+ {
265
+ tag: "test-element",
266
+ attr: "readonly",
267
+ },
268
+ {
269
+ tag: "test-element",
270
+ attr: "shuffle",
271
+ },
272
+ {
273
+ tag: "test-element",
274
+ attr: "disabled",
275
+ },
276
+ {
277
+ tag: "test-element",
278
+ attr: "readonly",
279
+ },
280
+ ],
281
+
282
+ "@html-eslint/no-duplicate-attrs": "off",
283
+ "@html-eslint/no-duplicate-id": "off",
284
+ "@html-eslint/no-inline-styles": "off",
285
+ "@html-eslint/no-obsolete-tags": "off",
286
+ "@html-eslint/no-restricted-attr-values": "off",
287
+ "@html-eslint/no-restricted-attrs": "off",
288
+ "@html-eslint/no-script-style-type": "off",
289
+ "@html-eslint/no-target-blank": "off",
290
+ "@html-eslint/require-attrs": "off",
291
+ "@html-eslint/require-button-type": "off",
292
+ "@html-eslint/require-closing-tags": "off",
293
+ "@html-eslint/require-doctype": "off",
294
+ "@html-eslint/require-li-container": "off",
295
+ "@html-eslint/require-meta-charset": "off",
296
+ "@html-eslint/no-multiple-h1": "off",
297
+ "@html-eslint/require-lang": "off",
298
+ "@html-eslint/require-meta-description": "off",
299
+ "@html-eslint/require-open-graph-protocol": "off",
300
+ "@html-eslint/require-title": "off",
301
+ "@html-eslint/no-abstract-roles": "off",
302
+ "@html-eslint/no-accesskey-attrs": "off",
303
+ "@html-eslint/no-aria-hidden-body": "off",
304
+ "@html-eslint/no-non-scalable-viewport": "off",
305
+ "@html-eslint/no-positive-tabindex": "off",
306
+ "@html-eslint/no-skip-heading-levels": "off",
307
+ "@html-eslint/require-frame-title": "off",
308
+ "@html-eslint/require-img-alt": "off",
309
+ "@html-eslint/require-meta-viewport": "off",
310
+ "@html-eslint/element-newline": "off",
311
+ "@html-eslint/id-naming-convention": "off",
312
+ "@html-eslint/indent": "off",
313
+ "@html-eslint/lowercase": "off",
314
+ "@html-eslint/no-extra-spacing-attrs": "off",
315
+ "@html-eslint/no-multiple-empty-lines": "off",
316
+ "@html-eslint/no-trailing-spaces": "off",
317
+ "@html-eslint/quotes": "off",
318
+ "@html-eslint/sort-attrs": "off",
319
+ };
320
+
321
+ export default {
322
+ rules,
323
+ recommendedConfig: {
324
+ files: ["**/*.html"],
325
+ languageOptions: {
326
+ parser: htmlParser,
327
+ },
328
+ plugins: { html, "custom-element": customElement },
329
+ rules,
330
+ },
331
+ };