@flint.fyi/jsx 0.3.1 → 0.3.2

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 (47) hide show
  1. package/lib/plugin.d.ts +177 -177
  2. package/lib/rules/accessKeys.d.ts +4 -4
  3. package/lib/rules/altTexts.d.ts +4 -4
  4. package/lib/rules/anchorAmbiguousText.d.ts +4 -4
  5. package/lib/rules/anchorContent.d.ts +4 -4
  6. package/lib/rules/anchorValidity.d.ts +4 -4
  7. package/lib/rules/ariaActiveDescendantTabIndex.d.ts +4 -4
  8. package/lib/rules/ariaHiddenFocusables.d.ts +4 -4
  9. package/lib/rules/ariaPropTypes.d.ts +4 -4
  10. package/lib/rules/ariaProps.d.ts +4 -4
  11. package/lib/rules/ariaRoleValidity.d.ts +4 -4
  12. package/lib/rules/ariaUnsupportedElements.d.ts +4 -4
  13. package/lib/rules/autoFocusProps.d.ts +4 -4
  14. package/lib/rules/autocomplete.d.ts +4 -4
  15. package/lib/rules/booleanValues.d.ts +4 -4
  16. package/lib/rules/bracedStatements.d.ts +4 -4
  17. package/lib/rules/buttonTypes.d.ts +4 -4
  18. package/lib/rules/childrenProps.d.ts +4 -4
  19. package/lib/rules/clickEventKeyEvents.d.ts +4 -4
  20. package/lib/rules/commentTextNodes.d.ts +4 -4
  21. package/lib/rules/distractingElements.d.ts +4 -4
  22. package/lib/rules/elementChildrenValidity.d.ts +4 -4
  23. package/lib/rules/headingContents.d.ts +4 -4
  24. package/lib/rules/htmlLangs.d.ts +4 -4
  25. package/lib/rules/iframeTitles.d.ts +4 -4
  26. package/lib/rules/interactiveElementRoles.d.ts +4 -4
  27. package/lib/rules/interactiveElementsFocusable.d.ts +4 -4
  28. package/lib/rules/labelAssociatedControls.d.ts +4 -4
  29. package/lib/rules/langValidity.d.ts +4 -4
  30. package/lib/rules/mediaCaptions.d.ts +4 -4
  31. package/lib/rules/mouseEventKeyEvents.d.ts +4 -4
  32. package/lib/rules/nonInteractiveElementInteractions.d.ts +4 -4
  33. package/lib/rules/nonInteractiveElementRoles.d.ts +4 -4
  34. package/lib/rules/nonInteractiveElementTabIndexes.d.ts +4 -4
  35. package/lib/rules/propDuplicates.d.ts +4 -4
  36. package/lib/rules/roleRedundancies.d.ts +4 -4
  37. package/lib/rules/roleRequiredAriaProps.d.ts +4 -4
  38. package/lib/rules/roleSupportedAriaProps.d.ts +4 -4
  39. package/lib/rules/roleTags.d.ts +4 -4
  40. package/lib/rules/ruleCreator.d.ts +1 -1
  41. package/lib/rules/scopeProps.d.ts +4 -4
  42. package/lib/rules/staticElementInteractions.d.ts +4 -4
  43. package/lib/rules/svgTitles.d.ts +4 -4
  44. package/lib/rules/tabIndexPositiveValues.d.ts +4 -4
  45. package/lib/rules/unescapedEntities.d.ts +4 -4
  46. package/lib/rules/unnecessaryFragments.d.ts +4 -4
  47. package/package.json +5 -5
@@ -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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports non-interactive elements with interactive event handlers.";
3
3
  readonly id: "nonInteractiveElementInteractions";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalidHandler", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalidHandler", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=nonInteractiveElementInteractions.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports non-interactive elements with interactive ARIA roles.";
3
3
  readonly id: "nonInteractiveElementRoles";
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=nonInteractiveElementRoles.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports non-interactive elements with positive or zero tabIndex values.";
3
3
  readonly id: "nonInteractiveElementTabIndexes";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "nonInteractiveTabIndex", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "nonInteractiveTabIndex", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=nonInteractiveElementTabIndexes.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Disallow duplicate props in JSX elements.";
3
3
  readonly id: "propDuplicates";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "duplicateProp", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "duplicateProp", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=propDuplicates.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports redundant ARIA roles on elements with implicit roles.";
3
3
  readonly id: "roleRedundancies";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "redundantRole", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "redundantRole", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=roleRedundancies.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports ARIA roles missing their required ARIA properties.";
3
3
  readonly id: "roleRequiredAriaProps";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingRequiredProps", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingRequiredProps", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=roleRequiredAriaProps.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports ARIA properties that are not supported by an element's role.";
3
3
  readonly id: "roleSupportedAriaProps";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "unsupportedProp", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "unsupportedProp", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=roleSupportedAriaProps.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports ARIA roles that have semantic HTML element equivalents.";
3
3
  readonly id: "roleTags";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "preferSemanticElement", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "preferSemanticElement", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=roleTags.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { RuleCreator } from "@flint.fyi/core";
2
- export declare const ruleCreator: RuleCreator<"logical" | "logicalStrict" | "stylistic">;
2
+ export declare const ruleCreator: RuleCreator<"logical" | "logicalStrict" | "stylistic", import("@flint.fyi/core").RuleAbout<"logical" | "logicalStrict" | "stylistic">>;
3
3
  //# sourceMappingURL=ruleCreator.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports scope props on non-th elements.";
3
3
  readonly id: "scopeProps";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "invalidScope", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "invalidScope", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=scopeProps.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports static elements with event handlers that lack ARIA roles.";
3
3
  readonly id: "staticElementInteractions";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "missingRole", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "missingRole", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=staticElementInteractions.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports <svg> elements without a <title> child element.";
3
3
  readonly id: "svgTitles";
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=svgTitles.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Reports positive tabIndex values.";
3
3
  readonly id: "tabIndexPositiveValues";
4
- readonly presets: ["logical", "logicalStrict"];
4
+ readonly presets: readonly ["logical", "logicalStrict"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "noPositiveTabIndex", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "noPositiveTabIndex", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=tabIndexPositiveValues.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Disallow unescaped HTML entities in JSX text that may cause rendering issues.";
3
3
  readonly id: "unescapedEntities";
4
- readonly presets: ["stylistic"];
4
+ readonly presets: readonly ["stylistic"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "unescapedEntity", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "unescapedEntity", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=unescapedEntities.d.ts.map
@@ -1,10 +1,10 @@
1
1
  declare const _default: import("@flint.fyi/core").Rule<{
2
2
  readonly description: "Disallow unnecessary JSX fragments that wrap a single child or have no children.";
3
3
  readonly id: "unnecessaryFragments";
4
- readonly presets: ["stylistic"];
4
+ readonly presets: readonly ["stylistic"];
5
5
  } & {
6
- presets?: ("logical" | "logicalStrict" | "stylistic")[];
7
- url: string;
8
- }, object, object, "unnecessaryFragment", import("@flint.fyi/core").AnyOptionalSchema>;
6
+ readonly pluginId: string;
7
+ readonly url: string;
8
+ }, "unnecessaryFragment", undefined>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=unnecessaryFragments.d.ts.map
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@flint.fyi/jsx",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "[Experimental] A Flint plugin for JSX code.",
5
- "homepage": "https://www.flint.fyi/rules/jsx",
5
+ "homepage": "https://flint.fyi/rules/jsx",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/flint-fyi/flint.git",
@@ -25,15 +25,15 @@
25
25
  "dependencies": {
26
26
  "language-tags": "^2.1.0",
27
27
  "typescript": "^5.9.3 || ^6.0.0",
28
- "@flint.fyi/core": "^0.21.0",
28
+ "@flint.fyi/core": "^0.22.0",
29
29
  "@flint.fyi/utils": "^0.14.1",
30
- "@flint.fyi/typescript-language": "^0.18.0"
30
+ "@flint.fyi/typescript-language": "^0.18.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/language-tags": "1.0.4",
34
34
  "tsdown": "0.21.0",
35
35
  "vitest": "4.1.0",
36
- "@flint.fyi/rule-tester": "^0.16.1"
36
+ "@flint.fyi/rule-tester": "^0.16.3"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=24.0.0"