{"plugins": ["react-refresh"],"rules": {"react-refresh/only-export-components":"warn"} } Flat config importreactRefreshfrom"eslint-plugin-react-refresh";exportdefault[{// in main config for TSX/JSX source filesplugins:{"react-refresh":reactRefresh,},rules:{"react-refresh/only-export-compo...
qdrawmentioned this on Sep 14, 2024 [Snyk] Upgrade: , , core-js, eslint-plugin-react-refresh, react-router-dom, ts-jest, vite qdraw/starsky#1717 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment ...
This plugin provides a single rule, react-refresh/only-export-components. There are multiple ways to enable it.Recommended configimport reactRefresh from "eslint-plugin-react-refresh"; export default [ /* Main config */ reactRefresh.configs.recommended, ];...
importreactRefreshfrom"eslint-plugin-react-refresh";exportdefault[/* Main config */reactRefresh.configs.vite, ]; Without config importreactRefreshfrom"eslint-plugin-react-refresh";exportdefault[ {// in main config for TSX/JSX source filesplugins: {"react-refresh": reactRefresh, },rules: {"rea...
Validate that your components can safely be updated with fast refresh - Release v0.4.12 · ArnaudBarre/eslint-plugin-react-refresh
In typescript-eslint@v8.10.0, they added support for ExportNamedDeclarations having children string literals, due to the 5.6 change of arbitrary module identifiers. These probably aren't supported by HMR anyway, so should they just throw an error? Right now when building for the v8.10.0, ...