@markuplint/rules 3.0.0-alpha.4 → 3.0.0-alpha.6

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 (66) hide show
  1. package/README.md +1 -1
  2. package/lib/attr-check.d.ts +21 -10
  3. package/lib/attr-duplication/index.d.ts +1 -1
  4. package/lib/attr-value-quotes/index.d.ts +5 -5
  5. package/lib/case-sensitive-attr-name/index.d.ts +2 -2
  6. package/lib/case-sensitive-tag-name/index.d.ts +2 -2
  7. package/lib/character-reference/index.d.ts +1 -1
  8. package/lib/class-naming/index.d.ts +2 -2
  9. package/lib/create-message.d.ts +12 -2
  10. package/lib/debug.d.ts +1 -1
  11. package/lib/deprecated-attr/index.d.ts +1 -1
  12. package/lib/deprecated-element/index.d.ts +1 -1
  13. package/lib/disallowed-element/index.d.ts +1 -1
  14. package/lib/doctype/index.d.ts +3 -3
  15. package/lib/doctype/index.js +1 -1
  16. package/lib/end-tag/index.d.ts +1 -1
  17. package/lib/end-tag/index.js +2 -17
  18. package/lib/helpers.d.ts +36 -18
  19. package/lib/id-duplication/index.d.ts +1 -1
  20. package/lib/index.d.ts +2 -60
  21. package/lib/index.js +2 -0
  22. package/lib/ineffective-attr/index.d.ts +1 -1
  23. package/lib/invalid-attr/index.d.ts +18 -14
  24. package/lib/label-has-control/index.d.ts +1 -1
  25. package/lib/landmark-roles/index.d.ts +6 -6
  26. package/lib/no-boolean-attr-value/index.d.ts +1 -1
  27. package/lib/no-default-value/index.d.ts +1 -1
  28. package/lib/no-empty-palpable-content/index.d.ts +6 -0
  29. package/lib/no-empty-palpable-content/index.js +34 -0
  30. package/lib/no-hard-code-id/index.d.ts +1 -1
  31. package/lib/no-refer-to-non-existent-id/index.d.ts +6 -3
  32. package/lib/no-use-event-handler-attr/index.d.ts +3 -3
  33. package/lib/permitted-contents/choice.d.ts +7 -1
  34. package/lib/permitted-contents/complex-branch.d.ts +7 -1
  35. package/lib/permitted-contents/count-pattern.d.ts +17 -2
  36. package/lib/permitted-contents/debug.d.ts +1 -1
  37. package/lib/permitted-contents/index.d.ts +1 -1
  38. package/lib/permitted-contents/matches-selector.d.ts +8 -2
  39. package/lib/permitted-contents/order.d.ts +7 -1
  40. package/lib/permitted-contents/recursive-branch.d.ts +7 -1
  41. package/lib/permitted-contents/represent-transparent-nodes.d.ts +8 -4
  42. package/lib/permitted-contents/start.d.ts +6 -1
  43. package/lib/permitted-contents/types.d.ts +42 -38
  44. package/lib/permitted-contents/utils.d.ts +35 -21
  45. package/lib/require-accessible-name/index.d.ts +3 -3
  46. package/lib/require-accessible-name/index.js +4 -0
  47. package/lib/required-attr/index.d.ts +5 -5
  48. package/lib/required-element/index.d.ts +3 -3
  49. package/lib/required-h1/index.d.ts +3 -3
  50. package/lib/use-list/index.d.ts +4 -4
  51. package/lib/wai-aria/checkings/default-value.d.ts +7 -3
  52. package/lib/wai-aria/checkings/deprecated-props.d.ts +8 -4
  53. package/lib/wai-aria/checkings/disallowed-prop.d.ts +8 -4
  54. package/lib/wai-aria/checkings/implicit-props.d.ts +8 -4
  55. package/lib/wai-aria/checkings/no-global-prop.d.ts +7 -3
  56. package/lib/wai-aria/checkings/{non-existant-role.d.ts → non-existent-role.d.ts} +1 -1
  57. package/lib/wai-aria/checkings/{non-existant-role.js → non-existent-role.js} +3 -3
  58. package/lib/wai-aria/checkings/required-owned-elements.d.ts +7 -3
  59. package/lib/wai-aria/checkings/required-prop.d.ts +12 -6
  60. package/lib/wai-aria/checkings/value.d.ts +9 -5
  61. package/lib/wai-aria/index.d.ts +1 -1
  62. package/lib/wai-aria/index.js +2 -2
  63. package/lib/wai-aria/types.d.ts +11 -11
  64. package/package.json +6 -6
  65. package/schema.json +3 -0
  66. package/tsconfig.tsbuildinfo +1 -1
@@ -1,6 +1,10 @@
1
1
  import type { ChildNode, Options, Result, Specs } from './types';
2
- export declare const transparentMode: Map<import("packages/@markuplint/ml-core/lib/ml-dom/node/child-node").MLChildNode<import("./types").TagRule[], Options>, true>;
3
- export declare function representTransparentNodes(nodes: ChildNode[], specs: Specs, options: Options): {
4
- nodes: ChildNode[];
5
- errors: Result[];
2
+ export declare const transparentMode: Map<ChildNode, true>;
3
+ export declare function representTransparentNodes(
4
+ nodes: ChildNode[],
5
+ specs: Specs,
6
+ options: Options,
7
+ ): {
8
+ nodes: ChildNode[];
9
+ errors: Result[];
6
10
  };
@@ -9,4 +9,9 @@ import type { ContentModel } from '@markuplint/ml-spec';
9
9
  * @param options
10
10
  * @returns
11
11
  */
12
- export declare function start(contents: ContentModel['contents'], el: Element, specs: Specs, options: Options): ContentModelResult[];
12
+ export declare function start(
13
+ contents: ContentModel['contents'],
14
+ el: Element,
15
+ specs: Specs,
16
+ options: Options,
17
+ ): ContentModelResult[];
@@ -1,45 +1,49 @@
1
- import type { Element as _Element } from '@markuplint/ml-core';
1
+ import type { Element as _Element, ChildNode as _ChildNode } from '@markuplint/ml-core';
2
2
  import type { ContentModel, MLMLSpec } from '@markuplint/ml-spec';
3
- export declare type Element = _Element<TagRule[], Options>;
4
- export declare type ChildNode = Element['childNodes'][0];
5
- export declare type Specs = {
6
- cites: MLMLSpec['cites'];
7
- def: MLMLSpec['def'];
8
- specs: {
9
- name: string;
10
- contentModel: {
11
- contents: MLMLSpec['specs'][0]['contentModel']['contents'];
12
- };
13
- }[];
3
+ export type Element = _Element<TagRule[], Options>;
4
+ export type ChildNode = _ChildNode<TagRule[], Options>;
5
+ export type Specs = {
6
+ cites: MLMLSpec['cites'];
7
+ def: MLMLSpec['def'];
8
+ specs: {
9
+ name: string;
10
+ contentModel: {
11
+ contents: MLMLSpec['specs'][0]['contentModel']['contents'];
12
+ };
13
+ }[];
14
14
  };
15
- export declare type ContentModelResult = {
16
- type: MatchedReason | UnmatchedReason;
17
- scope: ChildNode;
18
- query: Result['query'];
19
- hint: Result['hint'];
15
+ export type ContentModelResult = {
16
+ type: MatchedReason | UnmatchedReason;
17
+ scope: ChildNode;
18
+ query: Result['query'];
19
+ hint: Result['hint'];
20
20
  };
21
- export declare type Result<T extends string = MatchedReason> = {
22
- type: MatchedReason | UnmatchedReason | T;
23
- matched: ChildNode[];
24
- unmatched: ChildNode[];
25
- zeroMatch: boolean;
26
- query: string;
27
- hint: {
28
- max?: number;
29
- not?: ChildNode;
30
- transparent?: Element;
31
- };
21
+ export type Result<T extends string = MatchedReason> = {
22
+ type: MatchedReason | UnmatchedReason | T;
23
+ matched: ChildNode[];
24
+ unmatched: ChildNode[];
25
+ zeroMatch: boolean;
26
+ query: string;
27
+ hint: {
28
+ max?: number;
29
+ not?: ChildNode;
30
+ transparent?: Element;
31
+ };
32
32
  };
33
- export declare type MatchedReason = 'MATCHED' | 'MATCHED_ZERO';
34
- export declare type UnmatchedReason = 'VOID_ELEMENT' | 'UNEXPECTED_EXTRA_NODE' | 'TRANSPARENT_MODEL_DISALLOWS' | MissingNodeReason;
35
- export declare type MissingNodeReason = 'MISSING_NODE_REQUIRED' | 'MISSING_NODE_ONE_OR_MORE';
36
- export declare type TransparentModel = {
37
- el: Element;
38
- additionalCondition: string;
33
+ export type MatchedReason = 'MATCHED' | 'MATCHED_ZERO';
34
+ export type UnmatchedReason =
35
+ | 'VOID_ELEMENT'
36
+ | 'UNEXPECTED_EXTRA_NODE'
37
+ | 'TRANSPARENT_MODEL_DISALLOWS'
38
+ | MissingNodeReason;
39
+ export type MissingNodeReason = 'MISSING_NODE_REQUIRED' | 'MISSING_NODE_ONE_OR_MORE';
40
+ export type TransparentModel = {
41
+ el: Element;
42
+ additionalCondition: string;
39
43
  };
40
- export declare type TagRule = {
41
- tag: string;
44
+ export type TagRule = {
45
+ tag: string;
42
46
  } & ContentModel;
43
- export declare type Options = {
44
- ignoreHasMutableChildren: boolean;
47
+ export type Options = {
48
+ ignoreHasMutableChildren: boolean;
45
49
  };
@@ -1,14 +1,29 @@
1
1
  import type { ChildNode, Element, Specs } from './types';
2
- import type { PermittedContentPattern, PermittedContentChoice, PermittedContentOneOrMore, PermittedContentOptional, PermittedContentRequire, PermittedContentTransparent, PermittedContentZeroOrMore, Model } from '@markuplint/ml-spec';
2
+ import type {
3
+ PermittedContentPattern,
4
+ PermittedContentChoice,
5
+ PermittedContentOneOrMore,
6
+ PermittedContentOptional,
7
+ PermittedContentRequire,
8
+ PermittedContentTransparent,
9
+ PermittedContentZeroOrMore,
10
+ Model,
11
+ } from '@markuplint/ml-spec';
3
12
  export declare function getChildNodesWithoutWhitespaces(el: Element): ChildNode[];
4
13
  export declare function isModel(model: Model | PermittedContentPattern[]): model is Model;
5
- export declare function matches(selector: string, node: ChildNode, specs: Specs): {
6
- matched: boolean;
7
- not?: undefined;
8
- } | {
9
- matched: boolean;
10
- not: import("packages/@markuplint/ml-core/lib/ml-dom/node/child-node").MLChildNode<import("./types").TagRule[], import("./types").Options> | undefined;
11
- };
14
+ export declare function matches(
15
+ selector: string,
16
+ node: ChildNode,
17
+ specs: Specs,
18
+ ):
19
+ | {
20
+ matched: boolean;
21
+ not?: undefined;
22
+ }
23
+ | {
24
+ matched: boolean;
25
+ not: ChildNode | undefined;
26
+ };
12
27
  export declare function isRequire(content: PermittedContentPattern): content is PermittedContentRequire;
13
28
  export declare function isOptional(content: PermittedContentPattern): content is PermittedContentOptional;
14
29
  export declare function isOneOrMore(content: PermittedContentPattern): content is PermittedContentOneOrMore;
@@ -16,17 +31,16 @@ export declare function isZeroOrMore(content: PermittedContentPattern): content
16
31
  export declare function isChoice(content: PermittedContentPattern): content is PermittedContentChoice;
17
32
  export declare function isTransparent(content: PermittedContentPattern): content is PermittedContentTransparent;
18
33
  export declare class Collection {
19
- #private;
20
- constructor(origin: readonly ChildNode[]);
21
- get matched(): import("packages/@markuplint/ml-core/lib/ml-dom/node/child-node").MLChildNode<import("./types").TagRule[], import("./types").Options>[];
22
- get matchedCount(): number;
23
- get nodes(): import("packages/@markuplint/ml-core/lib/ml-dom/node/child-node").MLChildNode<import("./types").TagRule[], import("./types").Options>[];
24
- get unmatched(): import("packages/@markuplint/ml-core/lib/ml-dom/node/child-node").MLChildNode<import("./types").TagRule[], import("./types").Options>[];
25
- addMatched(nodes: ChildNode[]): boolean;
26
- back(): void;
27
- lock(): void;
28
- max(max: number): void;
29
- toString(highlightExtraNodes?: boolean): string;
30
- }
31
- export declare class UnsupportedError extends Error {
34
+ #private;
35
+ constructor(origin: readonly ChildNode[]);
36
+ get matched(): ChildNode[];
37
+ get matchedCount(): number;
38
+ get nodes(): ChildNode[];
39
+ get unmatched(): ChildNode[];
40
+ addMatched(nodes: ChildNode[]): boolean;
41
+ back(): void;
42
+ lock(): void;
43
+ max(max: number): void;
44
+ toString(highlightExtraNodes?: boolean): string;
32
45
  }
46
+ export declare class UnsupportedError extends Error {}
@@ -1,6 +1,6 @@
1
1
  import type { ARIAVersion } from '@markuplint/ml-spec';
2
- declare type Option = {
3
- ariaVersion: ARIAVersion;
2
+ type Option = {
3
+ ariaVersion: ARIAVersion;
4
4
  };
5
- declare const _default: import("@markuplint/ml-core").RuleSeed<boolean, Option>;
5
+ declare const _default: import('@markuplint/ml-core').RuleSeed<boolean, Option>;
6
6
  export default _default;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const ml_core_1 = require("@markuplint/ml-core");
4
+ const ml_spec_1 = require("@markuplint/ml-spec");
4
5
  const helpers_1 = require("../helpers");
5
6
  exports.default = (0, ml_core_1.createRule)({
6
7
  defaultOptions: {
@@ -15,6 +16,9 @@ exports.default = (0, ml_core_1.createRule)({
15
16
  if ((0, helpers_1.accnameMayBeMutable)(el, document)) {
16
17
  return;
17
18
  }
19
+ if (!(0, ml_spec_1.isExposed)(el, document.specs, el.rule.option.ariaVersion)) {
20
+ return;
21
+ }
18
22
  const computed = (0, ml_core_1.getComputedRole)(document.specs, el, el.rule.option.ariaVersion);
19
23
  if (!computed.role) {
20
24
  return;
@@ -1,7 +1,7 @@
1
- declare type RequiredAttributes = string | (string | Attr)[];
2
- declare type Attr = {
3
- name: string;
4
- value: string | string[];
1
+ type RequiredAttributes = string | (string | Attr)[];
2
+ type Attr = {
3
+ name: string;
4
+ value: string | string[];
5
5
  };
6
- declare const _default: import("@markuplint/ml-core").RuleSeed<RequiredAttributes, null>;
6
+ declare const _default: import('@markuplint/ml-core').RuleSeed<RequiredAttributes, null>;
7
7
  export default _default;
@@ -1,5 +1,5 @@
1
- declare type Options = {
2
- ignoreHasMutableContents: boolean;
1
+ type Options = {
2
+ ignoreHasMutableContents: boolean;
3
3
  };
4
- declare const _default: import("@markuplint/ml-core").RuleSeed<string[], Options>;
4
+ declare const _default: import('@markuplint/ml-core').RuleSeed<string[], Options>;
5
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  export interface Options {
2
- 'expected-once': boolean;
3
- 'in-document-fragment': boolean;
2
+ 'expected-once': boolean;
3
+ 'in-document-fragment': boolean;
4
4
  }
5
- declare const _default: import("@markuplint/ml-core").RuleSeed<boolean, Options>;
5
+ declare const _default: import('@markuplint/ml-core').RuleSeed<boolean, Options>;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
- declare type Bullets = string[];
2
- declare type Options = {
3
- spaceNeededBullets?: string[];
1
+ type Bullets = string[];
2
+ type Options = {
3
+ spaceNeededBullets?: string[];
4
4
  };
5
- declare const _default: import("@markuplint/ml-core").RuleSeed<Bullets, Options>;
5
+ declare const _default: import('@markuplint/ml-core').RuleSeed<Bullets, Options>;
6
6
  export default _default;
@@ -1,6 +1,10 @@
1
1
  import type { Options } from '../types';
2
2
  import type { AttrChecker } from '@markuplint/ml-core';
3
3
  import type { ARIAProperty } from '@markuplint/ml-spec';
4
- export declare const checkingDefaultValue: AttrChecker<boolean, Options, {
5
- propSpecs: ARIAProperty[];
6
- }>;
4
+ export declare const checkingDefaultValue: AttrChecker<
5
+ boolean,
6
+ Options,
7
+ {
8
+ propSpecs: ARIAProperty[];
9
+ }
10
+ >;
@@ -1,7 +1,11 @@
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 checkingDeprecatedProps: AttrChecker<boolean, Options, {
5
- role: ARIARole | null;
6
- propSpecs: ARIAProperty[];
7
- }>;
4
+ export declare const checkingDeprecatedProps: AttrChecker<
5
+ boolean,
6
+ Options,
7
+ {
8
+ role: ARIARole | null;
9
+ propSpecs: ARIAProperty[];
10
+ }
11
+ >;
@@ -1,7 +1,11 @@
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 checkingDisallowedProp: AttrChecker<boolean, Options, {
5
- role: ARIARole | null;
6
- propSpecs: ARIAProperty[];
7
- }>;
4
+ export declare const checkingDisallowedProp: AttrChecker<
5
+ boolean,
6
+ Options,
7
+ {
8
+ role: ARIARole | null;
9
+ propSpecs: ARIAProperty[];
10
+ }
11
+ >;
@@ -1,7 +1,11 @@
1
1
  import type { Options } from '../types';
2
2
  import type { AttrChecker } from '@markuplint/ml-core';
3
3
  import type { ARIAProperty, Attribute } from '@markuplint/ml-spec';
4
- export declare const checkingImplicitProps: AttrChecker<boolean, Options, {
5
- propSpecs: ARIAProperty[];
6
- attrSpecs: Attribute[] | null;
7
- }>;
4
+ export declare const checkingImplicitProps: AttrChecker<
5
+ boolean,
6
+ Options,
7
+ {
8
+ propSpecs: ARIAProperty[];
9
+ attrSpecs: Attribute[] | null;
10
+ }
11
+ >;
@@ -1,6 +1,10 @@
1
1
  import type { Options } from '../types';
2
2
  import type { AttrChecker } from '@markuplint/ml-core';
3
3
  import type { ARIAProperty } from '@markuplint/ml-spec';
4
- export declare const checkingNoGlobalProp: AttrChecker<boolean, Options, {
5
- propSpecs: ARIAProperty[];
6
- }>;
4
+ export declare const checkingNoGlobalProp: AttrChecker<
5
+ boolean,
6
+ Options,
7
+ {
8
+ propSpecs: ARIAProperty[];
9
+ }
10
+ >;
@@ -1,3 +1,3 @@
1
1
  import type { Options } from '../types';
2
2
  import type { AttrChecker } from '@markuplint/ml-core';
3
- export declare const checkingNonExistantRole: AttrChecker<boolean, Options>;
3
+ export declare const checkingNonExistentRole: AttrChecker<boolean, Options>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkingNonExistantRole = void 0;
3
+ exports.checkingNonExistentRole = void 0;
4
4
  const ml_spec_1 = require("@markuplint/ml-spec");
5
- const checkingNonExistantRole = ({ attr }) => t => {
5
+ const checkingNonExistentRole = ({ attr }) => t => {
6
6
  var _a;
7
7
  const { roles, graphicsRoles } = (0, ml_spec_1.ariaSpecs)(attr.ownerMLDocument.specs, attr.rule.option.version);
8
8
  const tokens = (_a = attr.tokenList) === null || _a === void 0 ? void 0 : _a.allTokens();
@@ -25,4 +25,4 @@ const checkingNonExistantRole = ({ attr }) => t => {
25
25
  }
26
26
  }
27
27
  };
28
- exports.checkingNonExistantRole = checkingNonExistantRole;
28
+ exports.checkingNonExistentRole = checkingNonExistentRole;
@@ -6,6 +6,10 @@ import type { ARIARole } from '@markuplint/ml-spec';
6
6
  *
7
7
  * @see https://w3c.github.io/aria/#mustContain
8
8
  */
9
- export declare const checkingRequiredOwnedElements: ElementChecker<boolean, Options, {
10
- role?: ARIARole | null;
11
- }>;
9
+ export declare const checkingRequiredOwnedElements: ElementChecker<
10
+ boolean,
11
+ Options,
12
+ {
13
+ role?: ARIARole | null;
14
+ }
15
+ >;
@@ -1,9 +1,15 @@
1
1
  import type { Options } from '../types';
2
2
  import type { ElementChecker } from '@markuplint/ml-core';
3
3
  import type { ARIAProperty, ARIARole } from '@markuplint/ml-spec';
4
- export declare const checkingRequiredProp: ElementChecker<boolean, Options, {
5
- role?: (ARIARole & {
6
- isImplicit?: boolean;
7
- }) | null;
8
- propSpecs: ARIAProperty[];
9
- }>;
4
+ export declare const checkingRequiredProp: ElementChecker<
5
+ boolean,
6
+ Options,
7
+ {
8
+ role?:
9
+ | (ARIARole & {
10
+ isImplicit?: boolean;
11
+ })
12
+ | null;
13
+ propSpecs: ARIAProperty[];
14
+ }
15
+ >;
@@ -1,11 +1,15 @@
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<boolean, Options, {
5
- role?: ARIARole | null;
6
- propSpecs: ARIAProperty[];
7
- booleanish?: boolean;
8
- }>;
4
+ export declare const checkingValue: AttrChecker<
5
+ boolean,
6
+ Options,
7
+ {
8
+ role?: ARIARole | null;
9
+ propSpecs: ARIAProperty[];
10
+ booleanish?: boolean;
11
+ }
12
+ >;
9
13
  /**
10
14
  *
11
15
  * @see https://www.w3.org/TR/wai-aria-1.2/#propcharacteristic_value
@@ -1,3 +1,3 @@
1
1
  import type { Options } from './types';
2
- declare const _default: import("@markuplint/ml-core").RuleSeed<boolean, Options>;
2
+ declare const _default: import('@markuplint/ml-core').RuleSeed<boolean, Options>;
3
3
  export default _default;
@@ -10,7 +10,7 @@ const implicit_props_1 = require("./checkings/implicit-props");
10
10
  const implicit_role_1 = require("./checkings/implicit-role");
11
11
  const interaction_in_hidden_1 = require("./checkings/interaction-in-hidden");
12
12
  const no_global_prop_1 = require("./checkings/no-global-prop");
13
- const non_existant_role_1 = require("./checkings/non-existant-role");
13
+ const non_existent_role_1 = require("./checkings/non-existent-role");
14
14
  const permitted_roles_1 = require("./checkings/permitted-roles");
15
15
  const presentational_children_1 = require("./checkings/presentational-children");
16
16
  const required_owned_elements_1 = require("./checkings/required-owned-elements");
@@ -50,7 +50,7 @@ exports.default = (0, ml_core_1.createRule)({
50
50
  const computed = (0, ml_core_1.getComputedRole)(document.specs, el, el.rule.option.version);
51
51
  const { props: propSpecs } = (0, ml_core_1.ariaSpecs)(document.specs, el.rule.option.version);
52
52
  if (roleAttr) {
53
- if (report((0, non_existant_role_1.checkingNonExistantRole)({ attr: roleAttr }))) {
53
+ if (report((0, non_existent_role_1.checkingNonExistentRole)({ attr: roleAttr }))) {
54
54
  return;
55
55
  }
56
56
  if (report((0, abstract_role_1.checkingAbstractRole)({ attr: roleAttr }))) {
@@ -1,13 +1,13 @@
1
1
  import type { ARIAVersion } from '@markuplint/ml-spec';
2
- export declare 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;
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;
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/rules",
3
- "version": "3.0.0-alpha.4",
3
+ "version": "3.0.0-alpha.6",
4
4
  "description": "Rules for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -17,10 +17,10 @@
17
17
  "clean": "tsc --build --clean"
18
18
  },
19
19
  "dependencies": {
20
- "@markuplint/html-spec": "3.0.0-alpha.4",
21
- "@markuplint/ml-core": "3.0.0-alpha.4",
22
- "@markuplint/ml-spec": "3.0.0-alpha.4",
23
- "@markuplint/types": "3.0.0-alpha.4",
20
+ "@markuplint/html-spec": "3.0.0-alpha.6",
21
+ "@markuplint/ml-core": "3.0.0-alpha.6",
22
+ "@markuplint/ml-spec": "3.0.0-alpha.6",
23
+ "@markuplint/types": "3.0.0-alpha.6",
24
24
  "@ungap/structured-clone": "^1.0.1",
25
25
  "debug": "^4.3.4",
26
26
  "html-entities": "^2.3.3",
@@ -29,5 +29,5 @@
29
29
  "devDependencies": {
30
30
  "@types/debug": "^4.1.7"
31
31
  },
32
- "gitHead": "04fdbb677c6893de3d16613ddcd112de25dc55db"
32
+ "gitHead": "b185a06d4ea09a1bf32458f7be4abe510eb57b89"
33
33
  }
package/schema.json CHANGED
@@ -60,6 +60,9 @@
60
60
  "no-default-value": {
61
61
  "$ref": "https://raw.githubusercontent.com/markuplint/markuplint/main/packages/%40markuplint/rules/src/no-default-value/schema.json"
62
62
  },
63
+ "no-empty-palpable-content": {
64
+ "$ref": "https://raw.githubusercontent.com/markuplint/markuplint/main/packages/%40markuplint/rules/src/no-empty-palpable-content/schema.json"
65
+ },
63
66
  "no-hard-code-id": {
64
67
  "$ref": "https://raw.githubusercontent.com/markuplint/markuplint/main/packages/%40markuplint/rules/src/no-hard-code-id/schema.json"
65
68
  },