Open source react-native-modules ESLint rule

Summary:
Open source this ESLint rule so that we can lint our open source NativeModule specs.

Changelog: [Internal]

Reviewed By: shergin, cpojer

Differential Revision: D23791748

fbshipit-source-id: e44444bc87eaa9dc9b7f2b3ed03151798a35e8a5
This commit is contained in:
Ramanpreet Nara
2020-09-22 11:32:37 -07:00
committed by Facebook GitHub Bot
parent 891b6b0c14
commit 3a6327a5d9
19 changed files with 965 additions and 11 deletions
@@ -26,6 +26,7 @@ export interface Spec extends TurboModule {
+getString: (arg: string) => string;
+getArray: (arg: Array<any>) => Array<any>;
+getObject: (arg: Object) => Object;
// eslint-disable-next-line @react-native/codegen/react-native-modules
+getRootTag: (arg: RootTag) => RootTag;
+getValue: (x: number, y: string, z: Object) => Object;
+getValueWithCallback: (callback: (value: string) => void) => void;