We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618965c commit b14a193Copy full SHA for b14a193
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "eslint-plugin-react-you-might-not-need-an-effect",
3
- "version": "0.0.42",
+ "version": "0.0.43",
4
"description": "ESLint rule to warn against unnecessary React useEffect hooks.",
5
"author": "Nick van Dyke",
6
"license": "MIT",
src/index.cjs
@@ -1,7 +1,4 @@
-const { name, rule } = require("./rule.js");
-
-module.exports = {
- rules: {
- [name]: rule,
- },
7
-};
+// `build.js` will bundle everything into CJS.
+// Would be nice to have it use `index.js` directly, but then `esbuild` doesn't
+// seem capable of structuring the CJS export the way ESLint expects.
+module.exports = require("./index.js").default;
0 commit comments