@@ -142,7 +142,7 @@ export class LocalizationPlugin implements Webpack.Plugin {
142142 */
143143 private _resolvedLocalizedStrings : Map < string , Map < string , Map < string , string > > > ;
144144
145- constructor ( options : ILocalizationPluginOptions ) {
145+ public constructor ( options : ILocalizationPluginOptions ) {
146146 this . _options = options ;
147147 }
148148
@@ -319,7 +319,7 @@ export class LocalizationPlugin implements Webpack.Plugin {
319319
320320 let lastIndex : number = 0 ;
321321 let regexResult : RegExpExecArray | null ;
322- while ( regexResult = placeholderRegex . exec ( assetSource ) ) {
322+ while ( regexResult = placeholderRegex . exec ( assetSource ) ) { // eslint-disable-line no-cond-assign
323323 const staticElement : IStaticReconstructionElement = {
324324 kind : 'static' ,
325325 staticString : assetSource . substring ( lastIndex , regexResult . index )
@@ -472,7 +472,7 @@ export class LocalizationPlugin implements Webpack.Plugin {
472472 const errors : Error [ ] = [ ] ;
473473
474474 // START configuration
475- {
475+ { // eslint-disable-line no-lone-blocks
476476 if (
477477 ! configuration . output ||
478478 ! configuration . output . filename ||
@@ -488,7 +488,7 @@ export class LocalizationPlugin implements Webpack.Plugin {
488488 // END configuration
489489
490490 // START options.filesToIgnore
491- {
491+ { // eslint-disable-line no-lone-blocks
492492 this . _locJsonFilesToIgnore = new Set < string > ( ) ;
493493 for ( const locJsonFilePath of this . _options . filesToIgnore || [ ] ) {
494494 let normalizedLocJsonFilePath : string = path . resolve ( configuration . context ! , locJsonFilePath ) ;
@@ -499,7 +499,7 @@ export class LocalizationPlugin implements Webpack.Plugin {
499499 // END options.filesToIgnore
500500
501501 // START options.localizedStrings
502- {
502+ { // eslint-disable-line no-lone-blocks
503503 const { localizedStrings } = this . _options ;
504504
505505 const localeNameRegex : RegExp = / [ a - z - ] / i;
@@ -632,7 +632,7 @@ export class LocalizationPlugin implements Webpack.Plugin {
632632 // END options.localizedStrings
633633
634634 // START options.defaultLocale
635- {
635+ { // eslint-disable-line no-lone-blocks
636636 if (
637637 ! this . _options . defaultLocale ||
638638 ( ! this . _options . defaultLocale . locale && ! this . _options . defaultLocale . usePassthroughLocale )
0 commit comments