File tree 3 files changed +15
-12
lines changed
3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ module.exports = defineConfig({
57
57
'unicorn/import-style' : 'off' ,
58
58
'unicorn/no-array-callback-reference' : 'off' ,
59
59
'unicorn/no-array-for-each' : 'off' ,
60
- 'unicorn/no-array-push-push' : 'off' ,
61
60
'unicorn/no-array-reduce' : 'off' ,
62
61
'unicorn/no-await-expression-member' : 'off' ,
63
62
'unicorn/no-for-loop' : 'off' ,
Original file line number Diff line number Diff line change @@ -183,14 +183,14 @@ async function generateLocalesIndexFile(
183
183
content . push (
184
184
...modules . map (
185
185
( module ) => `import ${ escapeImport ( name , module ) } from './${ module } ';`
186
- )
187
- ) ;
188
-
189
- content . push ( `\nconst ${ name } ${ fieldType } = {
186
+ ) ,
187
+ '' ,
188
+ `const ${ name } ${ fieldType } = {
190
189
${ modules . map ( ( module ) => `${ escapeField ( name , module ) } ,` ) . join ( '\n' ) }
191
- };\n` ) ;
192
-
193
- content . push ( `export default ${ name } ;` ) ;
190
+ };` ,
191
+ '' ,
192
+ `export default ${ name } ;`
193
+ ) ;
194
194
195
195
writeFileSync (
196
196
resolve ( path , 'index.ts' ) ,
Original file line number Diff line number Diff line change @@ -463,8 +463,10 @@ export class SimpleHelpersModule {
463
463
if ( range [ 0 ] . indexOf ( '-' ) === - 1 ) {
464
464
// handle non-ranges
465
465
if ( isCaseInsensitive && isNaN ( Number ( range [ 0 ] ) ) ) {
466
- rangeCodes . push ( range [ 0 ] . toUpperCase ( ) . charCodeAt ( 0 ) ) ;
467
- rangeCodes . push ( range [ 0 ] . toLowerCase ( ) . charCodeAt ( 0 ) ) ;
466
+ rangeCodes . push (
467
+ range [ 0 ] . toUpperCase ( ) . charCodeAt ( 0 ) ,
468
+ range [ 0 ] . toLowerCase ( ) . charCodeAt ( 0 )
469
+ ) ;
468
470
} else {
469
471
rangeCodes . push ( range [ 0 ] . charCodeAt ( 0 ) ) ;
470
472
}
@@ -481,8 +483,10 @@ export class SimpleHelpersModule {
481
483
for ( let i = min ; i <= max ; i ++ ) {
482
484
if ( isCaseInsensitive && isNaN ( Number ( String . fromCharCode ( i ) ) ) ) {
483
485
const ch = String . fromCharCode ( i ) ;
484
- rangeCodes . push ( ch . toUpperCase ( ) . charCodeAt ( 0 ) ) ;
485
- rangeCodes . push ( ch . toLowerCase ( ) . charCodeAt ( 0 ) ) ;
486
+ rangeCodes . push (
487
+ ch . toUpperCase ( ) . charCodeAt ( 0 ) ,
488
+ ch . toLowerCase ( ) . charCodeAt ( 0 )
489
+ ) ;
486
490
} else {
487
491
rangeCodes . push ( i ) ;
488
492
}
You can’t perform that action at this time.
0 commit comments