eslint-plugin-react-naming-convention 2.5.1-beta.5 → 2.5.1-beta.7

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 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ const rules = {
40
40
  //#endregion
41
41
  //#region package.json
42
42
  var name = "eslint-plugin-react-naming-convention";
43
- var version = "2.5.1-beta.5";
43
+ var version = "2.5.1-beta.7";
44
44
 
45
45
  //#endregion
46
46
  //#region src/utils/create-rule.ts
@@ -384,6 +384,7 @@ function create$1(context) {
384
384
  if (!context.sourceCode.text.includes("useRef")) return {};
385
385
  return { CallExpression(node) {
386
386
  if (!isUseRefCall(node)) return;
387
+ if (AST.getUnderlyingExpression(node.parent).type === AST_NODE_TYPES.MemberExpression) return;
387
388
  const id = getInstanceId(node);
388
389
  if (id == null) return;
389
390
  const name$2 = match(id).with({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "2.5.1-beta.5",
3
+ "version": "2.5.1-beta.7",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -44,16 +44,16 @@
44
44
  "@typescript-eslint/utils": "^8.51.0",
45
45
  "string-ts": "^2.3.1",
46
46
  "ts-pattern": "^5.9.0",
47
- "@eslint-react/ast": "2.5.1-beta.5",
48
- "@eslint-react/eff": "2.5.1-beta.5",
49
- "@eslint-react/shared": "2.5.1-beta.5",
50
- "@eslint-react/core": "2.5.1-beta.5",
51
- "@eslint-react/var": "2.5.1-beta.5"
47
+ "@eslint-react/ast": "2.5.1-beta.7",
48
+ "@eslint-react/eff": "2.5.1-beta.7",
49
+ "@eslint-react/core": "2.5.1-beta.7",
50
+ "@eslint-react/var": "2.5.1-beta.7",
51
+ "@eslint-react/shared": "2.5.1-beta.7"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "^19.2.7",
55
55
  "@types/react-dom": "^19.2.3",
56
- "tsdown": "^0.19.0-beta.1",
56
+ "tsdown": "^0.19.0-beta.2",
57
57
  "@local/configs": "0.0.0"
58
58
  },
59
59
  "peerDependencies": {