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>
This commit is contained in:
lauren 2025-03-12 19:07:51 -04:00 committed by GitHub
parent f695f95290
commit 0e2402eb20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 8 deletions

View File

@ -1,12 +1,13 @@
#!/usr/bin/env node #!/usr/bin/env node
import {exec} from 'node:child_process'; import {execSync} from 'node:child_process';
import {dirname, resolve} from 'node:path'; import {dirname, resolve} from 'node:path';
import {fileURLToPath} from 'node:url'; import {fileURLToPath} from 'node:url';
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename); const __dirname = dirname(__filename);
exec('yarn build -r stable eslint-plugin-react-hooks', { execSync('yarn build -r stable eslint-plugin-react-hooks', {
cwd: resolve(__dirname, '..', '..'), cwd: resolve(__dirname, '..', '..'),
stdio: 'inherit',
}); });

View File

@ -1,12 +1,13 @@
#!/usr/bin/env node #!/usr/bin/env node
import {exec} from 'node:child_process'; import {execSync} from 'node:child_process';
import {dirname, resolve} from 'node:path'; import {dirname, resolve} from 'node:path';
import {fileURLToPath} from 'node:url'; import {fileURLToPath} from 'node:url';
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename); const __dirname = dirname(__filename);
exec('yarn build -r stable eslint-plugin-react-hooks', { execSync('yarn build -r stable eslint-plugin-react-hooks', {
cwd: resolve(__dirname, '..', '..'), cwd: resolve(__dirname, '..', '..'),
stdio: 'inherit',
}); });

View File

@ -1,12 +1,13 @@
#!/usr/bin/env node #!/usr/bin/env node
import {exec} from 'node:child_process'; import {execSync} from 'node:child_process';
import {dirname, resolve} from 'node:path'; import {dirname, resolve} from 'node:path';
import {fileURLToPath} from 'node:url'; import {fileURLToPath} from 'node:url';
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename); const __dirname = dirname(__filename);
exec('yarn build -r stable eslint-plugin-react-hooks', { execSync('yarn build -r stable eslint-plugin-react-hooks', {
cwd: resolve(__dirname, '..', '..'), cwd: resolve(__dirname, '..', '..'),
stdio: 'inherit',
}); });

View File

@ -1,12 +1,13 @@
#!/usr/bin/env node #!/usr/bin/env node
import {exec} from 'node:child_process'; import {execSync} from 'node:child_process';
import {dirname, resolve} from 'node:path'; import {dirname, resolve} from 'node:path';
import {fileURLToPath} from 'node:url'; import {fileURLToPath} from 'node:url';
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename); const __dirname = dirname(__filename);
exec('yarn build -r stable eslint-plugin-react-hooks', { execSync('yarn build -r stable eslint-plugin-react-hooks', {
cwd: resolve(__dirname, '..', '..'), cwd: resolve(__dirname, '..', '..'),
stdio: 'inherit',
}); });