eslint-plugin-react-naming-convention 1.28.1-next.5 → 1.28.1-next.6

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
@@ -8,7 +8,6 @@ var shared = require('@eslint-react/shared');
8
8
  var tsPattern = require('ts-pattern');
9
9
  var path = require('path');
10
10
  var stringTs = require('string-ts');
11
- var VAR = require('@eslint-react/var');
12
11
  var types = require('@typescript-eslint/types');
13
12
 
14
13
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -34,7 +33,6 @@ function _interopNamespace(e) {
34
33
  var AST__namespace = /*#__PURE__*/_interopNamespace(AST);
35
34
  var JSX__namespace = /*#__PURE__*/_interopNamespace(JSX);
36
35
  var path__default = /*#__PURE__*/_interopDefault(path);
37
- var VAR__namespace = /*#__PURE__*/_interopNamespace(VAR);
38
36
 
39
37
  var __defProp = Object.defineProperty;
40
38
  var __export = (target, all) => {
@@ -53,7 +51,7 @@ var rules = {};
53
51
 
54
52
  // package.json
55
53
  var name2 = "eslint-plugin-react-naming-convention";
56
- var version = "1.28.1-next.5";
54
+ var version = "1.28.1-next.6";
57
55
  var createRule = shared.createRuleForPlugin("naming-convention");
58
56
 
59
57
  // src/rules/component-name.ts
@@ -412,7 +410,7 @@ var use_state_default = createRule({
412
410
  if (node.parent.type !== types.AST_NODE_TYPES.VariableDeclarator) {
413
411
  context.report({ messageId: "badValueOrSetterName", node });
414
412
  }
415
- const id = VAR__namespace.getVariableId(node);
413
+ const id = core.getInstanceId(node);
416
414
  if (id?.type !== types.AST_NODE_TYPES.ArrayPattern) {
417
415
  context.report({ messageId: "badValueOrSetterName", node });
418
416
  return;
package/dist/index.mjs CHANGED
@@ -1,12 +1,11 @@
1
1
  import * as AST from '@eslint-react/ast';
2
- import { useComponentCollector, useComponentCollectorLegacy } from '@eslint-react/core';
2
+ import { useComponentCollector, useComponentCollectorLegacy, getInstanceId } from '@eslint-react/core';
3
3
  import { isObject, _ } from '@eslint-react/eff';
4
4
  import * as JSX from '@eslint-react/jsx';
5
5
  import { createRuleForPlugin, RE_CONSTANT_CASE, RE_PASCAL_CASE, RE_CAMEL_CASE, RE_KEBAB_CASE, RE_SNAKE_CASE } from '@eslint-react/shared';
6
6
  import { match } from 'ts-pattern';
7
7
  import path from 'node:path';
8
8
  import { snakeCase, pascalCase, camelCase, kebabCase } from 'string-ts';
9
- import * as VAR from '@eslint-react/var';
10
9
  import { AST_NODE_TYPES } from '@typescript-eslint/types';
11
10
 
12
11
  var __defProp = Object.defineProperty;
@@ -26,7 +25,7 @@ var rules = {};
26
25
 
27
26
  // package.json
28
27
  var name2 = "eslint-plugin-react-naming-convention";
29
- var version = "1.28.1-next.5";
28
+ var version = "1.28.1-next.6";
30
29
  var createRule = createRuleForPlugin("naming-convention");
31
30
 
32
31
  // src/rules/component-name.ts
@@ -385,7 +384,7 @@ var use_state_default = createRule({
385
384
  if (node.parent.type !== AST_NODE_TYPES.VariableDeclarator) {
386
385
  context.report({ messageId: "badValueOrSetterName", node });
387
386
  }
388
- const id = VAR.getVariableId(node);
387
+ const id = getInstanceId(node);
389
388
  if (id?.type !== AST_NODE_TYPES.ArrayPattern) {
390
389
  context.report({ messageId: "badValueOrSetterName", node });
391
390
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "1.28.1-next.5",
3
+ "version": "1.28.1-next.6",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -49,12 +49,11 @@
49
49
  "@typescript-eslint/utils": "^8.25.0",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.6.2",
52
- "@eslint-react/ast": "1.28.1-next.5",
53
- "@eslint-react/core": "1.28.1-next.5",
54
- "@eslint-react/jsx": "1.28.1-next.5",
55
- "@eslint-react/var": "1.28.1-next.5",
56
- "@eslint-react/shared": "1.28.1-next.5",
57
- "@eslint-react/eff": "1.28.1-next.5"
52
+ "@eslint-react/ast": "1.28.1-next.6",
53
+ "@eslint-react/core": "1.28.1-next.6",
54
+ "@eslint-react/jsx": "1.28.1-next.6",
55
+ "@eslint-react/shared": "1.28.1-next.6",
56
+ "@eslint-react/eff": "1.28.1-next.6"
58
57
  },
59
58
  "devDependencies": {
60
59
  "@types/react": "^19.0.10",