@@ -693,7 +693,6 @@ function pushAttribute(
693693 }
694694 }
695695 // Fall through to the last case which shouldn't remove empty strings.
696- // eslint-disable-next-line no-fallthrough
697696 case 'formAction ': {
698697 if (
699698 value == null ||
@@ -1123,11 +1122,9 @@ function pushStartOption(
11231122 case 'dangerouslySetInnerHTML ':
11241123 innerHTML = propValue ;
11251124 break ;
1126- // eslint-disable-next-line-no-fallthrough
11271125 case 'value ':
11281126 value = propValue ;
11291127 // We intentionally fallthrough to also set the attribute on the node.
1130- // eslint-disable-next-line-no-fallthrough
11311128 default :
11321129 pushAttribute ( target , propKey , propValue ) ;
11331130 break ;
@@ -1248,7 +1245,6 @@ function pushInput(
12481245 `${ 'input' } is a self-closing tag and must neither have \`children\` nor ` +
12491246 'use `dangerouslySetInnerHTML`.' ,
12501247 ) ;
1251- // eslint-disable-next-line-no-fallthrough
12521248 case 'defaultChecked ':
12531249 defaultChecked = propValue ;
12541250 break ;
@@ -1330,7 +1326,6 @@ function pushStartTextArea(
13301326 throw new Error (
13311327 '`dangerouslySetInnerHTML` does not make sense on <textarea>.' ,
13321328 ) ;
1333- // eslint-disable-next-line-no-fallthrough
13341329 default :
13351330 pushAttribute ( target , propKey , propValue ) ;
13361331 break ;
@@ -1677,7 +1672,6 @@ function pushLinkImpl(
16771672 `${ 'link' } is a self-closing tag and must neither have \`children\` nor ` +
16781673 'use `dangerouslySetInnerHTML`.' ,
16791674 ) ;
1680- // eslint-disable-next-line-no-fallthrough
16811675 default :
16821676 pushAttribute ( target , propKey , propValue ) ;
16831677 break ;
@@ -1906,7 +1900,6 @@ function pushSelfClosing(
19061900 `${ tag } is a self-closing tag and must neither have \`children\` nor ` +
19071901 'use `dangerouslySetInnerHTML`.' ,
19081902 ) ;
1909- // eslint-disable-next-line-no-fallthrough
19101903 default :
19111904 pushAttribute ( target , propKey , propValue ) ;
19121905 break ;
@@ -1936,7 +1929,6 @@ function pushStartMenuItem(
19361929 throw new Error (
19371930 'menuitems cannot have `children` nor `dangerouslySetInnerHTML`.' ,
19381931 ) ;
1939- // eslint-disable-next-line-no-fallthrough
19401932 default :
19411933 pushAttribute ( target , propKey , propValue ) ;
19421934 break ;
@@ -2088,7 +2080,6 @@ function pushStartTitle(
20882080 throw new Error (
20892081 '`dangerouslySetInnerHTML` does not make sense on <title>.' ,
20902082 ) ;
2091- // eslint-disable-next-line-no-fallthrough
20922083 default :
20932084 pushAttribute ( target , propKey , propValue ) ;
20942085 break ;
@@ -2787,11 +2778,12 @@ export function pushEndInstance(
27872778 if ( ! enableFloat ) {
27882779 break ;
27892780 }
2781+ // Fall through
27902782 }
2783+
27912784 // Omitted close tags
27922785 // TODO: Instead of repeating this switch we could try to pass a flag from above.
27932786 // That would require returning a tuple. Which might be ok if it gets inlined.
2794- // eslint-disable-next-line-no-fallthrough
27952787 case 'area ':
27962788 case 'base ':
27972789 case 'br ':
@@ -4044,7 +4036,6 @@ function writeStyleResourceDependencyInJS(
40444036 `${ 'link' } is a self-closing tag and must neither have \`children\` nor ` +
40454037 'use `dangerouslySetInnerHTML`.' ,
40464038 ) ;
4047- // eslint-disable-next-line-no-fallthrough
40484039 default :
40494040 writeStyleResourceAttributeInJS ( destination , propKey , propValue ) ;
40504041 break ;
@@ -4240,7 +4231,6 @@ function writeStyleResourceDependencyInAttr(
42404231 `${ 'link' } is a self-closing tag and must neither have \`children\` nor ` +
42414232 'use `dangerouslySetInnerHTML`.' ,
42424233 ) ;
4243- // eslint-disable-next-line-no-fallthrough
42444234 default :
42454235 writeStyleResourceAttributeInAttr ( destination , propKey , propValue ) ;
42464236 break ;
0 commit comments