![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenanceβdevelopers should switch to Vite or other modern alternatives.
eslint-plugin-react-web-api
Advanced tools
ESLint React's ESLint plugin for interacting with Web APIs
ESLint React's ESLint plugin for React to interact with Web APIs.
# npm
npm install --save-dev eslint-plugin-react-web-api
Add the plugin to your eslint.config.js
:
// @ts-check
import js from "@eslint/js";
import reactWebAPI from "eslint-plugin-react-web-api";
export default [
js.configs.recommended,
{
files: ["**/*.{ts,tsx}"],
plugins: [
"react-web-api": reactWebAPI,
rules: {
// react-web-api recommended rules
"react-web-api/no-leaked-event-listener": "error",
}
],
},
];
Rule | Description | πΌ | π | |
---|---|---|---|---|
no-leaked-timeout | Prevents leaked setTimeout | βοΈ | π§ | |
no-leaked-interval | Prevents leaked setInterval | βοΈ | π§ | |
no-leaked-idle-callback | Prevents leaked requestIdleCallback | βοΈ | π§ | |
no-leaked-animation-frame | Prevents leaked requestAnimationFrame | βοΈ | π§ | |
no-leaked-event-source | Prevents leaked EventSource | βοΈ | π§ | |
no-leaked-event-listener | Prevents leaked addEventListener | βοΈ | ||
no-leaked-resize-observer | Prevents leaked ResizeObserver | βοΈ | π§ | |
no-leaked-intersection-observer | Prevents leaked IntersectionObserver | βοΈ | π§ | |
no-leaked-mutation-observer | Prevents leaked MutationObserver | βοΈ | π§ | |
no-leaked-performance-observer | Prevents leaked PerformanceObserver | βοΈ | π§ | |
no-leaked-websocket | Prevents leaked WebSocket | βοΈ | π§ | |
no-leaked-broadcast-channel | Prevents leaked BroadcastChannel | βοΈ | π§ | |
no-leaked-geolocation | Prevents leaked Geolocation.watchPosition() | βοΈ | π§ | |
no-leaked-absolute-orientation-sensor | Prevents leaked AbsoluteOrientationSensor | βοΈ | π§ | |
no-leaked-relative-accelerometer | Prevents leaked Accelerometer | βοΈ | π§ | |
no-leaked-ambient-light-sensor | Prevents leaked AmbientLightSensor | βοΈ | π§ | |
no-leaked-gravity-sensor | Prevents leaked GravitySensor | βοΈ | π§ | |
no-leaked-gyroscope | Prevents leaked Gyroscope | βοΈ | π§ | |
no-leaked-linear-acceleration-sensor | Prevents leaked LinearAccelerationSensor | βοΈ | π§ | |
no-leaked-magnetometer | Prevents leaked Magnetometer | βοΈ | π§ | |
no-leaked-orientation-sensor | Prevents leaked OrientationSensor | βοΈ | π§ |
FAQs
ESLint React's ESLint plugin for interacting with Web APIs
The npm package eslint-plugin-react-web-api receives a total of 155,758 weekly downloads. As such, eslint-plugin-react-web-api popularity was classified as popular.
We found that eslint-plugin-react-web-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenanceβdevelopers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.