eslint-plugin-react-naming-convention 5.8.12 → 5.8.14

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 +8 -8
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ESLintUtils } from "@typescript-eslint/utils";
2
2
  import * as core from "@eslint-react/core";
3
- import { merge } from "@eslint-react/eslint";
3
+ import "@eslint-react/eslint";
4
4
  import { resolveEnclosingAssignmentTarget } from "@eslint-react/var";
5
5
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
6
6
  import { P, match } from "ts-pattern";
@@ -25,7 +25,7 @@ var __exportAll = (all, no_symbols) => {
25
25
  //#endregion
26
26
  //#region package.json
27
27
  var name$1 = "eslint-plugin-react-naming-convention";
28
- var version = "5.8.12";
28
+ var version = "5.8.14";
29
29
 
30
30
  //#endregion
31
31
  //#region src/utils/create-rule.ts
@@ -50,7 +50,7 @@ var context_name_default = createRule({
50
50
  });
51
51
  function create$2(context) {
52
52
  if (!context.sourceCode.text.includes("createContext")) return {};
53
- return merge({ CallExpression(node) {
53
+ return { CallExpression(node) {
54
54
  if (!core.isCreateContextCall(context, node)) return;
55
55
  const [id, name] = match(resolveEnclosingAssignmentTarget(node)).with({
56
56
  type: AST_NODE_TYPES.Identifier,
@@ -65,7 +65,7 @@ function create$2(context) {
65
65
  messageId: "invalidContextName",
66
66
  node: id
67
67
  });
68
- } });
68
+ } };
69
69
  }
70
70
 
71
71
  //#endregion
@@ -84,7 +84,7 @@ var id_name_default = createRule({
84
84
  });
85
85
  function create$1(context) {
86
86
  if (!context.sourceCode.text.includes("useId")) return {};
87
- return merge({ CallExpression(node) {
87
+ return { CallExpression(node) {
88
88
  if (!core.isUseIdCall(context, node)) return;
89
89
  const [id, name] = match(resolveEnclosingAssignmentTarget(node)).with({
90
90
  type: AST_NODE_TYPES.Identifier,
@@ -99,7 +99,7 @@ function create$1(context) {
99
99
  messageId: "invalidIdName",
100
100
  node: id
101
101
  });
102
- } });
102
+ } };
103
103
  }
104
104
 
105
105
  //#endregion
@@ -118,7 +118,7 @@ var ref_name_default = createRule({
118
118
  });
119
119
  function create(context) {
120
120
  if (!context.sourceCode.text.includes("useRef")) return {};
121
- return merge({ CallExpression(node) {
121
+ return { CallExpression(node) {
122
122
  if (!core.isUseRefCall(context, node)) return;
123
123
  if (Extract.unwrap(node.parent).type === AST_NODE_TYPES.MemberExpression) return;
124
124
  const [id, name] = match(resolveEnclosingAssignmentTarget(node)).with({
@@ -134,7 +134,7 @@ function create(context) {
134
134
  messageId: "invalidRefName",
135
135
  node: id
136
136
  });
137
- } });
137
+ } };
138
138
  }
139
139
 
140
140
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "5.8.12",
3
+ "version": "5.8.14",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -40,17 +40,17 @@
40
40
  "@typescript-eslint/types": "^8.60.1",
41
41
  "@typescript-eslint/utils": "^8.60.1",
42
42
  "ts-pattern": "^5.9.0",
43
- "@eslint-react/ast": "5.8.12",
44
- "@eslint-react/core": "5.8.12",
45
- "@eslint-react/var": "5.8.12",
46
- "@eslint-react/eslint": "5.8.12"
43
+ "@eslint-react/core": "5.8.14",
44
+ "@eslint-react/eslint": "5.8.14",
45
+ "@eslint-react/ast": "5.8.14",
46
+ "@eslint-react/var": "5.8.14"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/react": "^19.2.16",
49
+ "@types/react": "^19.2.17",
50
50
  "@types/react-dom": "^19.2.3",
51
51
  "dedent": "^1.7.2",
52
52
  "eslint": "^10.4.1",
53
- "tsdown": "^0.22.1",
53
+ "tsdown": "^0.22.2",
54
54
  "typescript": "6.0.3",
55
55
  "@local/configs": "0.0.0",
56
56
  "@local/eff": "0.0.0"