oxlint-plugin-react-doctor 0.4.1 → 0.4.2-dev.b4b79ad

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27868,6 +27868,7 @@ const rnListCallbackPerRow = defineRule({
27868
27868
  tags: ["test-noise"],
27869
27869
  requires: ["react-native"],
27870
27870
  severity: "warn",
27871
+ disabledBy: ["react-compiler"],
27871
27872
  recommendation: "Move the handler out with useCallback at list scope and pass the row id as a prop. Then memo() rows skip redrawing when their data has not changed.",
27872
27873
  create: (context) => {
27873
27874
  const inspect = (node) => {
@@ -28304,6 +28305,7 @@ const rnNoInlineFlatlistRenderitem = defineRule({
28304
28305
  tags: ["test-noise"],
28305
28306
  requires: ["react-native"],
28306
28307
  severity: "warn",
28308
+ disabledBy: ["react-compiler"],
28307
28309
  recommendation: "Move renderItem to a named function or wrap it in useCallback so it is not rebuilt every time the screen redraws.",
28308
28310
  create: (context) => ({ JSXAttribute(node) {
28309
28311
  if (!isNodeOfType(node.name, "JSXIdentifier") || node.name.name !== "renderItem") return;
@@ -28328,6 +28330,7 @@ const rnNoInlineObjectInListItem = defineRule({
28328
28330
  tags: ["test-noise"],
28329
28331
  requires: ["react-native"],
28330
28332
  severity: "warn",
28333
+ disabledBy: ["react-compiler"],
28331
28334
  recommendation: "Move style and object props out of renderItem (StyleSheet.create, useMemo at list scope, or pass primitives) so memo() rows stop redrawing when their data has not changed.",
28332
28335
  create: (context) => {
28333
28336
  const renderPropStack = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-plugin-react-doctor",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-dev.b4b79ad",
4
4
  "description": "oxlint plugin for React Doctor: diagnose React codebases for security, performance, correctness, accessibility, bundle-size, and architecture issues",
5
5
  "keywords": [
6
6
  "accessibility",