New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-react-compiler

Package Overview
Dependencies
Maintainers
4
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-compiler - npm Package Compare versions

Comparing version 0.0.0-experimental-2eea4a6-20240814 to 0.0.0-experimental-30d8a17-20250209

dist/index.js.map

13

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc