Skip to content

Commit a657bc5

Browse files
authored
build(eslint-plugin-react-hooks): add dev dependencies for typescript migration (#32279)
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory. Before submitting a pull request, please make sure the following is done: 1. Fork [the repository](https://github.com/facebook/react) and create your branch from `main`. 2. Run `yarn` in the repository root. 3. If you've fixed a bug or added code that should be tested, add tests! 4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development. 5. Run `yarn test --prod` to test in the production environment. It supports the same options as `yarn test`. 6. If you need a debugger, run `yarn test --debug --watch TestName`, open `chrome://inspect`, and press "Inspect". 7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`). 8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files. 9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`). 10. If you haven't already, complete the CLA. Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html --> ## Summary Contributing to #32240, this change adds the dev dependencies needed to support the migration of the plugin to typescript.
1 parent 9ff42a8 commit a657bc5

File tree

3 files changed

+520
-6
lines changed

3 files changed

+520
-6
lines changed

compiler/packages/eslint-plugin-react-compiler/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@babel/preset-env": "^7.22.4",
2424
"@babel/preset-typescript": "^7.18.6",
2525
"@babel/types": "^7.19.0",
26-
"@types/eslint": "^8.56.6",
26+
"@types/eslint": "^8.56.12",
2727
"@types/node": "^20.2.5",
2828
"babel-jest": "^29.0.3",
2929
"eslint": "8.57.0",

packages/eslint-plugin-react-hooks/package.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,20 @@
3232
},
3333
"devDependencies": {
3434
"@babel/eslint-parser": "^7.11.4",
35+
"@tsconfig/strictest": "^2.0.5",
3536
"@typescript-eslint/parser-v2": "npm:@typescript-eslint/parser@^2.26.0",
3637
"@typescript-eslint/parser-v3": "npm:@typescript-eslint/parser@^3.10.0",
3738
"@typescript-eslint/parser-v4": "npm:@typescript-eslint/parser@^4.1.0",
3839
"@typescript-eslint/parser-v5": "npm:@typescript-eslint/parser@^5.62.0",
40+
"@types/eslint": "^8.56.12",
41+
"@types/estree": "^1.0.6",
42+
"@types/estree-jsx": "^1.0.5",
43+
"@types/node": "^20.2.5",
3944
"babel-eslint": "^10.0.3",
4045
"eslint-v7": "npm:eslint@^7.7.0",
41-
"eslint-v9": "npm:eslint@^9.0.0"
46+
"eslint-v9": "npm:eslint@^9.0.0",
47+
"jest": "^29.5.0",
48+
"tsup": "^8.3.5",
49+
"typescript": "^5.4.3"
4250
}
4351
}

0 commit comments

Comments
 (0)