eslint-plugin-react-naming-convention 2.0.0-next.175 → 2.0.0-next.177

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 +3 -4
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ const rules = { "react-naming-convention/context-name": "warn" };
31
31
  //#endregion
32
32
  //#region package.json
33
33
  var name = "eslint-plugin-react-naming-convention";
34
- var version = "2.0.0-next.175";
34
+ var version = "2.0.0-next.177";
35
35
 
36
36
  //#endregion
37
37
  //#region src/utils/create-rule.ts
@@ -412,11 +412,10 @@ function create(context) {
412
412
  return;
413
413
  }
414
414
  const valueName = match(value).with({ type: AST_NODE_TYPES.Identifier }, ({ name: name$2 }) => snakeCase(name$2)).with({ type: AST_NODE_TYPES.ObjectPattern }, ({ properties }) => {
415
- const values = properties.reduce((acc, prop) => {
415
+ return properties.reduce((acc, prop) => {
416
416
  if (prop.type === AST_NODE_TYPES.Property && prop.key.type === AST_NODE_TYPES.Identifier) return [...acc, prop.key.name];
417
417
  return acc;
418
- }, []);
419
- return values.join("_");
418
+ }, []).join("_");
420
419
  }).otherwise(() => null);
421
420
  if (valueName == null) {
422
421
  context.report({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "2.0.0-next.175",
3
+ "version": "2.0.0-next.177",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -35,23 +35,23 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "^8.42.0",
39
- "@typescript-eslint/type-utils": "^8.42.0",
40
- "@typescript-eslint/types": "^8.42.0",
41
- "@typescript-eslint/utils": "^8.42.0",
38
+ "@typescript-eslint/scope-manager": "^8.43.0",
39
+ "@typescript-eslint/type-utils": "^8.43.0",
40
+ "@typescript-eslint/types": "^8.43.0",
41
+ "@typescript-eslint/utils": "^8.43.0",
42
42
  "string-ts": "^2.2.1",
43
43
  "ts-pattern": "^5.8.0",
44
- "@eslint-react/ast": "2.0.0-next.175",
45
- "@eslint-react/core": "2.0.0-next.175",
46
- "@eslint-react/eff": "2.0.0-next.175",
47
- "@eslint-react/kit": "2.0.0-next.175",
48
- "@eslint-react/shared": "2.0.0-next.175",
49
- "@eslint-react/var": "2.0.0-next.175"
44
+ "@eslint-react/ast": "2.0.0-next.177",
45
+ "@eslint-react/core": "2.0.0-next.177",
46
+ "@eslint-react/eff": "2.0.0-next.177",
47
+ "@eslint-react/kit": "2.0.0-next.177",
48
+ "@eslint-react/shared": "2.0.0-next.177",
49
+ "@eslint-react/var": "2.0.0-next.177"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "^19.1.12",
53
53
  "@types/react-dom": "^19.1.9",
54
- "tsdown": "^0.14.2",
54
+ "tsdown": "^0.15.0",
55
55
  "@local/configs": "0.0.0"
56
56
  },
57
57
  "peerDependencies": {