@markuplint/rules 4.0.0-alpha.1 → 4.0.0-alpha.11

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.
Files changed (56) hide show
  1. package/.eslintrc +5 -0
  2. package/LICENSE +1 -1
  3. package/lib/attr-check.js +2 -2
  4. package/lib/attr-duplication/index.js +3 -0
  5. package/lib/attr-value-quotes/index.js +3 -1
  6. package/lib/case-sensitive-attr-name/index.js +3 -0
  7. package/lib/case-sensitive-tag-name/index.js +3 -0
  8. package/lib/character-reference/index.js +8 -5
  9. package/lib/class-naming/index.js +5 -2
  10. package/lib/create-message.d.ts +1 -1
  11. package/lib/create-message.js +21 -10
  12. package/lib/deprecated-attr/index.js +3 -0
  13. package/lib/deprecated-element/index.js +4 -1
  14. package/lib/disallowed-element/index.js +7 -4
  15. package/lib/doctype/index.js +3 -0
  16. package/lib/end-tag/index.js +3 -0
  17. package/lib/helpers.js +10 -6
  18. package/lib/id-duplication/index.js +3 -0
  19. package/lib/index.d.ts +6 -2
  20. package/lib/ineffective-attr/index.js +3 -0
  21. package/lib/invalid-attr/index.js +3 -0
  22. package/lib/label-has-control/index.js +3 -0
  23. package/lib/landmark-roles/index.js +13 -12
  24. package/lib/no-boolean-attr-value/index.js +3 -0
  25. package/lib/no-default-value/index.js +3 -0
  26. package/lib/no-empty-palpable-content/index.js +4 -1
  27. package/lib/no-hard-code-id/index.js +3 -0
  28. package/lib/no-refer-to-non-existent-id/index.d.ts +1 -1
  29. package/lib/no-refer-to-non-existent-id/index.js +11 -8
  30. package/lib/no-use-event-handler-attr/index.js +3 -0
  31. package/lib/permitted-contents/choice.js +14 -4
  32. package/lib/permitted-contents/content-model.js +6 -3
  33. package/lib/permitted-contents/count-pattern.js +1 -1
  34. package/lib/permitted-contents/debug.browser.d.ts +2 -2
  35. package/lib/permitted-contents/debug.d.ts +2 -2
  36. package/lib/permitted-contents/index.js +3 -0
  37. package/lib/permitted-contents/matches-selector.js +2 -2
  38. package/lib/permitted-contents/order.js +3 -3
  39. package/lib/permitted-contents/represent-transparent-nodes.js +1 -1
  40. package/lib/permitted-contents/transparent.js +2 -2
  41. package/lib/permitted-contents/utils.js +27 -18
  42. package/lib/placeholder-label-option/index.js +7 -4
  43. package/lib/require-accessible-name/index.js +3 -3
  44. package/lib/require-datetime/index.js +8 -5
  45. package/lib/require-datetime/utils.js +1 -1
  46. package/lib/required-attr/index.js +3 -0
  47. package/lib/required-element/index.js +4 -1
  48. package/lib/required-h1/index.js +3 -0
  49. package/lib/use-list/index.d.ts +4 -0
  50. package/lib/use-list/index.js +47 -27
  51. package/lib/wai-aria/checkings/implicit-props.js +7 -7
  52. package/lib/wai-aria/checkings/presentational-children.js +1 -1
  53. package/lib/wai-aria/checkings/required-owned-elements.js +3 -3
  54. package/lib/wai-aria/checkings/value.js +3 -3
  55. package/lib/wai-aria/index.js +3 -0
  56. package/package.json +11 -12
@@ -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.1",
3
+ "version": "4.0.0-alpha.11",
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.1",
29
- "@markuplint/ml-core": "4.0.0-alpha.1",
30
- "@markuplint/ml-spec": "4.0.0-alpha.1",
31
- "@markuplint/selector": "4.0.0-alpha.1",
32
- "@markuplint/shared": "4.0.0-alpha.1",
33
- "@markuplint/types": "4.0.0-alpha.1",
34
- "@types/debug": "^4.1.8",
28
+ "@markuplint/html-spec": "4.0.0-alpha.11",
29
+ "@markuplint/ml-core": "4.0.0-alpha.11",
30
+ "@markuplint/ml-spec": "4.0.0-alpha.11",
31
+ "@markuplint/selector": "4.0.0-alpha.11",
32
+ "@markuplint/shared": "4.0.0-alpha.11",
33
+ "@markuplint/types": "4.0.0-alpha.11",
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.6.3",
37
+ "chrono-node": "^2.7.5",
38
38
  "debug": "^4.3.4",
39
- "tslib": "^2.6.1",
40
- "type-fest": "^4.1.0"
39
+ "type-fest": "^4.10.1"
41
40
  },
42
- "gitHead": "22502ee22a378ae766033d687dbc0443e5ed35dc"
41
+ "gitHead": "78ab1adaa4e178b4187f6c5f135bb8fc0c8f4b9e"
43
42
  }