Skip to content

Commit 0e2402e

Browse files
potetomichaelfaith
andauthored
Update eslint fixtures (#32589)
Extracting portions of #32416 for easier review. This PR lightly updates the build scripts for the eslint fixtures. Co-authored-by: michael faith <michaelfaith@users.noreply.github.com> --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32589). * #32592 * #32591 * #32590 * __->__ #32589 * #32588 --------- Co-authored-by: michael faith <michaelfaith@users.noreply.github.com>
1 parent f695f95 commit 0e2402e

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

fixtures/eslint-v6/build.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env node
22

3-
import {exec} from 'node:child_process';
3+
import {execSync} from 'node:child_process';
44
import {dirname, resolve} from 'node:path';
55
import {fileURLToPath} from 'node:url';
66

77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = dirname(__filename);
99

10-
exec('yarn build -r stable eslint-plugin-react-hooks', {
10+
execSync('yarn build -r stable eslint-plugin-react-hooks', {
1111
cwd: resolve(__dirname, '..', '..'),
12+
stdio: 'inherit',
1213
});

fixtures/eslint-v7/build.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env node
22

3-
import {exec} from 'node:child_process';
3+
import {execSync} from 'node:child_process';
44
import {dirname, resolve} from 'node:path';
55
import {fileURLToPath} from 'node:url';
66

77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = dirname(__filename);
99

10-
exec('yarn build -r stable eslint-plugin-react-hooks', {
10+
execSync('yarn build -r stable eslint-plugin-react-hooks', {
1111
cwd: resolve(__dirname, '..', '..'),
12+
stdio: 'inherit',
1213
});

fixtures/eslint-v8/build.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env node
22

3-
import {exec} from 'node:child_process';
3+
import {execSync} from 'node:child_process';
44
import {dirname, resolve} from 'node:path';
55
import {fileURLToPath} from 'node:url';
66

77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = dirname(__filename);
99

10-
exec('yarn build -r stable eslint-plugin-react-hooks', {
10+
execSync('yarn build -r stable eslint-plugin-react-hooks', {
1111
cwd: resolve(__dirname, '..', '..'),
12+
stdio: 'inherit',
1213
});

fixtures/eslint-v9/build.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env node
22

3-
import {exec} from 'node:child_process';
3+
import {execSync} from 'node:child_process';
44
import {dirname, resolve} from 'node:path';
55
import {fileURLToPath} from 'node:url';
66

77
const __filename = fileURLToPath(import.meta.url);
88
const __dirname = dirname(__filename);
99

10-
exec('yarn build -r stable eslint-plugin-react-hooks', {
10+
execSync('yarn build -r stable eslint-plugin-react-hooks', {
1111
cwd: resolve(__dirname, '..', '..'),
12+
stdio: 'inherit',
1213
});

0 commit comments

Comments
 (0)