![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
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.