|
18 | 18 | * limitations under the License.
|
19 | 19 | */
|
20 | 20 |
|
21 |
| -/* eslint-disable no-sync, no-console, max-statements, max-lines-per-function */ |
| 21 | +/* eslint-disable node/no-sync, no-console, max-statements, max-lines-per-function, max-lines, node/shebang, node/no-unsupported-features/node-builtins */ |
22 | 22 |
|
23 | 23 | 'use strict';
|
24 | 24 |
|
@@ -555,13 +555,13 @@ function publish( pkg, clbk ) {
|
555 | 555 | badges += '[![Coverage Status][coverage-image]][coverage-url]';
|
556 | 556 | badges += ' ';
|
557 | 557 | }
|
558 |
| - badges += '<!-- ' |
| 558 | + badges += '<!-- '; |
559 | 559 | badges += '[![dependencies][dependencies-image]][dependencies-url]';
|
560 | 560 | badges += ' -->';
|
561 | 561 | readme = replace( readme, /\n>/, '\n'+badges+'\n\n>' );
|
562 | 562 | readme = replace( readme, '\'@stdlib/'+pkg, '\'@stdlib/'+distPkg );
|
563 | 563 |
|
564 |
| - branch = flags.patch ? 'v'+version : 'main'; |
| 564 | + branch = ( flags.patch ) ? 'v'+version : 'main'; |
565 | 565 | if ( contains( readme, '<section class="links">' ) ) {
|
566 | 566 | readme = replace( readme, '<section class="links">', mainRepoSection( customLicense, branch, !noBundles ) );
|
567 | 567 | } else {
|
@@ -810,7 +810,7 @@ function publish( pkg, clbk ) {
|
810 | 810 | return invokeCallback();
|
811 | 811 | }
|
812 | 812 | ghpagesOpts = {
|
813 |
| - 'branch': flags.patch ? branch+'-release' : 'main', |
| 813 | + 'branch': ( flags.patch ) ? branch+'-release' : 'main', |
814 | 814 | 'dotfiles': true,
|
815 | 815 | 'src': [
|
816 | 816 | '**/*',
|
@@ -877,11 +877,11 @@ function publish( pkg, clbk ) {
|
877 | 877 | if ( startsWith( p1, '## CLI' ) ) {
|
878 | 878 | return p1 + CLI_INSTALLATION_SECTION + ( p2 || '\n<!-- CLI usage documentation. -->\n' ) + '\n<section class="usage">';
|
879 | 879 | }
|
880 |
| - else if ( startsWith( p1, '<!-- C usage documentation. -->' ) ) { |
| 880 | + if ( startsWith( p1, '<!-- C usage documentation. -->' ) ) { |
881 | 881 | return p1 + '<section class="usage">';
|
882 | 882 | }
|
883 | 883 | }
|
884 |
| - return ( noBundles ? INSTALLATION_SECTION_BASIC : INSTALLATION_SECTION_BUNDLES ) + '\n<section class="usage">'; |
| 884 | + return ( ( noBundles ) ? INSTALLATION_SECTION_BASIC : INSTALLATION_SECTION_BUNDLES ) + '\n<section class="usage">'; |
885 | 885 | }
|
886 | 886 |
|
887 | 887 | /**
|
|
0 commit comments