eslint-plugin-react-refresh
Advanced tools
Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "eslint-plugin-react-refresh", | ||
"description": "Validate that your components can safely be updated with fast refresh", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"author": "Arnaud Barré (https://github.com/ArnaudBarre)", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -86,2 +86,17 @@ # eslint-plugin-react-refresh [![npm](https://img.shields.io/npm/v/eslint-plugin-react-refresh)](https://www.npmjs.com/package/eslint-plugin-react-refresh) | ||
### allowExportNames <small>(v0.4.4)</small> | ||
If you use a framework that handles HMR of some specific exports, you can use this option to avoid warning for them. | ||
Example for [Remix](https://remix.run/docs/en/main/other-api/dev#:~:text=React%20Fast%20Refresh,-can%20only%20handle): | ||
```json | ||
{ | ||
"react-refresh/only-export-components": [ | ||
"warn", | ||
{ "allowExportNames": ["meta", "links", "headers", "loader", "action"] } | ||
] | ||
} | ||
``` | ||
### allowConstantExport <small>(v0.4.0)</small> | ||
@@ -88,0 +103,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
448370
10668
125
1