@flint.fyi/jsx 0.3.2 → 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.
- package/lib/rules/accessKeys.js +1 -1
- package/lib/rules/altTexts.js +1 -1
- package/lib/rules/anchorAmbiguousText.js +1 -1
- package/lib/rules/anchorContent.js +1 -1
- package/lib/rules/anchorValidity.js +1 -1
- package/lib/rules/ariaActiveDescendantTabIndex.js +1 -1
- package/lib/rules/ariaHiddenFocusables.js +1 -1
- package/lib/rules/ariaPropTypes.js +1 -1
- package/lib/rules/ariaProps.js +1 -1
- package/lib/rules/ariaRoleValidity.js +1 -1
- package/lib/rules/ariaUnsupportedElements.js +1 -1
- package/lib/rules/autoFocusProps.js +1 -1
- package/lib/rules/autocomplete.js +1 -1
- package/lib/rules/booleanValues.js +1 -1
- package/lib/rules/bracedStatements.js +1 -1
- package/lib/rules/buttonTypes.js +1 -1
- package/lib/rules/childrenProps.js +1 -1
- package/lib/rules/clickEventKeyEvents.js +1 -1
- package/lib/rules/distractingElements.js +1 -1
- package/lib/rules/elementChildrenValidity.js +1 -1
- package/lib/rules/headingContents.js +1 -1
- package/lib/rules/htmlLangs.js +1 -1
- package/lib/rules/iframeTitles.js +1 -1
- package/lib/rules/interactiveElementRoles.js +1 -1
- package/lib/rules/interactiveElementsFocusable.js +1 -1
- package/lib/rules/labelAssociatedControls.js +1 -1
- package/lib/rules/langValidity.js +1 -1
- package/lib/rules/mediaCaptions.js +1 -1
- package/lib/rules/mouseEventKeyEvents.js +1 -1
- package/lib/rules/nonInteractiveElementInteractions.js +1 -1
- package/lib/rules/nonInteractiveElementRoles.js +1 -1
- package/lib/rules/nonInteractiveElementTabIndexes.js +1 -1
- package/lib/rules/propDuplicates.js +1 -1
- package/lib/rules/roleRedundancies.js +1 -1
- package/lib/rules/roleRequiredAriaProps.js +1 -1
- package/lib/rules/roleSupportedAriaProps.js +1 -1
- package/lib/rules/roleTags.js +1 -1
- package/lib/rules/scopeProps.js +1 -1
- package/lib/rules/staticElementInteractions.js +1 -1
- package/lib/rules/svgTitles.js +1 -1
- package/lib/rules/tabIndexPositiveValues.js +1 -1
- package/lib/rules/unnecessaryFragments.js +1 -1
- package/package.json +6 -6
package/lib/rules/accessKeys.js
CHANGED
|
@@ -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/accessKeys.ts
|
|
5
5
|
var accessKeys_default = ruleCreator.createRule(typescriptLanguage, {
|
|
6
6
|
about: {
|
package/lib/rules/altTexts.js
CHANGED
|
@@ -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/altTexts.ts
|
|
5
5
|
const alternateProperties = new Set([
|
|
6
6
|
"aria-label",
|
|
@@ -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/anchorAmbiguousText.ts
|
|
5
5
|
const ambiguousWords = new Set([
|
|
6
6
|
"a link",
|
|
@@ -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/anchorContent.ts
|
|
5
5
|
var anchorContent_default = ruleCreator.createRule(typescriptLanguage, {
|
|
6
6
|
about: {
|
|
@@ -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/anchorValidity.ts
|
|
5
5
|
var anchorValidity_default = ruleCreator.createRule(typescriptLanguage, {
|
|
6
6
|
about: {
|
|
@@ -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,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,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",
|
package/lib/rules/ariaProps.js
CHANGED
|
@@ -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,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,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,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,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,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,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: {
|
package/lib/rules/buttonTypes.js
CHANGED
|
@@ -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,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,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,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,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,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",
|
package/lib/rules/htmlLangs.js
CHANGED
|
@@ -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,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,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,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,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,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,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,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/mouseEventKeyEvents.ts
|
|
5
5
|
const mouseNamesToKeyboardNames = new Map([["onMouseOut", "onBlur"], ["onMouseOver", "onFocus"]]);
|
|
6
6
|
var mouseEventKeyEvents_default = ruleCreator.createRule(typescriptLanguage, {
|
|
@@ -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/nonInteractiveElementInteractions.ts
|
|
5
5
|
const interactiveHandlers = [
|
|
6
6
|
"onClick",
|
|
@@ -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/nonInteractiveElementRoles.ts
|
|
5
5
|
const nonInteractiveElements = new Set([
|
|
6
6
|
"article",
|
|
@@ -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/nonInteractiveElementTabIndexes.ts
|
|
5
5
|
const nonInteractiveElements = new Set([
|
|
6
6
|
"article",
|
|
@@ -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/propDuplicates.ts
|
|
5
5
|
var propDuplicates_default = ruleCreator.createRule(typescriptLanguage, {
|
|
6
6
|
about: {
|
|
@@ -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/roleRedundancies.ts
|
|
5
5
|
const implicitRoles = {
|
|
6
6
|
a: "link",
|
|
@@ -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/roleRequiredAriaProps.ts
|
|
5
5
|
const requiredAriaPropsForRole = {
|
|
6
6
|
checkbox: ["aria-checked"],
|
|
@@ -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/roleSupportedAriaProps.ts
|
|
5
5
|
const globalAriaProperties = new Set([
|
|
6
6
|
"aria-atomic",
|
package/lib/rules/roleTags.js
CHANGED
|
@@ -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/roleTags.ts
|
|
5
5
|
const roleToElement = {
|
|
6
6
|
article: "article",
|
package/lib/rules/scopeProps.js
CHANGED
|
@@ -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/scopeProps.ts
|
|
5
5
|
var scopeProps_default = ruleCreator.createRule(typescriptLanguage, {
|
|
6
6
|
about: {
|
|
@@ -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/staticElementInteractions.ts
|
|
5
5
|
const interactiveHandlers = [
|
|
6
6
|
"onClick",
|
package/lib/rules/svgTitles.js
CHANGED
|
@@ -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/svgTitles.ts
|
|
5
5
|
var svgTitles_default = ruleCreator.createRule(typescriptLanguage, {
|
|
6
6
|
about: {
|
|
@@ -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/tabIndexPositiveValues.ts
|
|
5
5
|
var tabIndexPositiveValues_default = ruleCreator.createRule(typescriptLanguage, {
|
|
6
6
|
about: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ruleCreator } from "./ruleCreator.js";
|
|
2
|
-
import { typescriptLanguage } from "@flint.fyi/typescript-language";
|
|
3
2
|
import { SyntaxKind } from "typescript";
|
|
3
|
+
import { typescriptLanguage } from "@flint.fyi/typescript-language";
|
|
4
4
|
//#region src/rules/unnecessaryFragments.ts
|
|
5
5
|
var unnecessaryFragments_default = ruleCreator.createRule(typescriptLanguage, {
|
|
6
6
|
about: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flint.fyi/jsx",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "[Experimental] A Flint plugin for JSX code.",
|
|
5
5
|
"homepage": "https://flint.fyi/rules/jsx",
|
|
6
6
|
"repository": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": {
|
|
13
|
-
"name": "
|
|
14
|
-
"
|
|
13
|
+
"name": "Flint Team",
|
|
14
|
+
"url": "https://flint.fyi/team"
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"type": "module",
|
|
@@ -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.
|
|
28
|
+
"@flint.fyi/core": "^0.23.0",
|
|
29
29
|
"@flint.fyi/utils": "^0.14.1",
|
|
30
|
-
"@flint.fyi/typescript-language": "^0.18.
|
|
30
|
+
"@flint.fyi/typescript-language": "^0.18.3"
|
|
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.
|
|
36
|
+
"@flint.fyi/rule-tester": "^0.16.4"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=24.0.0"
|