eslint-plugin-react-x 2.2.4-next.5 → 2.2.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ var __export = (all) => {
28
28
  //#endregion
29
29
  //#region package.json
30
30
  var name$6 = "eslint-plugin-react-x";
31
- var version = "2.2.4-next.5";
31
+ var version = "2.2.4";
32
32
 
33
33
  //#endregion
34
34
  //#region src/utils/create-rule.ts
@@ -1070,7 +1070,7 @@ function create$39(context) {
1070
1070
  const contextFullName = parts.join(".");
1071
1071
  const contextSelfName = parts.pop();
1072
1072
  if (selfName !== "Provider") return;
1073
- if (contextSelfName == null) return;
1073
+ if (contextSelfName == null || !contextSelfName.endsWith("Context")) return;
1074
1074
  context.report({
1075
1075
  messageId: "noContextProvider",
1076
1076
  node,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "2.2.4-next.5",
3
+ "version": "2.2.4",
4
4
  "description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -45,17 +45,17 @@
45
45
  "is-immutable-type": "^5.0.1",
46
46
  "string-ts": "^2.2.1",
47
47
  "ts-api-utils": "^2.1.0",
48
- "ts-pattern": "^5.8.0",
49
- "@eslint-react/ast": "2.2.4-next.5",
50
- "@eslint-react/eff": "2.2.4-next.5",
51
- "@eslint-react/shared": "2.2.4-next.5",
52
- "@eslint-react/var": "2.2.4-next.5",
53
- "@eslint-react/core": "2.2.4-next.5"
48
+ "ts-pattern": "^5.9.0",
49
+ "@eslint-react/ast": "2.2.4",
50
+ "@eslint-react/core": "2.2.4",
51
+ "@eslint-react/shared": "2.2.4",
52
+ "@eslint-react/eff": "2.2.4",
53
+ "@eslint-react/var": "2.2.4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/react": "^19.2.2",
57
57
  "@types/react-dom": "^19.2.2",
58
- "tsdown": "^0.15.9",
58
+ "tsdown": "^0.15.10",
59
59
  "@local/configs": "0.0.0"
60
60
  },
61
61
  "peerDependencies": {