eslint-plugin-react-debug 1.20.2-next.2 → 1.20.2-next.5

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.
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@eslint-react/core');
4
- var tools = require('@eslint-react/tools');
4
+ var eff = require('@eslint-react/eff');
5
5
  var shared = require('@eslint-react/shared');
6
6
  var utils = require('@typescript-eslint/utils');
7
7
 
8
8
  // package.json
9
9
  var name = "eslint-plugin-react-debug";
10
- var version = "1.20.2-next.2";
10
+ var version = "1.20.2-next.5";
11
11
  var createRule = shared.createRuleForPlugin("debug");
12
12
 
13
13
  // src/rules/class-component.ts
@@ -40,7 +40,7 @@ var class_component_default = createRule({
40
40
  messageId: "classComponent",
41
41
  node: component,
42
42
  data: {
43
- name: tools.O.getOrElse(tools.F.constant("anonymous"))(name2)
43
+ name: eff.O.getOrElse(eff.F.constant("anonymous"))(name2)
44
44
  }
45
45
  });
46
46
  }
@@ -78,7 +78,7 @@ var function_component_default = createRule({
78
78
  messageId: "functionComponent",
79
79
  node: node2,
80
80
  data: {
81
- name: tools.O.getOrElse(name2, tools.F.constant("anonymous")),
81
+ name: eff.O.getOrElse(name2, eff.F.constant("anonymous")),
82
82
  forwardRef: Boolean(flag & core.ERFunctionComponentFlag.ForwardRef),
83
83
  hookCalls: hookCalls.length,
84
84
  memo: Boolean(flag & core.ERFunctionComponentFlag.Memo)
@@ -166,11 +166,11 @@ var is_from_react_default = createRule({
166
166
  }
167
167
  function getReportDescriptor(node) {
168
168
  const shouldSkipDuplicate = node.parent.type === utils.AST_NODE_TYPES.ImportSpecifier && node.parent.imported === node && node.parent.imported.name === node.parent.local.name;
169
- if (shouldSkipDuplicate) return tools.O.none();
169
+ if (shouldSkipDuplicate) return eff.O.none();
170
170
  const name2 = node.name;
171
171
  const initialScope = context.sourceCode.getScope(node);
172
- if (!isFromReact(node, initialScope)) return tools.O.none();
173
- return tools.O.some({
172
+ if (!isFromReact(node, initialScope)) return eff.O.none();
173
+ return eff.O.some({
174
174
  messageId: "isFromReact",
175
175
  node,
176
176
  data: {
@@ -181,8 +181,8 @@ var is_from_react_default = createRule({
181
181
  });
182
182
  }
183
183
  return {
184
- Identifier: tools.F.flow(getReportDescriptor, tools.O.map(context.report)),
185
- JSXIdentifier: tools.F.flow(getReportDescriptor, tools.O.map(context.report))
184
+ Identifier: eff.F.flow(getReportDescriptor, eff.O.map(context.report)),
185
+ JSXIdentifier: eff.F.flow(getReportDescriptor, eff.O.map(context.report))
186
186
  };
187
187
  },
188
188
  defaultOptions: []
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import { useComponentCollectorLegacy, useComponentCollector, ERFunctionComponentFlag, useHookCollector, isInitializedFromReact } from '@eslint-react/core';
2
- import { O, F } from '@eslint-react/tools';
2
+ import { O, F } from '@eslint-react/eff';
3
3
  import { createRuleForPlugin, decodeSettings } from '@eslint-react/shared';
4
4
  import { AST_NODE_TYPES } from '@typescript-eslint/utils';
5
5
 
6
6
  // package.json
7
7
  var name = "eslint-plugin-react-debug";
8
- var version = "1.20.2-next.2";
8
+ var version = "1.20.2-next.5";
9
9
  var createRule = createRuleForPlugin("debug");
10
10
 
11
11
  // src/rules/class-component.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-debug",
3
- "version": "1.20.2-next.2",
3
+ "version": "1.20.2-next.5",
4
4
  "description": "ESLint React's ESLint plugin for debugging related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,13 +49,13 @@
49
49
  "@typescript-eslint/utils": "^8.18.1",
50
50
  "string-ts": "^2.2.0",
51
51
  "ts-pattern": "^5.6.0",
52
- "@eslint-react/ast": "1.20.2-next.2",
53
- "@eslint-react/core": "1.20.2-next.2",
54
- "@eslint-react/jsx": "1.20.2-next.2",
55
- "@eslint-react/shared": "1.20.2-next.2",
56
- "@eslint-react/tools": "1.20.2-next.2",
57
- "@eslint-react/types": "1.20.2-next.2",
58
- "@eslint-react/var": "1.20.2-next.2"
52
+ "@eslint-react/core": "1.20.2-next.5",
53
+ "@eslint-react/ast": "1.20.2-next.5",
54
+ "@eslint-react/jsx": "1.20.2-next.5",
55
+ "@eslint-react/shared": "1.20.2-next.5",
56
+ "@eslint-react/eff": "1.20.2-next.5",
57
+ "@eslint-react/var": "1.20.2-next.5",
58
+ "@eslint-react/types": "1.20.2-next.5"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/react": "^19.0.2",