@markuplint/rules 3.9.0 → 3.10.0

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 (57) hide show
  1. package/lib/attr-duplication/index.d.ts +1 -3
  2. package/lib/attr-value-quotes/index.d.ts +2 -2
  3. package/lib/case-sensitive-attr-name/index.d.ts +1 -1
  4. package/lib/case-sensitive-tag-name/index.d.ts +1 -1
  5. package/lib/character-reference/index.d.ts +1 -1
  6. package/lib/class-naming/index.d.ts +1 -1
  7. package/lib/create-message.d.ts +2 -12
  8. package/lib/deprecated-attr/index.d.ts +1 -3
  9. package/lib/deprecated-element/index.d.ts +1 -3
  10. package/lib/disallowed-element/index.d.ts +1 -1
  11. package/lib/doctype/index.d.ts +2 -2
  12. package/lib/end-tag/index.d.ts +1 -1
  13. package/lib/helpers.d.ts +16 -34
  14. package/lib/id-duplication/index.d.ts +1 -3
  15. package/lib/index.d.ts +99 -240
  16. package/lib/ineffective-attr/index.d.ts +1 -3
  17. package/lib/invalid-attr/index.d.ts +31 -38
  18. package/lib/label-has-control/index.d.ts +1 -3
  19. package/lib/landmark-roles/index.d.ts +3 -3
  20. package/lib/no-boolean-attr-value/index.d.ts +1 -3
  21. package/lib/no-default-value/index.d.ts +1 -3
  22. package/lib/no-empty-palpable-content/index.d.ts +3 -3
  23. package/lib/no-hard-code-id/index.d.ts +1 -3
  24. package/lib/no-refer-to-non-existent-id/index.d.ts +4 -9
  25. package/lib/no-use-event-handler-attr/index.d.ts +2 -2
  26. package/lib/permitted-contents/choice.d.ts +1 -7
  27. package/lib/permitted-contents/complex-branch.d.ts +1 -7
  28. package/lib/permitted-contents/count-pattern.d.ts +2 -17
  29. package/lib/permitted-contents/debug.browser.d.ts +15 -15
  30. package/lib/permitted-contents/debug.d.ts +1 -1
  31. package/lib/permitted-contents/index.d.ts +1 -1
  32. package/lib/permitted-contents/matches-selector.d.ts +1 -6
  33. package/lib/permitted-contents/order.d.ts +1 -7
  34. package/lib/permitted-contents/recursive-branch.d.ts +1 -7
  35. package/lib/permitted-contents/represent-transparent-nodes.d.ts +3 -7
  36. package/lib/permitted-contents/start.d.ts +1 -6
  37. package/lib/permitted-contents/types.d.ts +29 -29
  38. package/lib/permitted-contents/utils.d.ts +41 -90
  39. package/lib/placeholder-label-option/index.d.ts +1 -1
  40. package/lib/require-accessible-name/index.d.ts +2 -2
  41. package/lib/require-datetime/index.d.ts +2 -2
  42. package/lib/require-datetime/types.d.ts +2 -2
  43. package/lib/required-attr/index.d.ts +3 -3
  44. package/lib/required-element/index.d.ts +2 -2
  45. package/lib/required-h1/index.d.ts +3 -3
  46. package/lib/use-list/index.d.ts +2 -2
  47. package/lib/wai-aria/checkings/default-value.d.ts +3 -7
  48. package/lib/wai-aria/checkings/deprecated-props.d.ts +4 -8
  49. package/lib/wai-aria/checkings/disallowed-prop.d.ts +4 -8
  50. package/lib/wai-aria/checkings/implicit-props.d.ts +4 -8
  51. package/lib/wai-aria/checkings/no-global-prop.d.ts +3 -7
  52. package/lib/wai-aria/checkings/required-owned-elements.d.ts +3 -7
  53. package/lib/wai-aria/checkings/required-prop.d.ts +6 -12
  54. package/lib/wai-aria/checkings/value.d.ts +6 -15
  55. package/lib/wai-aria/index.d.ts +1 -1
  56. package/lib/wai-aria/types.d.ts +10 -10
  57. package/package.json +11 -11
@@ -1,22 +1,13 @@
1
1
  import type { Options } from '../types';
2
2
  import type { AttrChecker } from '@markuplint/ml-core';
3
3
  import type { ARIAProperty, ARIARole } from '@markuplint/ml-spec';
4
- export declare const checkingValue: AttrChecker<
5
- boolean,
6
- Options,
7
- {
8
- role?: ARIARole | null;
9
- propSpecs: readonly ARIAProperty[];
10
- booleanish?: boolean;
11
- }
12
- >;
4
+ export declare const checkingValue: AttrChecker<boolean, Options, {
5
+ role?: ARIARole | null;
6
+ propSpecs: readonly ARIAProperty[];
7
+ booleanish?: boolean;
8
+ }>;
13
9
  /**
14
10
  *
15
11
  * @see https://www.w3.org/TR/wai-aria-1.2/#propcharacteristic_value
16
12
  */
17
- export declare function checkAriaValue(
18
- type: string,
19
- value: string,
20
- tokenEnum: readonly string[],
21
- booleanish?: boolean,
22
- ): boolean;
13
+ export declare function checkAriaValue(type: string, value: string, tokenEnum: readonly string[], booleanish?: boolean): boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Options } from './types';
2
- declare const _default: Readonly<import('@markuplint/ml-core').RuleSeed<boolean, Options>>;
2
+ declare const _default: Readonly<import("@markuplint/ml-core").RuleSeed<boolean, Options>>;
3
3
  export default _default;
@@ -1,13 +1,13 @@
1
1
  import type { ARIAVersion } from '@markuplint/ml-spec';
2
2
  export type Options = {
3
- checkingValue: boolean;
4
- checkingDeprecatedProps: boolean;
5
- permittedAriaRoles: boolean;
6
- checkingRequiredOwnedElements: boolean;
7
- checkingPresentationalChildren: boolean;
8
- checkingInteractionInHidden: boolean;
9
- disallowSetImplicitRole: boolean;
10
- disallowSetImplicitProps: boolean;
11
- disallowDefaultValue: boolean;
12
- version: ARIAVersion;
3
+ checkingValue: boolean;
4
+ checkingDeprecatedProps: boolean;
5
+ permittedAriaRoles: boolean;
6
+ checkingRequiredOwnedElements: boolean;
7
+ checkingPresentationalChildren: boolean;
8
+ checkingInteractionInHidden: boolean;
9
+ disallowSetImplicitRole: boolean;
10
+ disallowSetImplicitProps: boolean;
11
+ disallowDefaultValue: boolean;
12
+ version: ARIAVersion;
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/rules",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
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>",
@@ -20,19 +20,19 @@
20
20
  "./lib/permitted-contents/debug.js": "./lib/permitted-contents/debug.browser.js"
21
21
  },
22
22
  "dependencies": {
23
- "@markuplint/html-spec": "3.8.0",
24
- "@markuplint/ml-core": "3.9.0",
25
- "@markuplint/ml-spec": "3.8.0",
26
- "@markuplint/selector": "3.8.0",
23
+ "@markuplint/html-spec": "3.9.0",
24
+ "@markuplint/ml-core": "3.10.0",
25
+ "@markuplint/ml-spec": "3.9.0",
26
+ "@markuplint/selector": "3.9.0",
27
27
  "@markuplint/shared": "3.6.0",
28
- "@markuplint/types": "3.6.0",
28
+ "@markuplint/types": "3.7.0",
29
29
  "@types/debug": "^4.1.7",
30
- "@ungap/structured-clone": "^1.0.1",
30
+ "@ungap/structured-clone": "^1.2.0",
31
31
  "ansi-colors": "^4.1.3",
32
- "chrono-node": "^2.5.0",
32
+ "chrono-node": "^2.6.3",
33
33
  "debug": "^4.3.4",
34
- "tslib": "^2.4.1",
35
- "type-fest": "^3.8.0"
34
+ "tslib": "^2.5.0",
35
+ "type-fest": "^3.10.0"
36
36
  },
37
- "gitHead": "adc6e432cccba7cfad0dc8bf9f92e5aaf1107359"
37
+ "gitHead": "af370797bfc887e5a5a2ff57fbaa8392ac98ead2"
38
38
  }