eslint-plugin-react-compiler
Advanced tools
Comparing version 0.0.0-experimental-2eea4a6-20240814 to 0.0.0-experimental-30d8a17-20250209
{ | ||
"name": "eslint-plugin-react-compiler", | ||
"version": "0.0.0-experimental-2eea4a6-20240814", | ||
"version": "0.0.0-experimental-30d8a17-20250209", | ||
"description": "ESLint plugin to display errors found by the React compiler.", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "rimraf dist && rollup --config --bundleConfigAsCjs", | ||
"test": "tsc && jest" | ||
"build": "rimraf dist && scripts/build.js", | ||
"test": "tsc && jest", | ||
"watch": "scripts/build.js --watch" | ||
}, | ||
@@ -17,3 +18,3 @@ "files": [ | ||
"@babel/plugin-proposal-private-methods": "^7.18.6", | ||
"hermes-parser": "^0.20.1", | ||
"hermes-parser": "^0.25.1", | ||
"zod": "^3.22.4", | ||
@@ -26,7 +27,7 @@ "zod-validation-error": "^3.0.3" | ||
"@babel/types": "^7.19.0", | ||
"@types/eslint": "^8.56.6", | ||
"@types/eslint": "^8.56.12", | ||
"@types/node": "^20.2.5", | ||
"babel-jest": "^29.0.3", | ||
"eslint": "8.57.0", | ||
"hermes-eslint": "^0.17.1", | ||
"hermes-eslint": "^0.25.1", | ||
"jest": "^29.5.0" | ||
@@ -33,0 +34,0 @@ }, |
@@ -21,4 +21,21 @@ # eslint-plugin-react-compiler | ||
Add `react-compiler` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix: | ||
### Flat config | ||
Edit your eslint 8+ config (for example `eslint.config.mjs`) with the recommended configuration: | ||
```diff | ||
+ import reactCompiler from "eslint-plugin-react-compiler" | ||
import react from "eslint-plugin-react" | ||
export default [ | ||
// Your existing config | ||
{ ...pluginReact.configs.flat.recommended, settings: { react: { version: "detect" } } }, | ||
+ reactCompiler.configs.recommended | ||
] | ||
``` | ||
### Legacy config (`.eslintrc`) | ||
Add `react-compiler` to the plugins section of your configuration file. You can omit the `eslint-plugin-` prefix: | ||
```json | ||
@@ -25,0 +42,0 @@ { |
Sorry, the diff of this file is too big to display
8460489
4
81102
64
+ Added@babel/compat-data@7.26.8(transitive)
+ Added@babel/core@7.26.8(transitive)
+ Added@babel/generator@7.26.8(transitive)
+ Added@babel/parser@7.26.8(transitive)
+ Added@babel/template@7.26.8(transitive)
+ Added@babel/traverse@7.26.8(transitive)
+ Added@babel/types@7.26.8(transitive)
+ Added@eslint/core@0.11.0(transitive)
+ Added@eslint/js@9.20.0(transitive)
+ Added@types/gensync@1.0.4(transitive)
+ Addedcaniuse-lite@1.0.30001699(transitive)
+ Addedelectron-to-chromium@1.5.97(transitive)
+ Addedeslint@9.20.1(transitive)
+ Addedhermes-estree@0.25.1(transitive)
+ Addedhermes-parser@0.25.1(transitive)
+ Addedzod@3.24.2(transitive)
- Removed@babel/compat-data@7.26.5(transitive)
- Removed@babel/core@7.26.7(transitive)
- Removed@babel/generator@7.26.5(transitive)
- Removed@babel/parser@7.26.7(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.26.7(transitive)
- Removed@babel/types@7.26.7(transitive)
- Removed@eslint/js@9.19.0(transitive)
- Removedcaniuse-lite@1.0.30001697(transitive)
- Removedelectron-to-chromium@1.5.92(transitive)
- Removedeslint@9.19.0(transitive)
- Removedhermes-estree@0.20.1(transitive)
- Removedhermes-parser@0.20.1(transitive)
- Removedzod@3.24.1(transitive)
Updatedhermes-parser@^0.25.1