Skip to content

Commit 36147a7

Browse files
Copilotanupriya13
andcommitted
Fix eslint warnings: remove unnecessary escape characters in regex
Co-authored-by: anupriya13 <[email protected]>
1 parent d8d4669 commit 36147a7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/@react-native-windows/cli/src/commands/moduleWindowsSetup/moduleWindowsSetup.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class ModuleWindowsSetup {
149149
// e.g., "react-native-webview" -> "ReactNativeWebview"
150150
// e.g., "@react-native-community/slider" -> "ReactNativeCommunitySlider"
151151
return packageName
152-
.replace(/[@\/\-]/g, ' ')
152+
.replace(/[@/-]/g, ' ')
153153
.split(' ')
154154
.filter(word => word.length > 0)
155155
.map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
@@ -813,7 +813,9 @@ export default TurboModuleRegistry.getEnforcing<Spec>('${moduleName}');
813813
specFiles = await this.filterValidSpecFiles(matches);
814814
if (specFiles.length > 0) {
815815
this.verboseMessage(
816-
`Found spec files with pattern "${pattern}": ${specFiles.join(', ')}`,
816+
`Found spec files with pattern "${pattern}": ${specFiles.join(
817+
', ',
818+
)}`,
817819
);
818820
break;
819821
}
@@ -836,7 +838,9 @@ export default TurboModuleRegistry.getEnforcing<Spec>('${moduleName}');
836838
// Parse method signatures from the Spec interface
837839
const methods = this.extractMethodsFromSpecInterface(specContent);
838840
this.verboseMessage(
839-
`Extracted ${methods.length} methods from spec file: ${methods.map(m => m.name).join(', ')}`,
841+
`Extracted ${methods.length} methods from spec file: ${methods
842+
.map(m => m.name)
843+
.join(', ')}`,
840844
);
841845
return methods;
842846
} catch (error) {

0 commit comments

Comments
 (0)