Skip to content

Commit aee60b9

Browse files
committed
Update code style and disable lint rules
1 parent a0a5d87 commit aee60b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* limitations under the License.
1919
*/
2020

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 */
2222

2323
'use strict';
2424

@@ -555,13 +555,13 @@ function publish( pkg, clbk ) {
555555
badges += '[![Coverage Status][coverage-image]][coverage-url]';
556556
badges += ' ';
557557
}
558-
badges += '<!-- '
558+
badges += '<!-- ';
559559
badges += '[![dependencies][dependencies-image]][dependencies-url]';
560560
badges += ' -->';
561561
readme = replace( readme, /\n>/, '\n'+badges+'\n\n>' );
562562
readme = replace( readme, '\'@stdlib/'+pkg, '\'@stdlib/'+distPkg );
563563

564-
branch = flags.patch ? 'v'+version : 'main';
564+
branch = ( flags.patch ) ? 'v'+version : 'main';
565565
if ( contains( readme, '<section class="links">' ) ) {
566566
readme = replace( readme, '<section class="links">', mainRepoSection( customLicense, branch, !noBundles ) );
567567
} else {
@@ -810,7 +810,7 @@ function publish( pkg, clbk ) {
810810
return invokeCallback();
811811
}
812812
ghpagesOpts = {
813-
'branch': flags.patch ? branch+'-release' : 'main',
813+
'branch': ( flags.patch ) ? branch+'-release' : 'main',
814814
'dotfiles': true,
815815
'src': [
816816
'**/*',
@@ -877,11 +877,11 @@ function publish( pkg, clbk ) {
877877
if ( startsWith( p1, '## CLI' ) ) {
878878
return p1 + CLI_INSTALLATION_SECTION + ( p2 || '\n<!-- CLI usage documentation. -->\n' ) + '\n<section class="usage">';
879879
}
880-
else if ( startsWith( p1, '<!-- C usage documentation. -->' ) ) {
880+
if ( startsWith( p1, '<!-- C usage documentation. -->' ) ) {
881881
return p1 + '<section class="usage">';
882882
}
883883
}
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">';
885885
}
886886

887887
/**

0 commit comments

Comments
 (0)