eslint-plugin-react-naming-convention 1.48.2-next.0 → 1.48.2

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
@@ -55,7 +55,7 @@ var rules = {
55
55
 
56
56
  // package.json
57
57
  var name2 = "eslint-plugin-react-naming-convention";
58
- var version = "1.48.2-next.0";
58
+ var version = "1.48.2";
59
59
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("naming-convention"));
60
60
 
61
61
  // src/rules/component-name.ts
@@ -130,7 +130,7 @@ function create(context) {
130
130
  const functionComponents = collector.ctx.getAllComponents(program);
131
131
  const classComponents = collectorLegacy.ctx.getAllComponents(program);
132
132
  for (const { node: component } of functionComponents.values()) {
133
- const id = AST__namespace.getFunctionIdentifier(component);
133
+ const id = AST__namespace.getFunctionId(component);
134
134
  if (id?.name == null) continue;
135
135
  const name3 = id.name;
136
136
  if (isValidName(name3, options)) return;
@@ -141,7 +141,7 @@ function create(context) {
141
141
  });
142
142
  }
143
143
  for (const { node: component } of classComponents.values()) {
144
- const id = AST__namespace.getClassIdentifier(component);
144
+ const id = AST__namespace.getClassId(component);
145
145
  if (id?.name == null) continue;
146
146
  const name3 = id.name;
147
147
  if (isValidName(name3, options)) continue;
package/dist/index.mjs CHANGED
@@ -29,7 +29,7 @@ var rules = {
29
29
 
30
30
  // package.json
31
31
  var name2 = "eslint-plugin-react-naming-convention";
32
- var version = "1.48.2-next.0";
32
+ var version = "1.48.2";
33
33
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("naming-convention"));
34
34
 
35
35
  // src/rules/component-name.ts
@@ -104,7 +104,7 @@ function create(context) {
104
104
  const functionComponents = collector.ctx.getAllComponents(program);
105
105
  const classComponents = collectorLegacy.ctx.getAllComponents(program);
106
106
  for (const { node: component } of functionComponents.values()) {
107
- const id = AST.getFunctionIdentifier(component);
107
+ const id = AST.getFunctionId(component);
108
108
  if (id?.name == null) continue;
109
109
  const name3 = id.name;
110
110
  if (isValidName(name3, options)) return;
@@ -115,7 +115,7 @@ function create(context) {
115
115
  });
116
116
  }
117
117
  for (const { node: component } of classComponents.values()) {
118
- const id = AST.getClassIdentifier(component);
118
+ const id = AST.getClassId(component);
119
119
  if (id?.name == null) continue;
120
120
  const name3 = id.name;
121
121
  if (isValidName(name3, options)) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "1.48.2-next.0",
3
+ "version": "1.48.2",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,12 +49,12 @@
49
49
  "@typescript-eslint/utils": "^8.30.1",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.7.0",
52
- "@eslint-react/ast": "1.48.2-next.0",
53
- "@eslint-react/eff": "1.48.2-next.0",
54
- "@eslint-react/shared": "1.48.2-next.0",
55
- "@eslint-react/kit": "1.48.2-next.0",
56
- "@eslint-react/var": "1.48.2-next.0",
57
- "@eslint-react/core": "1.48.2-next.0"
52
+ "@eslint-react/ast": "1.48.2",
53
+ "@eslint-react/core": "1.48.2",
54
+ "@eslint-react/eff": "1.48.2",
55
+ "@eslint-react/kit": "1.48.2",
56
+ "@eslint-react/var": "1.48.2",
57
+ "@eslint-react/shared": "1.48.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/react": "^19.1.2",