@markuplint/rules 4.0.0-alpha.1 → 4.0.0-alpha.10
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.
- package/.eslintrc +5 -0
- package/LICENSE +1 -1
- package/lib/attr-check.js +2 -2
- package/lib/attr-duplication/index.js +3 -0
- package/lib/attr-value-quotes/index.js +3 -1
- package/lib/case-sensitive-attr-name/index.js +3 -0
- package/lib/case-sensitive-tag-name/index.js +3 -0
- package/lib/character-reference/index.js +8 -5
- package/lib/class-naming/index.js +5 -2
- package/lib/create-message.d.ts +1 -1
- package/lib/create-message.js +21 -10
- package/lib/deprecated-attr/index.js +3 -0
- package/lib/deprecated-element/index.js +4 -1
- package/lib/disallowed-element/index.js +7 -4
- package/lib/doctype/index.js +3 -0
- package/lib/end-tag/index.js +3 -0
- package/lib/helpers.js +10 -6
- package/lib/id-duplication/index.js +3 -0
- package/lib/index.d.ts +6 -2
- package/lib/ineffective-attr/index.js +3 -0
- package/lib/invalid-attr/index.js +3 -0
- package/lib/label-has-control/index.js +3 -0
- package/lib/landmark-roles/index.js +13 -12
- package/lib/no-boolean-attr-value/index.js +3 -0
- package/lib/no-default-value/index.js +3 -0
- package/lib/no-empty-palpable-content/index.js +4 -1
- package/lib/no-hard-code-id/index.js +3 -0
- package/lib/no-refer-to-non-existent-id/index.d.ts +1 -1
- package/lib/no-refer-to-non-existent-id/index.js +11 -8
- package/lib/no-use-event-handler-attr/index.js +3 -0
- package/lib/permitted-contents/choice.js +14 -4
- package/lib/permitted-contents/content-model.js +6 -3
- package/lib/permitted-contents/count-pattern.js +1 -1
- package/lib/permitted-contents/debug.browser.d.ts +2 -2
- package/lib/permitted-contents/debug.d.ts +2 -2
- package/lib/permitted-contents/index.js +3 -0
- package/lib/permitted-contents/matches-selector.js +2 -2
- package/lib/permitted-contents/order.js +3 -3
- package/lib/permitted-contents/represent-transparent-nodes.js +1 -1
- package/lib/permitted-contents/transparent.js +2 -2
- package/lib/permitted-contents/utils.js +27 -18
- package/lib/placeholder-label-option/index.js +7 -4
- package/lib/require-accessible-name/index.js +3 -3
- package/lib/require-datetime/index.js +8 -5
- package/lib/require-datetime/utils.js +1 -1
- package/lib/required-attr/index.js +3 -0
- package/lib/required-element/index.js +4 -1
- package/lib/required-h1/index.js +3 -0
- package/lib/use-list/index.d.ts +4 -0
- package/lib/use-list/index.js +47 -27
- package/lib/wai-aria/checkings/implicit-props.js +7 -7
- package/lib/wai-aria/checkings/presentational-children.js +1 -1
- package/lib/wai-aria/checkings/required-owned-elements.js +3 -3
- package/lib/wai-aria/checkings/value.js +3 -3
- package/lib/wai-aria/index.js +3 -0
- package/package.json +11 -12
package/lib/wai-aria/index.js
CHANGED
|
@@ -16,6 +16,9 @@ import { checkingRequiredOwnedElements } from './checkings/required-owned-elemen
|
|
|
16
16
|
import { checkingRequiredProp } from './checkings/required-prop.js';
|
|
17
17
|
import { checkingValue } from './checkings/value.js';
|
|
18
18
|
export default createRule({
|
|
19
|
+
meta: {
|
|
20
|
+
category: 'a11y',
|
|
21
|
+
},
|
|
19
22
|
defaultOptions: {
|
|
20
23
|
checkingValue: true,
|
|
21
24
|
checkingDeprecatedProps: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/rules",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.10",
|
|
4
4
|
"description": "Built-in rules of markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -25,19 +25,18 @@
|
|
|
25
25
|
"./lib/permitted-contents/debug.js": "./lib/permitted-contents/debug.browser.js"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@markuplint/html-spec": "4.0.0-alpha.
|
|
29
|
-
"@markuplint/ml-core": "4.0.0-alpha.
|
|
30
|
-
"@markuplint/ml-spec": "4.0.0-alpha.
|
|
31
|
-
"@markuplint/selector": "4.0.0-alpha.
|
|
32
|
-
"@markuplint/shared": "4.0.0-alpha.
|
|
33
|
-
"@markuplint/types": "4.0.0-alpha.
|
|
34
|
-
"@types/debug": "^4.1.
|
|
28
|
+
"@markuplint/html-spec": "4.0.0-alpha.10",
|
|
29
|
+
"@markuplint/ml-core": "4.0.0-alpha.10",
|
|
30
|
+
"@markuplint/ml-spec": "4.0.0-alpha.10",
|
|
31
|
+
"@markuplint/selector": "4.0.0-alpha.10",
|
|
32
|
+
"@markuplint/shared": "4.0.0-alpha.10",
|
|
33
|
+
"@markuplint/types": "4.0.0-alpha.10",
|
|
34
|
+
"@types/debug": "^4.1.12",
|
|
35
35
|
"@ungap/structured-clone": "^1.2.0",
|
|
36
36
|
"ansi-colors": "^4.1.3",
|
|
37
|
-
"chrono-node": "^2.
|
|
37
|
+
"chrono-node": "^2.7.5",
|
|
38
38
|
"debug": "^4.3.4",
|
|
39
|
-
"
|
|
40
|
-
"type-fest": "^4.1.0"
|
|
39
|
+
"type-fest": "^4.10.1"
|
|
41
40
|
},
|
|
42
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "b41153ea665aa8f091daf6114a06047f4ccb8350"
|
|
43
42
|
}
|