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