@flint.fyi/jsx 0.0.0 → 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.
- package/LICENSE.md +20 -0
- package/lib/index.js +1 -2
- package/lib/plugin.d.ts +309 -1
- package/lib/plugin.js +12 -6
- package/lib/rules/accessKeys.d.ts +8 -1
- package/lib/rules/accessKeys.js +2 -3
- package/lib/rules/altTexts.d.ts +8 -1
- package/lib/rules/altTexts.js +6 -16
- package/lib/rules/anchorAmbiguousText.d.ts +8 -1
- package/lib/rules/anchorAmbiguousText.js +2 -5
- package/lib/rules/anchorContent.d.ts +8 -1
- package/lib/rules/anchorContent.js +2 -3
- package/lib/rules/anchorValidity.d.ts +8 -1
- package/lib/rules/anchorValidity.js +4 -5
- package/lib/rules/ariaActiveDescendantTabIndex.d.ts +8 -1
- package/lib/rules/ariaActiveDescendantTabIndex.js +4 -7
- package/lib/rules/ariaHiddenFocusables.d.ts +8 -1
- package/lib/rules/ariaHiddenFocusables.js +7 -9
- package/lib/rules/ariaPropTypes.d.ts +8 -1
- package/lib/rules/ariaPropTypes.js +6 -9
- package/lib/rules/ariaProps.d.ts +8 -1
- package/lib/rules/ariaProps.js +2 -3
- package/lib/rules/ariaRoleValidity.d.ts +8 -1
- package/lib/rules/ariaRoleValidity.js +3 -4
- package/lib/rules/ariaUnsupportedElements.d.ts +8 -1
- package/lib/rules/ariaUnsupportedElements.js +2 -3
- package/lib/rules/autoFocusProps.d.ts +8 -1
- package/lib/rules/autoFocusProps.js +4 -6
- package/lib/rules/autocomplete.d.ts +8 -1
- package/lib/rules/autocomplete.js +3 -4
- package/lib/rules/booleanValues.d.ts +8 -1
- package/lib/rules/booleanValues.js +2 -3
- package/lib/rules/bracedStatements.d.ts +8 -1
- package/lib/rules/bracedStatements.js +1 -2
- package/lib/rules/buttonTypes.d.ts +8 -1
- package/lib/rules/buttonTypes.js +3 -4
- package/lib/rules/childrenProps.d.ts +8 -1
- package/lib/rules/childrenProps.js +1 -2
- package/lib/rules/clickEventKeyEvents.d.ts +8 -1
- package/lib/rules/clickEventKeyEvents.js +2 -3
- package/lib/rules/commentTextNodes.d.ts +8 -1
- package/lib/rules/commentTextNodes.js +2 -3
- package/lib/rules/distractingElements.d.ts +8 -1
- package/lib/rules/distractingElements.js +2 -3
- package/lib/rules/elementChildrenValidity.d.ts +8 -1
- package/lib/rules/elementChildrenValidity.js +1 -2
- package/lib/rules/headingContents.d.ts +8 -1
- package/lib/rules/headingContents.js +5 -6
- package/lib/rules/htmlLangs.d.ts +8 -1
- package/lib/rules/htmlLangs.js +2 -3
- package/lib/rules/iframeTitles.d.ts +8 -1
- package/lib/rules/iframeTitles.js +3 -4
- package/lib/rules/interactiveElementRoles.d.ts +8 -1
- package/lib/rules/interactiveElementRoles.js +3 -4
- package/lib/rules/interactiveElementsFocusable.d.ts +8 -1
- package/lib/rules/interactiveElementsFocusable.js +7 -8
- package/lib/rules/labelAssociatedControls.d.ts +8 -1
- package/lib/rules/labelAssociatedControls.js +6 -7
- package/lib/rules/langValidity.d.ts +8 -1
- package/lib/rules/langValidity.js +1 -2
- package/lib/rules/mediaCaptions.d.ts +8 -1
- package/lib/rules/mediaCaptions.js +12 -13
- package/lib/rules/mouseEventKeyEvents.d.ts +8 -1
- package/lib/rules/mouseEventKeyEvents.js +2 -3
- package/lib/rules/nonInteractiveElementInteractions.d.ts +8 -1
- package/lib/rules/nonInteractiveElementInteractions.js +3 -4
- package/lib/rules/nonInteractiveElementRoles.d.ts +8 -1
- package/lib/rules/nonInteractiveElementRoles.js +3 -4
- package/lib/rules/nonInteractiveElementTabIndexes.d.ts +8 -1
- package/lib/rules/nonInteractiveElementTabIndexes.js +7 -8
- package/lib/rules/propDuplicates.d.ts +8 -1
- package/lib/rules/propDuplicates.js +2 -3
- package/lib/rules/roleRedundancies.d.ts +8 -1
- package/lib/rules/roleRedundancies.js +3 -4
- package/lib/rules/roleRequiredAriaProps.d.ts +8 -1
- package/lib/rules/roleRequiredAriaProps.js +3 -4
- package/lib/rules/roleSupportedAriaProps.d.ts +8 -1
- package/lib/rules/roleSupportedAriaProps.js +3 -4
- package/lib/rules/roleTags.d.ts +8 -1
- package/lib/rules/roleTags.js +2 -3
- package/lib/rules/ruleCreator.d.ts +1 -1
- package/lib/rules/ruleCreator.js +1 -2
- package/lib/rules/scopeProps.d.ts +8 -1
- package/lib/rules/scopeProps.js +2 -3
- package/lib/rules/staticElementInteractions.d.ts +8 -1
- package/lib/rules/staticElementInteractions.js +2 -3
- package/lib/rules/svgTitles.d.ts +8 -1
- package/lib/rules/svgTitles.js +5 -6
- package/lib/rules/tabIndexPositiveValues.d.ts +8 -1
- package/lib/rules/tabIndexPositiveValues.js +4 -5
- package/lib/rules/unescapedEntities.d.ts +8 -1
- package/lib/rules/unescapedEntities.js +1 -2
- package/lib/rules/unnecessaryFragments.d.ts +8 -1
- package/lib/rules/unnecessaryFragments.js +3 -4
- package/package.json +46 -51
- package/lib/jsx.d.ts +0 -8
- package/lib/jsx.js +0 -100
package/package.json
CHANGED
|
@@ -1,52 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"exports": {
|
|
49
|
-
".": "./lib/index.js"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
2
|
+
"name": "@flint.fyi/jsx",
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "[Experimental] A Flint plugin for JSX code.",
|
|
5
|
+
"homepage": "https://flint.fyi/rules/jsx",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/flint-fyi/flint.git",
|
|
9
|
+
"directory": "packages/jsx"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "JoshuaKGoldberg",
|
|
14
|
+
"email": "npm@joshuakgoldberg.com"
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./lib/index.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"lib/",
|
|
23
|
+
"!lib/**/*.map"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"language-tags": "^2.1.0",
|
|
27
|
+
"typescript": "^5.9.3 || ^6.0.0",
|
|
28
|
+
"@flint.fyi/core": "^0.22.0",
|
|
29
|
+
"@flint.fyi/utils": "^0.14.1",
|
|
30
|
+
"@flint.fyi/typescript-language": "^0.18.2"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/language-tags": "1.0.4",
|
|
34
|
+
"tsdown": "0.21.0",
|
|
35
|
+
"vitest": "4.1.0",
|
|
36
|
+
"@flint.fyi/rule-tester": "^0.16.3"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=24.0.0"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"test": "vitest --project jsx"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/lib/jsx.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as _flint_fyi_core0 from "@flint.fyi/core";
|
|
2
|
-
import * as _flint_fyi_typescript_language0 from "@flint.fyi/typescript-language";
|
|
3
|
-
|
|
4
|
-
//#region src/jsx.d.ts
|
|
5
|
-
declare const jsx: _flint_fyi_core0.Plugin<_flint_fyi_core0.RuleAbout, string | undefined, [_flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "avoidAccessKey", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingAlt", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "ambiguousText", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingContent", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidHref" | "missingHref" | "shouldBeButton", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingTabIndex", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "ariaHiddenFocusable", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidAriaProp", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidPropType", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidRole", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "unsupportedElement", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalid", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "noAutoFocus", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "preferShorthand", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "unnecessaryBraces", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidType" | "missingType", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "noChildrenProp", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingKeyEvent", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "commentAsText", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "noDistractingElement", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "duplicateProp", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "emptyHeading", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingLang", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingTitle", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "notFocusable", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidRole", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingAssociatedControl", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidLang", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingCaptions", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingKeyEvent", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidHandler", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidRole", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "nonInteractiveTabIndex", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "redundantRole", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingRequiredProps", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "unsupportedProp", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "preferSemanticElement", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "invalidScope", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingRole", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "missingTitle", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "noPositiveTabIndex", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "unescapedEntity", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "unnecessaryFragment", _flint_fyi_core0.AnyOptionalSchema>, _flint_fyi_core0.Rule<_flint_fyi_core0.RuleAboutWithPresetsAndUrl<"logical" | "logicalStrict" | "stylistic">, _flint_fyi_typescript_language0.TypeScriptNodesByName, _flint_fyi_typescript_language0.TypeScriptFileServices, "voidElementWithChildren", _flint_fyi_core0.AnyOptionalSchema>]>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { _flint_fyi_typescript_language0, jsx };
|
|
8
|
-
//# sourceMappingURL=jsx.d.ts.map
|
package/lib/jsx.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import accessKeys_default from "./rules/accessKeys.js";
|
|
2
|
-
import altTexts_default from "./rules/altTexts.js";
|
|
3
|
-
import anchorAmbiguousText_default from "./rules/anchorAmbiguousText.js";
|
|
4
|
-
import anchorContent_default from "./rules/anchorContent.js";
|
|
5
|
-
import anchorValidity_default from "./rules/anchorValidity.js";
|
|
6
|
-
import ariaActiveDescendantTabIndex_default from "./rules/ariaActiveDescendantTabIndex.js";
|
|
7
|
-
import ariaHiddenFocusables_default from "./rules/ariaHiddenFocusables.js";
|
|
8
|
-
import ariaProps_default from "./rules/ariaProps.js";
|
|
9
|
-
import ariaPropTypes_default from "./rules/ariaPropTypes.js";
|
|
10
|
-
import ariaRoleValidity_default from "./rules/ariaRoleValidity.js";
|
|
11
|
-
import ariaUnsupportedElements_default from "./rules/ariaUnsupportedElements.js";
|
|
12
|
-
import autocomplete_default from "./rules/autocomplete.js";
|
|
13
|
-
import autoFocusProps_default from "./rules/autoFocusProps.js";
|
|
14
|
-
import booleanValues_default from "./rules/booleanValues.js";
|
|
15
|
-
import bracedStatements_default from "./rules/bracedStatements.js";
|
|
16
|
-
import buttonTypes_default from "./rules/buttonTypes.js";
|
|
17
|
-
import childrenProps_default from "./rules/childrenProps.js";
|
|
18
|
-
import clickEventKeyEvents_default from "./rules/clickEventKeyEvents.js";
|
|
19
|
-
import commentTextNodes_default from "./rules/commentTextNodes.js";
|
|
20
|
-
import distractingElements_default from "./rules/distractingElements.js";
|
|
21
|
-
import elementChildrenValidity_default from "./rules/elementChildrenValidity.js";
|
|
22
|
-
import headingContents_default from "./rules/headingContents.js";
|
|
23
|
-
import htmlLangs_default from "./rules/htmlLangs.js";
|
|
24
|
-
import iframeTitles_default from "./rules/iframeTitles.js";
|
|
25
|
-
import interactiveElementRoles_default from "./rules/interactiveElementRoles.js";
|
|
26
|
-
import interactiveElementsFocusable_default from "./rules/interactiveElementsFocusable.js";
|
|
27
|
-
import labelAssociatedControls_default from "./rules/labelAssociatedControls.js";
|
|
28
|
-
import langValidity_default from "./rules/langValidity.js";
|
|
29
|
-
import mediaCaptions_default from "./rules/mediaCaptions.js";
|
|
30
|
-
import mouseEventKeyEvents_default from "./rules/mouseEventKeyEvents.js";
|
|
31
|
-
import nonInteractiveElementInteractions_default from "./rules/nonInteractiveElementInteractions.js";
|
|
32
|
-
import nonInteractiveElementRoles_default from "./rules/nonInteractiveElementRoles.js";
|
|
33
|
-
import nonInteractiveElementTabIndexes_default from "./rules/nonInteractiveElementTabIndexes.js";
|
|
34
|
-
import propDuplicates_default from "./rules/propDuplicates.js";
|
|
35
|
-
import roleRedundancies_default from "./rules/roleRedundancies.js";
|
|
36
|
-
import roleRequiredAriaProps_default from "./rules/roleRequiredAriaProps.js";
|
|
37
|
-
import roleSupportedAriaProps_default from "./rules/roleSupportedAriaProps.js";
|
|
38
|
-
import roleTags_default from "./rules/roleTags.js";
|
|
39
|
-
import scopeProps_default from "./rules/scopeProps.js";
|
|
40
|
-
import staticElementInteractions_default from "./rules/staticElementInteractions.js";
|
|
41
|
-
import svgTitles_default from "./rules/svgTitles.js";
|
|
42
|
-
import tabIndexPositiveValues_default from "./rules/tabIndexPositiveValues.js";
|
|
43
|
-
import unescapedEntities_default from "./rules/unescapedEntities.js";
|
|
44
|
-
import unnecessaryFragments_default from "./rules/unnecessaryFragments.js";
|
|
45
|
-
import { createPlugin } from "@flint.fyi/core";
|
|
46
|
-
|
|
47
|
-
//#region src/jsx.ts
|
|
48
|
-
const jsx = createPlugin({
|
|
49
|
-
name: "JSX",
|
|
50
|
-
rules: [
|
|
51
|
-
accessKeys_default,
|
|
52
|
-
altTexts_default,
|
|
53
|
-
anchorAmbiguousText_default,
|
|
54
|
-
anchorContent_default,
|
|
55
|
-
anchorValidity_default,
|
|
56
|
-
ariaActiveDescendantTabIndex_default,
|
|
57
|
-
ariaHiddenFocusables_default,
|
|
58
|
-
ariaProps_default,
|
|
59
|
-
ariaPropTypes_default,
|
|
60
|
-
ariaRoleValidity_default,
|
|
61
|
-
ariaUnsupportedElements_default,
|
|
62
|
-
autocomplete_default,
|
|
63
|
-
autoFocusProps_default,
|
|
64
|
-
booleanValues_default,
|
|
65
|
-
bracedStatements_default,
|
|
66
|
-
buttonTypes_default,
|
|
67
|
-
childrenProps_default,
|
|
68
|
-
clickEventKeyEvents_default,
|
|
69
|
-
commentTextNodes_default,
|
|
70
|
-
distractingElements_default,
|
|
71
|
-
propDuplicates_default,
|
|
72
|
-
headingContents_default,
|
|
73
|
-
htmlLangs_default,
|
|
74
|
-
iframeTitles_default,
|
|
75
|
-
interactiveElementsFocusable_default,
|
|
76
|
-
interactiveElementRoles_default,
|
|
77
|
-
labelAssociatedControls_default,
|
|
78
|
-
langValidity_default,
|
|
79
|
-
mediaCaptions_default,
|
|
80
|
-
mouseEventKeyEvents_default,
|
|
81
|
-
nonInteractiveElementInteractions_default,
|
|
82
|
-
nonInteractiveElementRoles_default,
|
|
83
|
-
nonInteractiveElementTabIndexes_default,
|
|
84
|
-
roleRedundancies_default,
|
|
85
|
-
roleRequiredAriaProps_default,
|
|
86
|
-
roleSupportedAriaProps_default,
|
|
87
|
-
roleTags_default,
|
|
88
|
-
scopeProps_default,
|
|
89
|
-
staticElementInteractions_default,
|
|
90
|
-
svgTitles_default,
|
|
91
|
-
tabIndexPositiveValues_default,
|
|
92
|
-
unescapedEntities_default,
|
|
93
|
-
unnecessaryFragments_default,
|
|
94
|
-
elementChildrenValidity_default
|
|
95
|
-
]
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
//#endregion
|
|
99
|
-
export { jsx };
|
|
100
|
-
//# sourceMappingURL=jsx.js.map
|