GitHub
github.com › ArnaudBarre › eslint-plugin-react-refresh
GitHub - ArnaudBarre/eslint-plugin-react-refresh: Validate that your components can safely be updated with Fast Refresh · GitHub
This plugin provides a single rule, react-refresh/only-export-components. There are multiple ways to enable it. import { defineConfig } from "eslint/config"; import { reactRefresh } from "eslint-plugin-react-refresh"; export default defineConfig( ...
Author ArnaudBarre
GitHub
github.com › ArnaudBarre › eslint-plugin-react-refresh › releases
Releases · ArnaudBarre/eslint-plugin-react-refresh
import { defineConfig } from "eslint/config"; import { reactRefresh } from "eslint-plugin-react-refresh"; export default defineConfig({ files: ["**/*.ts", "**/*.tsx"], plugins: { // other plugins "react-refresh": reactRefresh.plugin, }, rules: { // other rules "react-refresh/only-export-components": [ "warn", { extraHOCs: ["someLibHOC"] }, ], }, });
Author ArnaudBarre
npm
npmjs.com › package › eslint-plugin-react-refresh
eslint-plugin-react-refresh - npm
npm i eslint-plugin-react-refresh · github.com/ArnaudBarre/eslint-plugin-react-refresh · github.com/ArnaudBarre/eslint-plugin-react-refresh#readme · 16,853,181 · 0.5.2 · MIT · 21.4 kB · 5 · 15 days ago · arnaud-barre · Analyze security with SocketCheck bundle sizeView package healthExplore dependencies ·
» npm install eslint-plugin-react-refresh
Published Feb 23, 2026
Version 0.5.2
Author Arnaud Barré
GitHub
github.com › ArnaudBarre › eslint-plugin-react-refresh › blob › main › CHANGELOG.md
eslint-plugin-react-refresh/CHANGELOG.md at main · ArnaudBarre/eslint-plugin-react-refresh
Validate that your components can safely be updated with Fast Refresh - eslint-plugin-react-refresh/CHANGELOG.md at main · ArnaudBarre/eslint-plugin-react-refresh
Author ArnaudBarre
GitHub
github.com › ArnaudBarre › eslint-plugin-react-refresh › actions
Workflow runs · ArnaudBarre/eslint-plugin-react-refresh
Validate that your components can safely be updated with Fast Refresh - Workflow runs · ArnaudBarre/eslint-plugin-react-refresh
Author ArnaudBarre
GitHub
github.com › reactjs › react.dev › issues › 7407
reactjs/react.dev
January 5, 2025 - From what I've gathered, it's recommended that any file exporting a React component should not export anything else (e.g., utility functions, data) to ensure Fast Refresh functions properly, and I found eslint-plugin-react-refresh which exists to help enforce this rule.
Published Jan 05, 2025
UNPKG
app.unpkg.com › eslint-plugin-react-refresh@0.3.4 › files › README.md
eslint-plugin-react-refresh
Validate that your components can safely be updated with fast refresh · github.com/ArnaudBarre/eslint-plugin-react-refresh · ArnaudBarre/eslint-plugin-react-refresh · 100 lines (73 loc) • 2.45 kB · Markdown · View Raw · 1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 ·
GitHub
github.com › jsx-eslint › eslint-plugin-react
GitHub - jsx-eslint/eslint-plugin-react: React-specific linting rules for ESLint · GitHub
React-specific linting rules for ESLint. Contribute to jsx-eslint/eslint-plugin-react development by creating an account on GitHub.
Author jsx-eslint
GitHub
github.com › ArnaudBarre › eslint-plugin-react-refresh › issues
ArnaudBarre/eslint-plugin-react-refresh
Validate that your components can safely be updated with Fast Refresh - ArnaudBarre/eslint-plugin-react-refresh
Author ArnaudBarre
GitHub
github.com › biomejs › biome › discussions › 2548
Implement functionality equivalent to `eslint-plugin-react-refresh` · biomejs/biome · Discussion #2548
For more detailed information, please refer to the documentation of each bundler. ... eslint-plugin-react-refresh is a plugin also linked from @vitejs/plugin-react that defines rules to make react-refresh function properly.
Author biomejs
GitHub
github.com › biomejs › biome › issues › 3560
📎 Implement `eslint-plugin-react-refresh` · Issue #3560 · biomejs/biome
June 30, 2024 - Rule react-refresh/only-export-components is too large. ... What we really want is to prohibit anonymous default exports. (like import/no-anonymous-default-export) I plan to implement it. feat(lint): add rule useComponentExportOnlyModules #3576 · The following are not included in the current lint rules, but they are desired for future implementation. ... Since PascalCase is used to identify React components, we would like something equivalent to react/jsx-pascal-case.
Published Aug 01, 2024
GitHub
github.com › vitejs › vite › issues › 2663
There is a conflict between react-refresh and eslint · Issue #2663 · vitejs/vite
February 20, 2021 - plugins: [ new ReactRefreshPlugin(), { ...eslint({ fix: true, include: "**/*.(js|ts|jsx|tsx)", exclude: "node_modules/**", throwOnError: true, throwOnWarning: true, }), enforce: "pre", }, ], I think there may be a bug. It can be reproduced in the following repository. https://github.com/careyke/hello-vite-react-template · When you reproduce the error, please swap the order of react-refresh and @rollup/plugin-eslint in vite.config.js
Published Mar 24, 2021
GitHub
github.com › shadcn-ui › ui › issues › 1534
Export pattern causes warning from `eslint-plugin-react-refresh` · Issue #1534 · shadcn-ui/ui
September 16, 2023 - Also, although documentation about "Fast Refresh" is a bit scant unfortunately, some resources on it also say that each export requires its own export statement... https://github.com/ArnaudBarre/eslint-plugin-react-refresh
Published Sep 16, 2023
CodeSandbox
codesandbox.io › examples › package › eslint-plugin-react-refresh
eslint-plugin-react-refresh examples - CodeSandbox
AboutValidate that your components can safely be updated with Fast Refresh7,920,229Weekly Downloads · Latest version0.4.26 · LicenseMIT · External Links · github.com/ArnaudBarre/eslint-plugin-react-refresh#readme · github.com/ArnaudBarre/eslint-plugin-react-refresh ·
GitHub
github.com › ArnaudBarre › eslint-plugin-react-refresh › issues › 31
How to use in flat config · Issue #31 · ArnaudBarre/eslint-plugin-react-refresh
August 10, 2023 - Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert · {{ message }} ArnaudBarre / eslint-plugin-react-refresh Public ·
Published Nov 14, 2023
npm
npmjs.com › package › @types › eslint-plugin-react-refresh
@types/eslint-plugin-react-refresh - npm
This package contains type definitions for eslint-plugin-react-refresh (https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme).
» npm install @types/eslint-plugin-react-refresh
Published Nov 20, 2024
Version 0.4.0
Reddit
reddit.com › r/reactjs › is eslint-plugin-react is unnecessary if i use @typescript-eslint/eslint-plugin and eslint-plugin-react-hooks?
r/reactjs on Reddit: Is eslint-plugin-react is unnecessary if i use @typescript-eslint/eslint-plugin and eslint-plugin-react-hooks?
November 30, 2023 -
it seems that the following plugins are sufficient for my usage of React and Typescript.
"@typescript-eslint/eslint-plugin": "^5.59.9","@typescript-eslint/parser": "^5.59.9","eslint-plugin-react-hooks": "^4.6.0","eslint-plugin-react-refresh": "^0.4.3",
I'm unsure if eslint-plugin-react provides any useful rules.
Could you provide some examples? Thanks.