eslint-plugin-react-dom 1.52.7-next.2 → 1.52.8-beta.0
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/dist/index.js +97 -99
- package/dist/index.mjs +97 -99
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var settings = {
|
|
|
65
65
|
|
|
66
66
|
// package.json
|
|
67
67
|
var name2 = "eslint-plugin-react-dom";
|
|
68
|
-
var version = "1.52.
|
|
68
|
+
var version = "1.52.8-beta.0";
|
|
69
69
|
function createJsxElementResolver(context) {
|
|
70
70
|
const { components, polymorphicPropName } = shared.getSettingsFromContext(context);
|
|
71
71
|
return {
|
|
@@ -704,6 +704,90 @@ var DOM_ATTRIBUTE_NAMES = {
|
|
|
704
704
|
"http-equiv": "httpEquiv",
|
|
705
705
|
nomodule: "noModule"
|
|
706
706
|
};
|
|
707
|
+
var SVGDOM_ATTRIBUTE_NAMES = {
|
|
708
|
+
"accent-height": "accentHeight",
|
|
709
|
+
"alignment-baseline": "alignmentBaseline",
|
|
710
|
+
"arabic-form": "arabicForm",
|
|
711
|
+
"baseline-shift": "baselineShift",
|
|
712
|
+
"cap-height": "capHeight",
|
|
713
|
+
"clip-path": "clipPath",
|
|
714
|
+
"clip-rule": "clipRule",
|
|
715
|
+
"color-interpolation": "colorInterpolation",
|
|
716
|
+
"color-interpolation-filters": "colorInterpolationFilters",
|
|
717
|
+
"color-profile": "colorProfile",
|
|
718
|
+
"color-rendering": "colorRendering",
|
|
719
|
+
"dominant-baseline": "dominantBaseline",
|
|
720
|
+
"enable-background": "enableBackground",
|
|
721
|
+
"fill-opacity": "fillOpacity",
|
|
722
|
+
"fill-rule": "fillRule",
|
|
723
|
+
"flood-color": "floodColor",
|
|
724
|
+
"flood-opacity": "floodOpacity",
|
|
725
|
+
"font-family": "fontFamily",
|
|
726
|
+
"font-size": "fontSize",
|
|
727
|
+
"font-size-adjust": "fontSizeAdjust",
|
|
728
|
+
"font-stretch": "fontStretch",
|
|
729
|
+
"font-style": "fontStyle",
|
|
730
|
+
"font-variant": "fontVariant",
|
|
731
|
+
"font-weight": "fontWeight",
|
|
732
|
+
"glyph-name": "glyphName",
|
|
733
|
+
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
734
|
+
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
735
|
+
"horiz-adv-x": "horizAdvX",
|
|
736
|
+
"horiz-origin-x": "horizOriginX",
|
|
737
|
+
"image-rendering": "imageRendering",
|
|
738
|
+
"letter-spacing": "letterSpacing",
|
|
739
|
+
"lighting-color": "lightingColor",
|
|
740
|
+
"marker-end": "markerEnd",
|
|
741
|
+
"marker-mid": "markerMid",
|
|
742
|
+
"marker-start": "markerStart",
|
|
743
|
+
"overline-position": "overlinePosition",
|
|
744
|
+
"overline-thickness": "overlineThickness",
|
|
745
|
+
"paint-order": "paintOrder",
|
|
746
|
+
"panose-1": "panose1",
|
|
747
|
+
"pointer-events": "pointerEvents",
|
|
748
|
+
"rendering-intent": "renderingIntent",
|
|
749
|
+
"shape-rendering": "shapeRendering",
|
|
750
|
+
"stop-color": "stopColor",
|
|
751
|
+
"stop-opacity": "stopOpacity",
|
|
752
|
+
"strikethrough-position": "strikethroughPosition",
|
|
753
|
+
"strikethrough-thickness": "strikethroughThickness",
|
|
754
|
+
"stroke-dasharray": "strokeDasharray",
|
|
755
|
+
"stroke-dashoffset": "strokeDashoffset",
|
|
756
|
+
"stroke-linecap": "strokeLinecap",
|
|
757
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
758
|
+
"stroke-miterlimit": "strokeMiterlimit",
|
|
759
|
+
"stroke-opacity": "strokeOpacity",
|
|
760
|
+
"stroke-width": "strokeWidth",
|
|
761
|
+
"text-anchor": "textAnchor",
|
|
762
|
+
"text-decoration": "textDecoration",
|
|
763
|
+
"text-rendering": "textRendering",
|
|
764
|
+
"underline-position": "underlinePosition",
|
|
765
|
+
"underline-thickness": "underlineThickness",
|
|
766
|
+
"unicode-bidi": "unicodeBidi",
|
|
767
|
+
"unicode-range": "unicodeRange",
|
|
768
|
+
"units-per-em": "unitsPerEm",
|
|
769
|
+
"v-alphabetic": "vAlphabetic",
|
|
770
|
+
"v-hanging": "vHanging",
|
|
771
|
+
"v-ideographic": "vIdeographic",
|
|
772
|
+
"v-mathematical": "vMathematical",
|
|
773
|
+
"vector-effect": "vectorEffect",
|
|
774
|
+
"vert-adv-y": "vertAdvY",
|
|
775
|
+
"vert-origin-x": "vertOriginX",
|
|
776
|
+
"vert-origin-y": "vertOriginY",
|
|
777
|
+
"word-spacing": "wordSpacing",
|
|
778
|
+
"writing-mode": "writingMode",
|
|
779
|
+
"x-height": "xHeight",
|
|
780
|
+
"xlink:actuate": "xlinkActuate",
|
|
781
|
+
"xlink:arcrole": "xlinkArcrole",
|
|
782
|
+
"xlink:href": "xlinkHref",
|
|
783
|
+
"xlink:role": "xlinkRole",
|
|
784
|
+
"xlink:show": "xlinkShow",
|
|
785
|
+
"xlink:title": "xlinkTitle",
|
|
786
|
+
"xlink:type": "xlinkType",
|
|
787
|
+
"xml:base": "xmlBase",
|
|
788
|
+
"xml:lang": "xmlLang",
|
|
789
|
+
"xml:space": "xmlSpace"
|
|
790
|
+
};
|
|
707
791
|
var ATTRIBUTE_TAGS_MAP = {
|
|
708
792
|
as: ["link"],
|
|
709
793
|
abbr: ["th", "td"],
|
|
@@ -812,90 +896,6 @@ var ATTRIBUTE_TAGS_MAP = {
|
|
|
812
896
|
webkitAllowFullScreen: ["iframe", "video"],
|
|
813
897
|
webkitDirectory: ["input"]
|
|
814
898
|
};
|
|
815
|
-
var SVGDOM_ATTRIBUTE_NAMES = {
|
|
816
|
-
"accent-height": "accentHeight",
|
|
817
|
-
"alignment-baseline": "alignmentBaseline",
|
|
818
|
-
"arabic-form": "arabicForm",
|
|
819
|
-
"baseline-shift": "baselineShift",
|
|
820
|
-
"cap-height": "capHeight",
|
|
821
|
-
"clip-path": "clipPath",
|
|
822
|
-
"clip-rule": "clipRule",
|
|
823
|
-
"color-interpolation": "colorInterpolation",
|
|
824
|
-
"color-interpolation-filters": "colorInterpolationFilters",
|
|
825
|
-
"color-profile": "colorProfile",
|
|
826
|
-
"color-rendering": "colorRendering",
|
|
827
|
-
"dominant-baseline": "dominantBaseline",
|
|
828
|
-
"enable-background": "enableBackground",
|
|
829
|
-
"fill-opacity": "fillOpacity",
|
|
830
|
-
"fill-rule": "fillRule",
|
|
831
|
-
"flood-color": "floodColor",
|
|
832
|
-
"flood-opacity": "floodOpacity",
|
|
833
|
-
"font-family": "fontFamily",
|
|
834
|
-
"font-size": "fontSize",
|
|
835
|
-
"font-size-adjust": "fontSizeAdjust",
|
|
836
|
-
"font-stretch": "fontStretch",
|
|
837
|
-
"font-style": "fontStyle",
|
|
838
|
-
"font-variant": "fontVariant",
|
|
839
|
-
"font-weight": "fontWeight",
|
|
840
|
-
"glyph-name": "glyphName",
|
|
841
|
-
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
842
|
-
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
843
|
-
"horiz-adv-x": "horizAdvX",
|
|
844
|
-
"horiz-origin-x": "horizOriginX",
|
|
845
|
-
"image-rendering": "imageRendering",
|
|
846
|
-
"letter-spacing": "letterSpacing",
|
|
847
|
-
"lighting-color": "lightingColor",
|
|
848
|
-
"marker-end": "markerEnd",
|
|
849
|
-
"marker-mid": "markerMid",
|
|
850
|
-
"marker-start": "markerStart",
|
|
851
|
-
"overline-position": "overlinePosition",
|
|
852
|
-
"overline-thickness": "overlineThickness",
|
|
853
|
-
"paint-order": "paintOrder",
|
|
854
|
-
"panose-1": "panose1",
|
|
855
|
-
"pointer-events": "pointerEvents",
|
|
856
|
-
"rendering-intent": "renderingIntent",
|
|
857
|
-
"shape-rendering": "shapeRendering",
|
|
858
|
-
"stop-color": "stopColor",
|
|
859
|
-
"stop-opacity": "stopOpacity",
|
|
860
|
-
"strikethrough-position": "strikethroughPosition",
|
|
861
|
-
"strikethrough-thickness": "strikethroughThickness",
|
|
862
|
-
"stroke-dasharray": "strokeDasharray",
|
|
863
|
-
"stroke-dashoffset": "strokeDashoffset",
|
|
864
|
-
"stroke-linecap": "strokeLinecap",
|
|
865
|
-
"stroke-linejoin": "strokeLinejoin",
|
|
866
|
-
"stroke-miterlimit": "strokeMiterlimit",
|
|
867
|
-
"stroke-opacity": "strokeOpacity",
|
|
868
|
-
"stroke-width": "strokeWidth",
|
|
869
|
-
"text-anchor": "textAnchor",
|
|
870
|
-
"text-decoration": "textDecoration",
|
|
871
|
-
"text-rendering": "textRendering",
|
|
872
|
-
"underline-position": "underlinePosition",
|
|
873
|
-
"underline-thickness": "underlineThickness",
|
|
874
|
-
"unicode-bidi": "unicodeBidi",
|
|
875
|
-
"unicode-range": "unicodeRange",
|
|
876
|
-
"units-per-em": "unitsPerEm",
|
|
877
|
-
"v-alphabetic": "vAlphabetic",
|
|
878
|
-
"v-hanging": "vHanging",
|
|
879
|
-
"v-ideographic": "vIdeographic",
|
|
880
|
-
"v-mathematical": "vMathematical",
|
|
881
|
-
"vector-effect": "vectorEffect",
|
|
882
|
-
"vert-adv-y": "vertAdvY",
|
|
883
|
-
"vert-origin-x": "vertOriginX",
|
|
884
|
-
"vert-origin-y": "vertOriginY",
|
|
885
|
-
"word-spacing": "wordSpacing",
|
|
886
|
-
"writing-mode": "writingMode",
|
|
887
|
-
"x-height": "xHeight",
|
|
888
|
-
"xlink:actuate": "xlinkActuate",
|
|
889
|
-
"xlink:arcrole": "xlinkArcrole",
|
|
890
|
-
"xlink:href": "xlinkHref",
|
|
891
|
-
"xlink:role": "xlinkRole",
|
|
892
|
-
"xlink:show": "xlinkShow",
|
|
893
|
-
"xlink:title": "xlinkTitle",
|
|
894
|
-
"xlink:type": "xlinkType",
|
|
895
|
-
"xml:base": "xmlBase",
|
|
896
|
-
"xml:lang": "xmlLang",
|
|
897
|
-
"xml:space": "xmlSpace"
|
|
898
|
-
};
|
|
899
899
|
var DOM_PROPERTY_NAMES_ONE_WORD = [
|
|
900
900
|
// Global attributes - can be used on any HTML/DOM element
|
|
901
901
|
// See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
|
|
@@ -1586,8 +1586,6 @@ function isValidHTMLTagInJSX(childNode) {
|
|
|
1586
1586
|
if (tagConvention.test(childNode.parent.name.name)) {
|
|
1587
1587
|
return !childNode.parent.attributes.some(
|
|
1588
1588
|
(attrNode) => attrNode.type === "JSXAttribute" && attrNode.name.type === "JSXIdentifier" && attrNode.name.name === "is"
|
|
1589
|
-
// To learn more about custom web components and `is` attribute,
|
|
1590
|
-
// see https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example
|
|
1591
1589
|
);
|
|
1592
1590
|
}
|
|
1593
1591
|
return false;
|
|
@@ -1623,6 +1621,16 @@ function getStandardName(name3, context) {
|
|
|
1623
1621
|
const names = getDOMPropertyNames(context);
|
|
1624
1622
|
return names.find((element) => element.toLowerCase() === name3.toLowerCase());
|
|
1625
1623
|
}
|
|
1624
|
+
function has(obj, key) {
|
|
1625
|
+
return Object.hasOwn(obj, key);
|
|
1626
|
+
}
|
|
1627
|
+
function getText(context, node) {
|
|
1628
|
+
return context.sourceCode.getText(node);
|
|
1629
|
+
}
|
|
1630
|
+
function testReactVersion(context, comparator, version2) {
|
|
1631
|
+
const { version: localVersion } = shared.getSettingsFromContext(context);
|
|
1632
|
+
return compareVersions.compare(localVersion, version2, comparator);
|
|
1633
|
+
}
|
|
1626
1634
|
var messages = {
|
|
1627
1635
|
dataLowercaseRequired: "React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead",
|
|
1628
1636
|
invalidPropOnTag: "Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}",
|
|
@@ -1710,8 +1718,8 @@ function create12(context) {
|
|
|
1710
1718
|
return;
|
|
1711
1719
|
}
|
|
1712
1720
|
const standardName = getStandardName(name3, context);
|
|
1713
|
-
const hasStandardNameButIsNotUsed = standardName && standardName !== name3;
|
|
1714
|
-
const usesStandardName = standardName && standardName === name3;
|
|
1721
|
+
const hasStandardNameButIsNotUsed = !!standardName && standardName !== name3;
|
|
1722
|
+
const usesStandardName = !!standardName && standardName === name3;
|
|
1715
1723
|
if (usesStandardName) {
|
|
1716
1724
|
return;
|
|
1717
1725
|
}
|
|
@@ -1739,16 +1747,6 @@ function create12(context) {
|
|
|
1739
1747
|
}
|
|
1740
1748
|
};
|
|
1741
1749
|
}
|
|
1742
|
-
function has(obj, key) {
|
|
1743
|
-
return Object.hasOwn(obj, key);
|
|
1744
|
-
}
|
|
1745
|
-
function getText(context, node) {
|
|
1746
|
-
return context.sourceCode.getText(node);
|
|
1747
|
-
}
|
|
1748
|
-
function testReactVersion(context, comparator, version2) {
|
|
1749
|
-
const { version: localVersion } = shared.getSettingsFromContext(context);
|
|
1750
|
-
return compareVersions.compare(localVersion, version2, comparator);
|
|
1751
|
-
}
|
|
1752
1750
|
var RULE_NAME13 = "no-unsafe-iframe-sandbox";
|
|
1753
1751
|
var RULE_FEATURES12 = [];
|
|
1754
1752
|
var unsafeSandboxValues = [
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var settings = {
|
|
|
43
43
|
|
|
44
44
|
// package.json
|
|
45
45
|
var name2 = "eslint-plugin-react-dom";
|
|
46
|
-
var version = "1.52.
|
|
46
|
+
var version = "1.52.8-beta.0";
|
|
47
47
|
function createJsxElementResolver(context) {
|
|
48
48
|
const { components, polymorphicPropName } = getSettingsFromContext(context);
|
|
49
49
|
return {
|
|
@@ -682,6 +682,90 @@ var DOM_ATTRIBUTE_NAMES = {
|
|
|
682
682
|
"http-equiv": "httpEquiv",
|
|
683
683
|
nomodule: "noModule"
|
|
684
684
|
};
|
|
685
|
+
var SVGDOM_ATTRIBUTE_NAMES = {
|
|
686
|
+
"accent-height": "accentHeight",
|
|
687
|
+
"alignment-baseline": "alignmentBaseline",
|
|
688
|
+
"arabic-form": "arabicForm",
|
|
689
|
+
"baseline-shift": "baselineShift",
|
|
690
|
+
"cap-height": "capHeight",
|
|
691
|
+
"clip-path": "clipPath",
|
|
692
|
+
"clip-rule": "clipRule",
|
|
693
|
+
"color-interpolation": "colorInterpolation",
|
|
694
|
+
"color-interpolation-filters": "colorInterpolationFilters",
|
|
695
|
+
"color-profile": "colorProfile",
|
|
696
|
+
"color-rendering": "colorRendering",
|
|
697
|
+
"dominant-baseline": "dominantBaseline",
|
|
698
|
+
"enable-background": "enableBackground",
|
|
699
|
+
"fill-opacity": "fillOpacity",
|
|
700
|
+
"fill-rule": "fillRule",
|
|
701
|
+
"flood-color": "floodColor",
|
|
702
|
+
"flood-opacity": "floodOpacity",
|
|
703
|
+
"font-family": "fontFamily",
|
|
704
|
+
"font-size": "fontSize",
|
|
705
|
+
"font-size-adjust": "fontSizeAdjust",
|
|
706
|
+
"font-stretch": "fontStretch",
|
|
707
|
+
"font-style": "fontStyle",
|
|
708
|
+
"font-variant": "fontVariant",
|
|
709
|
+
"font-weight": "fontWeight",
|
|
710
|
+
"glyph-name": "glyphName",
|
|
711
|
+
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
712
|
+
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
713
|
+
"horiz-adv-x": "horizAdvX",
|
|
714
|
+
"horiz-origin-x": "horizOriginX",
|
|
715
|
+
"image-rendering": "imageRendering",
|
|
716
|
+
"letter-spacing": "letterSpacing",
|
|
717
|
+
"lighting-color": "lightingColor",
|
|
718
|
+
"marker-end": "markerEnd",
|
|
719
|
+
"marker-mid": "markerMid",
|
|
720
|
+
"marker-start": "markerStart",
|
|
721
|
+
"overline-position": "overlinePosition",
|
|
722
|
+
"overline-thickness": "overlineThickness",
|
|
723
|
+
"paint-order": "paintOrder",
|
|
724
|
+
"panose-1": "panose1",
|
|
725
|
+
"pointer-events": "pointerEvents",
|
|
726
|
+
"rendering-intent": "renderingIntent",
|
|
727
|
+
"shape-rendering": "shapeRendering",
|
|
728
|
+
"stop-color": "stopColor",
|
|
729
|
+
"stop-opacity": "stopOpacity",
|
|
730
|
+
"strikethrough-position": "strikethroughPosition",
|
|
731
|
+
"strikethrough-thickness": "strikethroughThickness",
|
|
732
|
+
"stroke-dasharray": "strokeDasharray",
|
|
733
|
+
"stroke-dashoffset": "strokeDashoffset",
|
|
734
|
+
"stroke-linecap": "strokeLinecap",
|
|
735
|
+
"stroke-linejoin": "strokeLinejoin",
|
|
736
|
+
"stroke-miterlimit": "strokeMiterlimit",
|
|
737
|
+
"stroke-opacity": "strokeOpacity",
|
|
738
|
+
"stroke-width": "strokeWidth",
|
|
739
|
+
"text-anchor": "textAnchor",
|
|
740
|
+
"text-decoration": "textDecoration",
|
|
741
|
+
"text-rendering": "textRendering",
|
|
742
|
+
"underline-position": "underlinePosition",
|
|
743
|
+
"underline-thickness": "underlineThickness",
|
|
744
|
+
"unicode-bidi": "unicodeBidi",
|
|
745
|
+
"unicode-range": "unicodeRange",
|
|
746
|
+
"units-per-em": "unitsPerEm",
|
|
747
|
+
"v-alphabetic": "vAlphabetic",
|
|
748
|
+
"v-hanging": "vHanging",
|
|
749
|
+
"v-ideographic": "vIdeographic",
|
|
750
|
+
"v-mathematical": "vMathematical",
|
|
751
|
+
"vector-effect": "vectorEffect",
|
|
752
|
+
"vert-adv-y": "vertAdvY",
|
|
753
|
+
"vert-origin-x": "vertOriginX",
|
|
754
|
+
"vert-origin-y": "vertOriginY",
|
|
755
|
+
"word-spacing": "wordSpacing",
|
|
756
|
+
"writing-mode": "writingMode",
|
|
757
|
+
"x-height": "xHeight",
|
|
758
|
+
"xlink:actuate": "xlinkActuate",
|
|
759
|
+
"xlink:arcrole": "xlinkArcrole",
|
|
760
|
+
"xlink:href": "xlinkHref",
|
|
761
|
+
"xlink:role": "xlinkRole",
|
|
762
|
+
"xlink:show": "xlinkShow",
|
|
763
|
+
"xlink:title": "xlinkTitle",
|
|
764
|
+
"xlink:type": "xlinkType",
|
|
765
|
+
"xml:base": "xmlBase",
|
|
766
|
+
"xml:lang": "xmlLang",
|
|
767
|
+
"xml:space": "xmlSpace"
|
|
768
|
+
};
|
|
685
769
|
var ATTRIBUTE_TAGS_MAP = {
|
|
686
770
|
as: ["link"],
|
|
687
771
|
abbr: ["th", "td"],
|
|
@@ -790,90 +874,6 @@ var ATTRIBUTE_TAGS_MAP = {
|
|
|
790
874
|
webkitAllowFullScreen: ["iframe", "video"],
|
|
791
875
|
webkitDirectory: ["input"]
|
|
792
876
|
};
|
|
793
|
-
var SVGDOM_ATTRIBUTE_NAMES = {
|
|
794
|
-
"accent-height": "accentHeight",
|
|
795
|
-
"alignment-baseline": "alignmentBaseline",
|
|
796
|
-
"arabic-form": "arabicForm",
|
|
797
|
-
"baseline-shift": "baselineShift",
|
|
798
|
-
"cap-height": "capHeight",
|
|
799
|
-
"clip-path": "clipPath",
|
|
800
|
-
"clip-rule": "clipRule",
|
|
801
|
-
"color-interpolation": "colorInterpolation",
|
|
802
|
-
"color-interpolation-filters": "colorInterpolationFilters",
|
|
803
|
-
"color-profile": "colorProfile",
|
|
804
|
-
"color-rendering": "colorRendering",
|
|
805
|
-
"dominant-baseline": "dominantBaseline",
|
|
806
|
-
"enable-background": "enableBackground",
|
|
807
|
-
"fill-opacity": "fillOpacity",
|
|
808
|
-
"fill-rule": "fillRule",
|
|
809
|
-
"flood-color": "floodColor",
|
|
810
|
-
"flood-opacity": "floodOpacity",
|
|
811
|
-
"font-family": "fontFamily",
|
|
812
|
-
"font-size": "fontSize",
|
|
813
|
-
"font-size-adjust": "fontSizeAdjust",
|
|
814
|
-
"font-stretch": "fontStretch",
|
|
815
|
-
"font-style": "fontStyle",
|
|
816
|
-
"font-variant": "fontVariant",
|
|
817
|
-
"font-weight": "fontWeight",
|
|
818
|
-
"glyph-name": "glyphName",
|
|
819
|
-
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
820
|
-
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
821
|
-
"horiz-adv-x": "horizAdvX",
|
|
822
|
-
"horiz-origin-x": "horizOriginX",
|
|
823
|
-
"image-rendering": "imageRendering",
|
|
824
|
-
"letter-spacing": "letterSpacing",
|
|
825
|
-
"lighting-color": "lightingColor",
|
|
826
|
-
"marker-end": "markerEnd",
|
|
827
|
-
"marker-mid": "markerMid",
|
|
828
|
-
"marker-start": "markerStart",
|
|
829
|
-
"overline-position": "overlinePosition",
|
|
830
|
-
"overline-thickness": "overlineThickness",
|
|
831
|
-
"paint-order": "paintOrder",
|
|
832
|
-
"panose-1": "panose1",
|
|
833
|
-
"pointer-events": "pointerEvents",
|
|
834
|
-
"rendering-intent": "renderingIntent",
|
|
835
|
-
"shape-rendering": "shapeRendering",
|
|
836
|
-
"stop-color": "stopColor",
|
|
837
|
-
"stop-opacity": "stopOpacity",
|
|
838
|
-
"strikethrough-position": "strikethroughPosition",
|
|
839
|
-
"strikethrough-thickness": "strikethroughThickness",
|
|
840
|
-
"stroke-dasharray": "strokeDasharray",
|
|
841
|
-
"stroke-dashoffset": "strokeDashoffset",
|
|
842
|
-
"stroke-linecap": "strokeLinecap",
|
|
843
|
-
"stroke-linejoin": "strokeLinejoin",
|
|
844
|
-
"stroke-miterlimit": "strokeMiterlimit",
|
|
845
|
-
"stroke-opacity": "strokeOpacity",
|
|
846
|
-
"stroke-width": "strokeWidth",
|
|
847
|
-
"text-anchor": "textAnchor",
|
|
848
|
-
"text-decoration": "textDecoration",
|
|
849
|
-
"text-rendering": "textRendering",
|
|
850
|
-
"underline-position": "underlinePosition",
|
|
851
|
-
"underline-thickness": "underlineThickness",
|
|
852
|
-
"unicode-bidi": "unicodeBidi",
|
|
853
|
-
"unicode-range": "unicodeRange",
|
|
854
|
-
"units-per-em": "unitsPerEm",
|
|
855
|
-
"v-alphabetic": "vAlphabetic",
|
|
856
|
-
"v-hanging": "vHanging",
|
|
857
|
-
"v-ideographic": "vIdeographic",
|
|
858
|
-
"v-mathematical": "vMathematical",
|
|
859
|
-
"vector-effect": "vectorEffect",
|
|
860
|
-
"vert-adv-y": "vertAdvY",
|
|
861
|
-
"vert-origin-x": "vertOriginX",
|
|
862
|
-
"vert-origin-y": "vertOriginY",
|
|
863
|
-
"word-spacing": "wordSpacing",
|
|
864
|
-
"writing-mode": "writingMode",
|
|
865
|
-
"x-height": "xHeight",
|
|
866
|
-
"xlink:actuate": "xlinkActuate",
|
|
867
|
-
"xlink:arcrole": "xlinkArcrole",
|
|
868
|
-
"xlink:href": "xlinkHref",
|
|
869
|
-
"xlink:role": "xlinkRole",
|
|
870
|
-
"xlink:show": "xlinkShow",
|
|
871
|
-
"xlink:title": "xlinkTitle",
|
|
872
|
-
"xlink:type": "xlinkType",
|
|
873
|
-
"xml:base": "xmlBase",
|
|
874
|
-
"xml:lang": "xmlLang",
|
|
875
|
-
"xml:space": "xmlSpace"
|
|
876
|
-
};
|
|
877
877
|
var DOM_PROPERTY_NAMES_ONE_WORD = [
|
|
878
878
|
// Global attributes - can be used on any HTML/DOM element
|
|
879
879
|
// See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
|
|
@@ -1564,8 +1564,6 @@ function isValidHTMLTagInJSX(childNode) {
|
|
|
1564
1564
|
if (tagConvention.test(childNode.parent.name.name)) {
|
|
1565
1565
|
return !childNode.parent.attributes.some(
|
|
1566
1566
|
(attrNode) => attrNode.type === "JSXAttribute" && attrNode.name.type === "JSXIdentifier" && attrNode.name.name === "is"
|
|
1567
|
-
// To learn more about custom web components and `is` attribute,
|
|
1568
|
-
// see https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example
|
|
1569
1567
|
);
|
|
1570
1568
|
}
|
|
1571
1569
|
return false;
|
|
@@ -1601,6 +1599,16 @@ function getStandardName(name3, context) {
|
|
|
1601
1599
|
const names = getDOMPropertyNames(context);
|
|
1602
1600
|
return names.find((element) => element.toLowerCase() === name3.toLowerCase());
|
|
1603
1601
|
}
|
|
1602
|
+
function has(obj, key) {
|
|
1603
|
+
return Object.hasOwn(obj, key);
|
|
1604
|
+
}
|
|
1605
|
+
function getText(context, node) {
|
|
1606
|
+
return context.sourceCode.getText(node);
|
|
1607
|
+
}
|
|
1608
|
+
function testReactVersion(context, comparator, version2) {
|
|
1609
|
+
const { version: localVersion } = getSettingsFromContext(context);
|
|
1610
|
+
return compare(localVersion, version2, comparator);
|
|
1611
|
+
}
|
|
1604
1612
|
var messages = {
|
|
1605
1613
|
dataLowercaseRequired: "React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead",
|
|
1606
1614
|
invalidPropOnTag: "Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}",
|
|
@@ -1688,8 +1696,8 @@ function create12(context) {
|
|
|
1688
1696
|
return;
|
|
1689
1697
|
}
|
|
1690
1698
|
const standardName = getStandardName(name3, context);
|
|
1691
|
-
const hasStandardNameButIsNotUsed = standardName && standardName !== name3;
|
|
1692
|
-
const usesStandardName = standardName && standardName === name3;
|
|
1699
|
+
const hasStandardNameButIsNotUsed = !!standardName && standardName !== name3;
|
|
1700
|
+
const usesStandardName = !!standardName && standardName === name3;
|
|
1693
1701
|
if (usesStandardName) {
|
|
1694
1702
|
return;
|
|
1695
1703
|
}
|
|
@@ -1717,16 +1725,6 @@ function create12(context) {
|
|
|
1717
1725
|
}
|
|
1718
1726
|
};
|
|
1719
1727
|
}
|
|
1720
|
-
function has(obj, key) {
|
|
1721
|
-
return Object.hasOwn(obj, key);
|
|
1722
|
-
}
|
|
1723
|
-
function getText(context, node) {
|
|
1724
|
-
return context.sourceCode.getText(node);
|
|
1725
|
-
}
|
|
1726
|
-
function testReactVersion(context, comparator, version2) {
|
|
1727
|
-
const { version: localVersion } = getSettingsFromContext(context);
|
|
1728
|
-
return compare(localVersion, version2, comparator);
|
|
1729
|
-
}
|
|
1730
1728
|
var RULE_NAME13 = "no-unsafe-iframe-sandbox";
|
|
1731
1729
|
var RULE_FEATURES12 = [];
|
|
1732
1730
|
var unsafeSandboxValues = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-dom",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.8-beta.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React DOM related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.8.0",
|
|
52
|
-
"@eslint-react/ast": "1.52.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/var": "1.52.
|
|
52
|
+
"@eslint-react/ast": "1.52.8-beta.0",
|
|
53
|
+
"@eslint-react/kit": "1.52.8-beta.0",
|
|
54
|
+
"@eslint-react/core": "1.52.8-beta.0",
|
|
55
|
+
"@eslint-react/shared": "1.52.8-beta.0",
|
|
56
|
+
"@eslint-react/eff": "1.52.8-beta.0",
|
|
57
|
+
"@eslint-react/var": "1.52.8-beta.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.1.12",
|