eslint-plugin-react-refresh
Advanced tools
Comparing version 0.4.4 to 0.4.5
{ | ||
"name": "eslint-plugin-react-refresh", | ||
"description": "Validate that your components can safely be updated with fast refresh", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"author": "Arnaud Barré (https://github.com/ArnaudBarre)", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -33,2 +33,20 @@ # eslint-plugin-react-refresh [![npm](https://img.shields.io/npm/v/eslint-plugin-react-refresh)](https://www.npmjs.com/package/eslint-plugin-react-refresh) | ||
### Flat config | ||
```js | ||
import reactRefresh from "eslint-plugin-react-refresh"; | ||
export default [ | ||
{ | ||
// in main config for TSX/JSX source files | ||
plugins: { | ||
"react-refresh": reactRefresh, | ||
}, | ||
rules: { | ||
"react-refresh/only-export-components": "warn", | ||
}, | ||
}, | ||
]; | ||
``` | ||
## Fail | ||
@@ -35,0 +53,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
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
143
13547
221