Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
eslint-plugin-react-refresh
Advanced tools
Validate that your components can safely be updated with fast refresh
Validate that your components can safely be updated with fast refresh.
⚠️ To avoid false positive, this plugin is only applied on tsx
& jsx
files ⚠️
Like the implementation for vite, the plugin rely on naming conventions (i.e. use ). This is why there is some limitations:
export *
are not supported and will be reported as an errorexport default function() {}
)// eslint-disable-next-line react-refresh/eslint-plugin-react-refresh
export const CMS = () => <></>;
npm i -D eslint-plugin-react-refresh
{
"plugins": ["react-refresh"],
"rules": {
"react-refresh/only-export-components": "warn"
}
}
export const foo = () => {};
export const Bar = () => <></>;
export const CONSTANT = 3;
export const Foo = () => <></>;
export default function () {}
export * from "./foo";
export default function Foo() {
return <></>;
}
const foo = () => {};
export const Bar = () => <></>;
0.2.0
FAQs
Validate that your components can safely be updated with fast refresh
The npm package eslint-plugin-react-refresh receives a total of 1,244,464 weekly downloads. As such, eslint-plugin-react-refresh popularity was classified as popular.
We found that eslint-plugin-react-refresh 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.