Skip to content

Commit 6523b87

Browse files
dotslashtaruncipolleschi
authored andcommitted
fix: linting issues
1 parent 820d50d commit 6523b87

File tree

1 file changed

+11
-3
lines changed
  • packages/react-native-codegen/src/parsers/flow/modules

1 file changed

+11
-3
lines changed

packages/react-native-codegen/src/parsers/flow/modules/index.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,11 @@ function translateFunctionTypeAnnotation(
494494
for (const flowParam of (flowFunctionTypeAnnotation.params: $ReadOnlyArray<$FlowFixMe>)) {
495495
const parsedParam = tryParse(() => {
496496
if (flowParam.name == null) {
497-
throw new UnnamedFunctionParamParserError(flowParam, hasteModuleName, language);
497+
throw new UnnamedFunctionParamParserError(
498+
flowParam,
499+
hasteModuleName,
500+
language,
501+
);
498502
}
499503

500504
const paramName = flowParam.name.name;
@@ -644,7 +648,11 @@ function buildModuleSchema(
644648
);
645649

646650
if (moduleSpecs.length === 0) {
647-
throw new ModuleInterfaceNotFoundParserError(hasteModuleName, ast, language);
651+
throw new ModuleInterfaceNotFoundParserError(
652+
hasteModuleName,
653+
ast,
654+
language,
655+
);
648656
}
649657

650658
if (moduleSpecs.length > 1) {
@@ -681,7 +689,7 @@ function buildModuleSchema(
681689
throw new UnusedModuleInterfaceParserError(
682690
hasteModuleName,
683691
moduleSpec,
684-
language
692+
language,
685693
);
686694
}
687695

0 commit comments

Comments
 (0)