@@ -693,6 +693,7 @@ function pushAttribute(
693
693
}
694
694
}
695
695
// Fall through to the last case which shouldn't remove empty strings.
696
+ // eslint-disable-next-line no-fallthrough
696
697
case 'formAction ': {
697
698
if (
698
699
value == null ||
@@ -1122,9 +1123,11 @@ function pushStartOption(
1122
1123
case 'dangerouslySetInnerHTML ':
1123
1124
innerHTML = propValue ;
1124
1125
break ;
1126
+ // eslint-disable-next-line-no-fallthrough
1125
1127
case 'value ':
1126
1128
value = propValue ;
1127
1129
// We intentionally fallthrough to also set the attribute on the node.
1130
+ // eslint-disable-next-line-no-fallthrough
1128
1131
default :
1129
1132
pushAttribute ( target , propKey , propValue ) ;
1130
1133
break ;
@@ -1245,6 +1248,7 @@ function pushInput(
1245
1248
`${ 'input' } is a self-closing tag and must neither have \`children\` nor ` +
1246
1249
'use `dangerouslySetInnerHTML`.' ,
1247
1250
) ;
1251
+ // eslint-disable-next-line-no-fallthrough
1248
1252
case 'defaultChecked ':
1249
1253
defaultChecked = propValue ;
1250
1254
break ;
@@ -1326,6 +1330,7 @@ function pushStartTextArea(
1326
1330
throw new Error (
1327
1331
'`dangerouslySetInnerHTML` does not make sense on <textarea>.' ,
1328
1332
) ;
1333
+ // eslint-disable-next-line-no-fallthrough
1329
1334
default :
1330
1335
pushAttribute ( target , propKey , propValue ) ;
1331
1336
break ;
@@ -1672,6 +1677,7 @@ function pushLinkImpl(
1672
1677
`${ 'link' } is a self-closing tag and must neither have \`children\` nor ` +
1673
1678
'use `dangerouslySetInnerHTML`.' ,
1674
1679
) ;
1680
+ // eslint-disable-next-line-no-fallthrough
1675
1681
default :
1676
1682
pushAttribute ( target , propKey , propValue ) ;
1677
1683
break ;
@@ -1900,6 +1906,7 @@ function pushSelfClosing(
1900
1906
`${ tag } is a self-closing tag and must neither have \`children\` nor ` +
1901
1907
'use `dangerouslySetInnerHTML`.' ,
1902
1908
) ;
1909
+ // eslint-disable-next-line-no-fallthrough
1903
1910
default :
1904
1911
pushAttribute ( target , propKey , propValue ) ;
1905
1912
break ;
@@ -1929,6 +1936,7 @@ function pushStartMenuItem(
1929
1936
throw new Error (
1930
1937
'menuitems cannot have `children` nor `dangerouslySetInnerHTML`.' ,
1931
1938
) ;
1939
+ // eslint-disable-next-line-no-fallthrough
1932
1940
default :
1933
1941
pushAttribute ( target , propKey , propValue ) ;
1934
1942
break ;
@@ -2080,6 +2088,7 @@ function pushStartTitle(
2080
2088
throw new Error (
2081
2089
'`dangerouslySetInnerHTML` does not make sense on <title>.' ,
2082
2090
) ;
2091
+ // eslint-disable-next-line-no-fallthrough
2083
2092
default :
2084
2093
pushAttribute ( target , propKey , propValue ) ;
2085
2094
break ;
@@ -2778,12 +2787,11 @@ export function pushEndInstance(
2778
2787
if ( ! enableFloat ) {
2779
2788
break ;
2780
2789
}
2781
- // Fall through
2782
2790
}
2783
-
2784
2791
// Omitted close tags
2785
2792
// TODO: Instead of repeating this switch we could try to pass a flag from above.
2786
2793
// That would require returning a tuple. Which might be ok if it gets inlined.
2794
+ // eslint-disable-next-line-no-fallthrough
2787
2795
case 'area ':
2788
2796
case 'base ':
2789
2797
case 'br ':
@@ -4036,6 +4044,7 @@ function writeStyleResourceDependencyInJS(
4036
4044
`${ 'link' } is a self-closing tag and must neither have \`children\` nor ` +
4037
4045
'use `dangerouslySetInnerHTML`.' ,
4038
4046
) ;
4047
+ // eslint-disable-next-line-no-fallthrough
4039
4048
default :
4040
4049
writeStyleResourceAttributeInJS ( destination , propKey , propValue ) ;
4041
4050
break ;
@@ -4231,6 +4240,7 @@ function writeStyleResourceDependencyInAttr(
4231
4240
`${ 'link' } is a self-closing tag and must neither have \`children\` nor ` +
4232
4241
'use `dangerouslySetInnerHTML`.' ,
4233
4242
) ;
4243
+ // eslint-disable-next-line-no-fallthrough
4234
4244
default :
4235
4245
writeStyleResourceAttributeInAttr ( destination , propKey , propValue ) ;
4236
4246
break ;
0 commit comments