eslint-plugin-react-x 1.26.0-next.2 → 1.26.0-next.4

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
@@ -42,7 +42,7 @@ var ts__default = /*#__PURE__*/_interopDefault(ts);
42
42
 
43
43
  // package.json
44
44
  var name = "eslint-plugin-react-x";
45
- var version = "1.26.0-next.2";
45
+ var version = "1.26.0-next.4";
46
46
  var createRule = shared.createRuleForPlugin("x");
47
47
 
48
48
  // src/utils/get-associated-tokens.ts
@@ -2888,11 +2888,6 @@ var no_use_context_default = createRule({
2888
2888
  if (specifier.imported.name === "useContext") {
2889
2889
  if (specifier.local.name !== "useContext") {
2890
2890
  useContextAlias.add(specifier.local.name);
2891
- context.report({
2892
- messageId: "noUseContext",
2893
- node: specifier
2894
- });
2895
- return;
2896
2891
  }
2897
2892
  context.report({
2898
2893
  messageId: "noUseContext",
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import { getTypeImmutability, isUnknown, isImmutable, isReadonlyShallow, isReado
15
15
 
16
16
  // package.json
17
17
  var name = "eslint-plugin-react-x";
18
- var version = "1.26.0-next.2";
18
+ var version = "1.26.0-next.4";
19
19
  var createRule = createRuleForPlugin("x");
20
20
 
21
21
  // src/utils/get-associated-tokens.ts
@@ -2861,11 +2861,6 @@ var no_use_context_default = createRule({
2861
2861
  if (specifier.imported.name === "useContext") {
2862
2862
  if (specifier.local.name !== "useContext") {
2863
2863
  useContextAlias.add(specifier.local.name);
2864
- context.report({
2865
- messageId: "noUseContext",
2866
- node: specifier
2867
- });
2868
- return;
2869
2864
  }
2870
2865
  context.report({
2871
2866
  messageId: "noUseContext",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "1.26.0-next.2",
3
+ "version": "1.26.0-next.4",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -48,12 +48,12 @@
48
48
  "is-immutable-type": "^5.0.1",
49
49
  "string-ts": "^2.2.0",
50
50
  "ts-pattern": "^5.6.2",
51
- "@eslint-react/ast": "1.26.0-next.2",
52
- "@eslint-react/core": "1.26.0-next.2",
53
- "@eslint-react/eff": "1.26.0-next.2",
54
- "@eslint-react/jsx": "1.26.0-next.2",
55
- "@eslint-react/var": "1.26.0-next.2",
56
- "@eslint-react/shared": "1.26.0-next.2"
51
+ "@eslint-react/ast": "1.26.0-next.4",
52
+ "@eslint-react/core": "1.26.0-next.4",
53
+ "@eslint-react/eff": "1.26.0-next.4",
54
+ "@eslint-react/jsx": "1.26.0-next.4",
55
+ "@eslint-react/var": "1.26.0-next.4",
56
+ "@eslint-react/shared": "1.26.0-next.4"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/react": "^19.0.8",