mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
76bb13cd26
First attempt at making the linter work with advanced TypeScript syntax Falls back to the babel parser for some advanced syntax like string template syntax. This is pretty hacky as it doesn't take in any parsing options that are configured for the outer ESLint parser, not sure how that could be handled.
36 lines
939 B
JSON
36 lines
939 B
JSON
{
|
|
"name": "eslint-plugin-react-compiler",
|
|
"version": "0.0.0",
|
|
"description": "ESLint plugin to display errors found by the React compiler.",
|
|
"scripts": {
|
|
"build": "rimraf dist && rollup --config --bundleConfigAsCjs",
|
|
"test": "tsc && jest"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.24.4",
|
|
"@babel/parser": "^7.24.4",
|
|
"@babel/plugin-proposal-private-methods": "^7.18.6",
|
|
"hermes-parser": "^0.20.1",
|
|
"zod": "^3.22.4",
|
|
"zod-validation-error": "^3.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/preset-env": "^7.22.4",
|
|
"@babel/preset-typescript": "^7.18.6",
|
|
"@babel/types": "^7.19.0",
|
|
"@types/eslint": "^8.56.6",
|
|
"@types/node": "^20.2.5",
|
|
"babel-jest": "^29.0.3",
|
|
"eslint": "8.57.0",
|
|
"hermes-eslint": "^0.17.1",
|
|
"jest": "^29.5.0"
|
|
},
|
|
"engines": {
|
|
"node": "^14.17.0 || ^16.0.0 || >= 18.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"eslint": ">=7"
|
|
},
|
|
"license": "MIT"
|
|
}
|