Skip to content

Commit 44456a5

Browse files
committed
refactor: fix linting
1 parent cb62a85 commit 44456a5

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

packages/react-native-builder-bob/src/__tests__/patchCodegenAndroidPackage.test.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ describe('patchCodegenAndroidPackage', () => {
6161
});
6262

6363
it('moves the files to correct dir', async () => {
64-
await patchCodegenAndroidPackage(mockProjectPath, mockPackageJson, mockReport);
64+
await patchCodegenAndroidPackage(
65+
mockProjectPath,
66+
mockPackageJson,
67+
mockReport
68+
);
6569

6670
const expectedDir = path.resolve(
6771
mockProjectPath,
@@ -72,7 +76,11 @@ describe('patchCodegenAndroidPackage', () => {
7276
});
7377

7478
it('replaces the package name in the files', async () => {
75-
await patchCodegenAndroidPackage(mockProjectPath, mockPackageJson, mockReport);
79+
await patchCodegenAndroidPackage(
80+
mockProjectPath,
81+
mockPackageJson,
82+
mockReport
83+
);
7684

7785
const expectedDir = path.resolve(
7886
mockProjectPath,
@@ -87,7 +95,11 @@ describe('patchCodegenAndroidPackage', () => {
8795
});
8896

8997
it('removes the old package dir', async () => {
90-
await patchCodegenAndroidPackage(mockProjectPath, mockPackageJson, mockReport);
98+
await patchCodegenAndroidPackage(
99+
mockProjectPath,
100+
mockPackageJson,
101+
mockReport
102+
);
91103

92104
expect(await fs.pathExists(mockCodegenSpecsPath)).toBe(false);
93105
});

packages/react-native-builder-bob/src/targets/codegen.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ export default async function build({ root, report }: Options) {
3232
await del([codegenAndroidPath]);
3333
}
3434

35-
const codegenType = packageJson.codegenConfig?.type
35+
const codegenType = packageJson.codegenConfig?.type;
3636

3737
if (codegenType === undefined) {
38-
report.error("Couldn't find the 'type' value in 'codegenConfig'. Please check your package.json's 'codegenConfig' property and make sure 'type' is defined. https://reactnative.dev/docs/the-new-architecture/using-codegen#configuring-codegen")
39-
process.exit(1)
38+
report.error(
39+
"Couldn't find the 'type' value in 'codegenConfig'. Please check your package.json's 'codegenConfig' property and make sure 'type' is defined. https://reactnative.dev/docs/the-new-architecture/using-codegen#configuring-codegen"
40+
);
41+
process.exit(1);
4042
}
4143

4244
try {

0 commit comments

Comments
 (0)