mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Use the prettier config at the root for react-native-codegen (#52746)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52746 The config is needed for build, so I renamed it. In this way, the formatting of js code in react-native repo will be consistently controlled by the prettier config in the root. This change will make prettier v3 upgrade easier. Changelog: [Internal] Reviewed By: pieterv Differential Revision: D78700564 fbshipit-source-id: 392ed490bf814870f285c8372ff68b454e228802
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7970ee9998
commit
2c3a00b7b1
+6
-6
@@ -84,10 +84,10 @@ function EventEmitterTemplate(
|
||||
: ''
|
||||
}) {
|
||||
mEventEmitterCallback.invoke("${eventEmitter.name}"${
|
||||
eventEmitter.typeAnnotation.typeAnnotation.type !== 'VoidTypeAnnotation'
|
||||
? ', value'
|
||||
: ''
|
||||
});
|
||||
eventEmitter.typeAnnotation.typeAnnotation.type !== 'VoidTypeAnnotation'
|
||||
? ', value'
|
||||
: ''
|
||||
});
|
||||
}`;
|
||||
}
|
||||
|
||||
@@ -113,8 +113,8 @@ function MethodTemplate(
|
||||
const methodClosing = abstract
|
||||
? ';'
|
||||
: methodBody != null && methodBody.length > 0
|
||||
? ` { ${methodBody} }`
|
||||
: ' {}';
|
||||
? ` { ${methodBody} }`
|
||||
: ' {}';
|
||||
return ` ${methodJavaAnnotation}
|
||||
public ${methodQualifier}${translatedReturnType} ${methodName}(${traversedArgs.join(
|
||||
', ',
|
||||
|
||||
Reference in New Issue
Block a user