@flint.fyi/jsx 0.3.1 → 0.3.3

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 (89) hide show
  1. package/lib/plugin.d.ts +177 -177
  2. package/lib/rules/accessKeys.d.ts +4 -4
  3. package/lib/rules/accessKeys.js +1 -1
  4. package/lib/rules/altTexts.d.ts +4 -4
  5. package/lib/rules/altTexts.js +1 -1
  6. package/lib/rules/anchorAmbiguousText.d.ts +4 -4
  7. package/lib/rules/anchorAmbiguousText.js +1 -1
  8. package/lib/rules/anchorContent.d.ts +4 -4
  9. package/lib/rules/anchorContent.js +1 -1
  10. package/lib/rules/anchorValidity.d.ts +4 -4
  11. package/lib/rules/anchorValidity.js +1 -1
  12. package/lib/rules/ariaActiveDescendantTabIndex.d.ts +4 -4
  13. package/lib/rules/ariaActiveDescendantTabIndex.js +1 -1
  14. package/lib/rules/ariaHiddenFocusables.d.ts +4 -4
  15. package/lib/rules/ariaHiddenFocusables.js +1 -1
  16. package/lib/rules/ariaPropTypes.d.ts +4 -4
  17. package/lib/rules/ariaPropTypes.js +1 -1
  18. package/lib/rules/ariaProps.d.ts +4 -4
  19. package/lib/rules/ariaProps.js +1 -1
  20. package/lib/rules/ariaRoleValidity.d.ts +4 -4
  21. package/lib/rules/ariaRoleValidity.js +1 -1
  22. package/lib/rules/ariaUnsupportedElements.d.ts +4 -4
  23. package/lib/rules/ariaUnsupportedElements.js +1 -1
  24. package/lib/rules/autoFocusProps.d.ts +4 -4
  25. package/lib/rules/autoFocusProps.js +1 -1
  26. package/lib/rules/autocomplete.d.ts +4 -4
  27. package/lib/rules/autocomplete.js +1 -1
  28. package/lib/rules/booleanValues.d.ts +4 -4
  29. package/lib/rules/booleanValues.js +1 -1
  30. package/lib/rules/bracedStatements.d.ts +4 -4
  31. package/lib/rules/bracedStatements.js +1 -1
  32. package/lib/rules/buttonTypes.d.ts +4 -4
  33. package/lib/rules/buttonTypes.js +1 -1
  34. package/lib/rules/childrenProps.d.ts +4 -4
  35. package/lib/rules/childrenProps.js +1 -1
  36. package/lib/rules/clickEventKeyEvents.d.ts +4 -4
  37. package/lib/rules/clickEventKeyEvents.js +1 -1
  38. package/lib/rules/commentTextNodes.d.ts +4 -4
  39. package/lib/rules/distractingElements.d.ts +4 -4
  40. package/lib/rules/distractingElements.js +1 -1
  41. package/lib/rules/elementChildrenValidity.d.ts +4 -4
  42. package/lib/rules/elementChildrenValidity.js +1 -1
  43. package/lib/rules/headingContents.d.ts +4 -4
  44. package/lib/rules/headingContents.js +1 -1
  45. package/lib/rules/htmlLangs.d.ts +4 -4
  46. package/lib/rules/htmlLangs.js +1 -1
  47. package/lib/rules/iframeTitles.d.ts +4 -4
  48. package/lib/rules/iframeTitles.js +1 -1
  49. package/lib/rules/interactiveElementRoles.d.ts +4 -4
  50. package/lib/rules/interactiveElementRoles.js +1 -1
  51. package/lib/rules/interactiveElementsFocusable.d.ts +4 -4
  52. package/lib/rules/interactiveElementsFocusable.js +1 -1
  53. package/lib/rules/labelAssociatedControls.d.ts +4 -4
  54. package/lib/rules/labelAssociatedControls.js +1 -1
  55. package/lib/rules/langValidity.d.ts +4 -4
  56. package/lib/rules/langValidity.js +1 -1
  57. package/lib/rules/mediaCaptions.d.ts +4 -4
  58. package/lib/rules/mediaCaptions.js +1 -1
  59. package/lib/rules/mouseEventKeyEvents.d.ts +4 -4
  60. package/lib/rules/mouseEventKeyEvents.js +1 -1
  61. package/lib/rules/nonInteractiveElementInteractions.d.ts +4 -4
  62. package/lib/rules/nonInteractiveElementInteractions.js +1 -1
  63. package/lib/rules/nonInteractiveElementRoles.d.ts +4 -4
  64. package/lib/rules/nonInteractiveElementRoles.js +1 -1
  65. package/lib/rules/nonInteractiveElementTabIndexes.d.ts +4 -4
  66. package/lib/rules/nonInteractiveElementTabIndexes.js +1 -1
  67. package/lib/rules/propDuplicates.d.ts +4 -4
  68. package/lib/rules/propDuplicates.js +1 -1
  69. package/lib/rules/roleRedundancies.d.ts +4 -4
  70. package/lib/rules/roleRedundancies.js +1 -1
  71. package/lib/rules/roleRequiredAriaProps.d.ts +4 -4
  72. package/lib/rules/roleRequiredAriaProps.js +1 -1
  73. package/lib/rules/roleSupportedAriaProps.d.ts +4 -4
  74. package/lib/rules/roleSupportedAriaProps.js +1 -1
  75. package/lib/rules/roleTags.d.ts +4 -4
  76. package/lib/rules/roleTags.js +1 -1
  77. package/lib/rules/ruleCreator.d.ts +1 -1
  78. package/lib/rules/scopeProps.d.ts +4 -4
  79. package/lib/rules/scopeProps.js +1 -1
  80. package/lib/rules/staticElementInteractions.d.ts +4 -4
  81. package/lib/rules/staticElementInteractions.js +1 -1
  82. package/lib/rules/svgTitles.d.ts +4 -4
  83. package/lib/rules/svgTitles.js +1 -1
  84. package/lib/rules/tabIndexPositiveValues.d.ts +4 -4
  85. package/lib/rules/tabIndexPositiveValues.js +1 -1
  86. package/lib/rules/unescapedEntities.d.ts +4 -4
  87. package/lib/rules/unnecessaryFragments.d.ts +4 -4
  88. package/lib/rules/unnecessaryFragments.js +1 -1
  89. package/package.json +7 -7
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports elements with aria-activedescendant without tabIndex.";
3
3
  readonly id: "ariaActiveDescendantTabIndex";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingTabIndex", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingTabIndex", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=ariaActiveDescendantTabIndex.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaActiveDescendantTabIndex.ts
5
5
  const inherentlyTabbableElements = new Set([
6
6
  "a",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports elements with aria-hidden='true' that are focusable.";
3
3
  readonly id: "ariaHiddenFocusables";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "ariaHiddenFocusable", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "ariaHiddenFocusable", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=ariaHiddenFocusables.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaHiddenFocusables.ts
5
5
  const focusableElements = new Set([
6
6
  "a",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports ARIA properties with invalid value types.";
3
3
  readonly id: "ariaPropTypes";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalidPropType", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalidPropType", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=ariaPropTypes.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaPropTypes.ts
5
5
  const ariaPropertyTypes = {
6
6
  "aria-activedescendant": "id",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports invalid ARIA properties.";
3
3
  readonly id: "ariaProps";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalidAriaProp", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalidAriaProp", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=ariaProps.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaProps.ts
5
5
  const validAriaProps = new Set([
6
6
  "aria-activedescendant",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports invalid or abstract ARIA roles.";
3
3
  readonly id: "ariaRoleValidity";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalidRole", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalidRole", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=ariaRoleValidity.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaRoleValidity.ts
5
5
  const validAriaRoles = new Set([
6
6
  "alert",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports ARIA attributes on elements that don't support them.";
3
3
  readonly id: "ariaUnsupportedElements";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "unsupportedElement", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "unsupportedElement", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=ariaUnsupportedElements.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/ariaUnsupportedElements.ts
5
5
  const unsupportedElements = new Set([
6
6
  "base",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports autoFocus props that are not set to false.";
3
3
  readonly id: "autoFocusProps";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "noAutoFocus", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "noAutoFocus", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=autoFocusProps.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/autoFocusProps.ts
5
5
  var autoFocusProps_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Ensure the autocomplete attribute is correct and suitable for the form field.";
3
3
  readonly id: "autocomplete";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalid", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalid", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=autocomplete.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  import { nullThrows } from "@flint.fyi/utils";
5
5
  //#region src/rules/autocomplete.ts
6
6
  const validAutocompleteValues = new Set([
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Prefer shorthand boolean attributes over explicit {true} values in JSX.";
3
3
  readonly id: "booleanValues";
4
- readonly presets: ["stylistic"];
4
+ readonly presets: readonly ["stylistic"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "preferShorthand", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "preferShorthand", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=booleanValues.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/booleanValues.ts
5
5
  var booleanValues_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Disallow unnecessary JSX curly braces around literals and JSX elements.";
3
3
  readonly id: "bracedStatements";
4
- readonly presets: ["stylistic"];
4
+ readonly presets: readonly ["stylistic"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "unnecessaryBraces", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "unnecessaryBraces", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=bracedStatements.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/bracedStatements.ts
5
5
  var bracedStatements_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports button elements without an explicit type attribute.";
3
3
  readonly id: "buttonTypes";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalidType" | "missingType", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalidType" | "missingType", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=buttonTypes.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/buttonTypes.ts
5
5
  const validButtonTypes = new Set([
6
6
  "button",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports usage of the children prop.";
3
3
  readonly id: "childrenProps";
4
- readonly presets: ["stylistic"];
4
+ readonly presets: readonly ["stylistic"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "noChildrenProp", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "noChildrenProp", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=childrenProps.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/childrenProps.ts
5
5
  var childrenProps_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports onClick without keyboard event handlers.";
3
3
  readonly id: "clickEventKeyEvents";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingKeyEvent", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingKeyEvent", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=clickEventKeyEvents.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/clickEventKeyEvents.ts
5
5
  const interactiveElements = new Set([
6
6
  "a",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports JSX text nodes that contain comment syntax but are rendered as text.";
3
3
  readonly id: "commentTextNodes";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "commentAsText", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "commentAsText", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=commentTextNodes.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports distracting elements like <marquee> and <blink>.";
3
3
  readonly id: "distractingElements";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "noDistractingElement", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "noDistractingElement", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=distractingElements.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/distractingElements.ts
5
5
  const distractingElements = new Set(["blink", "marquee"]);
6
6
  var distractingElements_default = ruleCreator.createRule(typescriptLanguage, {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports void DOM elements that have children, which is invalid HTML.";
3
3
  readonly id: "elementChildrenValidity";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "voidElementWithChildren", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "voidElementWithChildren", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=elementChildrenValidity.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/elementChildrenValidity.ts
5
5
  const voidElements = new Set([
6
6
  "area",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports heading elements without accessible content.";
3
3
  readonly id: "headingContents";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "emptyHeading", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "emptyHeading", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=headingContents.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/headingContents.ts
5
5
  const headingElements = new Set([
6
6
  "h1",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports <html> elements without a lang prop.";
3
3
  readonly id: "htmlLangs";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingLang", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingLang", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=htmlLangs.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/htmlLangs.ts
5
5
  var htmlLangs_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports <iframe> elements without a title prop.";
3
3
  readonly id: "iframeTitles";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingTitle", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingTitle", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=iframeTitles.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/iframeTitles.ts
5
5
  var iframeTitles_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports interactive elements with non-interactive ARIA roles.";
3
3
  readonly id: "interactiveElementRoles";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalidRole", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalidRole", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=interactiveElementRoles.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/interactiveElementRoles.ts
5
5
  const interactiveElements = new Set([
6
6
  "a",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports interactive elements that are not focusable via keyboard.";
3
3
  readonly id: "interactiveElementsFocusable";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "notFocusable", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "notFocusable", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=interactiveElementsFocusable.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/interactiveElementsFocusable.ts
5
5
  const interactiveHandlers = [
6
6
  "onClick",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports <label> elements without an associated control element.";
3
3
  readonly id: "labelAssociatedControls";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingAssociatedControl", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingAssociatedControl", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=labelAssociatedControls.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/labelAssociatedControls.ts
5
5
  const controlElements = new Set([
6
6
  "input",
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports invalid lang attribute values.";
3
3
  readonly id: "langValidity";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalidLang", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalidLang", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=langValidity.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  import languageTags from "language-tags";
5
5
  //#region src/rules/langValidity.ts
6
6
  var langValidity_default = ruleCreator.createRule(typescriptLanguage, {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports media elements without captions.";
3
3
  readonly id: "mediaCaptions";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingCaptions", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingCaptions", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=mediaCaptions.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { ruleCreator } from "./ruleCreator.js";
2
- import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
3
2
  import { SyntaxKind } from "typescript";
3
+ import { getTSNodeRange, typescriptLanguage } from "@flint.fyi/typescript-language";
4
4
  //#region src/rules/mediaCaptions.ts
5
5
  var mediaCaptions_default = ruleCreator.createRule(typescriptLanguage, {
6
6
  about: {
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports mouse events without corresponding keyboard events.";
3
3
  readonly id: "mouseEventKeyEvents";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingKeyEvent", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingKeyEvent", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=mouseEventKeyEvents.d.ts.map