eslint-plugin-react-refresh
Advanced tools
Comparing version 0.4.15 to 0.4.16
44
index.js
@@ -23,3 +23,5 @@ "use strict"; | ||
__export(src_exports, { | ||
default: () => src_default | ||
configs: () => configs, | ||
default: () => src_default, | ||
rules: () => rules | ||
}); | ||
@@ -250,24 +252,26 @@ module.exports = __toCommonJS(src_exports); | ||
// src/index.ts | ||
var plugin = { | ||
rules: { | ||
"only-export-components": onlyExportComponents | ||
} | ||
var rules = { | ||
"only-export-components": onlyExportComponents | ||
}; | ||
var src_default = { | ||
rules: plugin.rules, | ||
configs: { | ||
recommended: { | ||
plugins: { "react-refresh": plugin }, | ||
rules: { "react-refresh/only-export-components": "error" } | ||
}, | ||
vite: { | ||
plugins: { "react-refresh": plugin }, | ||
rules: { | ||
"react-refresh/only-export-components": [ | ||
"error", | ||
{ allowConstantExport: true } | ||
] | ||
} | ||
var plugin = { rules }; | ||
var configs = { | ||
recommended: { | ||
plugins: { "react-refresh": plugin }, | ||
rules: { "react-refresh/only-export-components": "error" } | ||
}, | ||
vite: { | ||
plugins: { "react-refresh": plugin }, | ||
rules: { | ||
"react-refresh/only-export-components": [ | ||
"error", | ||
{ allowConstantExport: true } | ||
] | ||
} | ||
} | ||
}; | ||
var src_default = { rules, configs }; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
configs, | ||
rules | ||
}); |
{ | ||
"name": "eslint-plugin-react-refresh", | ||
"description": "Validate that your components can safely be updated with Fast Refresh", | ||
"version": "0.4.15", | ||
"version": "0.4.16", | ||
"type": "commonjs", | ||
@@ -6,0 +6,0 @@ "author": "Arnaud Barré (https://github.com/ArnaudBarre)", |
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
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
18161
284