eslint-plugin-react-naming-convention 1.52.7-beta.0 → 1.52.7-beta.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.d.mts CHANGED
@@ -1,46 +1,14 @@
1
- import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
1
+ import * as _eslint_react_shared from '@eslint-react/shared';
2
2
  import { RulePreset } from '@eslint-react/kit';
3
3
 
4
- type MessageID$2 = "missingDestructuring" | "invalidSetterNaming";
5
-
6
- type MessageID$1 = "useJsxFileExtension" | "useNonJsxFileExtension";
7
-
8
- type MessageID = "filenameEmpty" | "filenameInvalid";
9
-
10
4
  declare const _default: {
11
5
  configs: {
12
6
  recommended: {
13
7
  plugins: {
14
- "react-naming-convention": {
15
- readonly meta: {
16
- readonly name: string;
17
- readonly version: string;
18
- };
19
- readonly rules: {
20
- readonly "component-name": _typescript_eslint_utils_ts_eslint.RuleModule<"invalid", readonly [("CONSTANT_CASE" | "PascalCase") | {
21
- allowAllCaps?: boolean;
22
- allowLeadingUnderscore?: boolean;
23
- allowNamespace?: boolean;
24
- excepts?: readonly string[];
25
- rule?: "CONSTANT_CASE" | "PascalCase";
26
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
27
- readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"invalid", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
28
- readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
29
- excepts?: readonly string[];
30
- extensions?: readonly string[];
31
- rule?: "PascalCase" | "camelCase" | "kebab-case" | "snake_case";
32
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
33
- readonly "filename-extension": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, readonly [("always" | "as-needed") | {
34
- allow?: "always" | "as-needed";
35
- extensions?: readonly string[];
36
- ignoreFilesWithoutCode?: boolean;
37
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
38
- readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
39
- };
40
- };
8
+ "react-naming-convention": _eslint_react_shared.CompatiblePlugin;
41
9
  };
42
- name: string;
43
- rules: RulePreset;
10
+ name?: string;
11
+ rules?: Record<string, any>;
44
12
  };
45
13
  "recommended-legacy": {
46
14
  plugins: string[];
@@ -48,30 +16,10 @@ declare const _default: {
48
16
  };
49
17
  };
50
18
  meta: {
51
- readonly name: string;
52
- readonly version: string;
53
- };
54
- rules: {
55
- readonly "component-name": _typescript_eslint_utils_ts_eslint.RuleModule<"invalid", readonly [("CONSTANT_CASE" | "PascalCase") | {
56
- allowAllCaps?: boolean;
57
- allowLeadingUnderscore?: boolean;
58
- allowNamespace?: boolean;
59
- excepts?: readonly string[];
60
- rule?: "CONSTANT_CASE" | "PascalCase";
61
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
62
- readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"invalid", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
63
- readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
64
- excepts?: readonly string[];
65
- extensions?: readonly string[];
66
- rule?: "PascalCase" | "camelCase" | "kebab-case" | "snake_case";
67
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
68
- readonly "filename-extension": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, readonly [("always" | "as-needed") | {
69
- allow?: "always" | "as-needed";
70
- extensions?: readonly string[];
71
- ignoreFilesWithoutCode?: boolean;
72
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
73
- readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
19
+ name: string;
20
+ version: string;
74
21
  };
22
+ rules: Record<string, any>;
75
23
  };
76
24
 
77
25
  export { _default as default };
package/dist/index.d.ts CHANGED
@@ -1,46 +1,14 @@
1
- import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
1
+ import * as _eslint_react_shared from '@eslint-react/shared';
2
2
  import { RulePreset } from '@eslint-react/kit';
3
3
 
4
- type MessageID$2 = "missingDestructuring" | "invalidSetterNaming";
5
-
6
- type MessageID$1 = "useJsxFileExtension" | "useNonJsxFileExtension";
7
-
8
- type MessageID = "filenameEmpty" | "filenameInvalid";
9
-
10
4
  declare const _default: {
11
5
  configs: {
12
6
  recommended: {
13
7
  plugins: {
14
- "react-naming-convention": {
15
- readonly meta: {
16
- readonly name: string;
17
- readonly version: string;
18
- };
19
- readonly rules: {
20
- readonly "component-name": _typescript_eslint_utils_ts_eslint.RuleModule<"invalid", readonly [("CONSTANT_CASE" | "PascalCase") | {
21
- allowAllCaps?: boolean;
22
- allowLeadingUnderscore?: boolean;
23
- allowNamespace?: boolean;
24
- excepts?: readonly string[];
25
- rule?: "CONSTANT_CASE" | "PascalCase";
26
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
27
- readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"invalid", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
28
- readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
29
- excepts?: readonly string[];
30
- extensions?: readonly string[];
31
- rule?: "PascalCase" | "camelCase" | "kebab-case" | "snake_case";
32
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
33
- readonly "filename-extension": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, readonly [("always" | "as-needed") | {
34
- allow?: "always" | "as-needed";
35
- extensions?: readonly string[];
36
- ignoreFilesWithoutCode?: boolean;
37
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
38
- readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
39
- };
40
- };
8
+ "react-naming-convention": _eslint_react_shared.CompatiblePlugin;
41
9
  };
42
- name: string;
43
- rules: RulePreset;
10
+ name?: string;
11
+ rules?: Record<string, any>;
44
12
  };
45
13
  "recommended-legacy": {
46
14
  plugins: string[];
@@ -48,30 +16,10 @@ declare const _default: {
48
16
  };
49
17
  };
50
18
  meta: {
51
- readonly name: string;
52
- readonly version: string;
53
- };
54
- rules: {
55
- readonly "component-name": _typescript_eslint_utils_ts_eslint.RuleModule<"invalid", readonly [("CONSTANT_CASE" | "PascalCase") | {
56
- allowAllCaps?: boolean;
57
- allowLeadingUnderscore?: boolean;
58
- allowNamespace?: boolean;
59
- excepts?: readonly string[];
60
- rule?: "CONSTANT_CASE" | "PascalCase";
61
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
62
- readonly "context-name": _typescript_eslint_utils_ts_eslint.RuleModule<"invalid", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
63
- readonly filename: _typescript_eslint_utils_ts_eslint.RuleModule<MessageID, readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
64
- excepts?: readonly string[];
65
- extensions?: readonly string[];
66
- rule?: "PascalCase" | "camelCase" | "kebab-case" | "snake_case";
67
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
68
- readonly "filename-extension": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$1, readonly [("always" | "as-needed") | {
69
- allow?: "always" | "as-needed";
70
- extensions?: readonly string[];
71
- ignoreFilesWithoutCode?: boolean;
72
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
73
- readonly "use-state": _typescript_eslint_utils_ts_eslint.RuleModule<MessageID$2, [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
19
+ name: string;
20
+ version: string;
74
21
  };
22
+ rules: Record<string, any>;
75
23
  };
76
24
 
77
25
  export { _default as default };
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.52.7-beta.0";
58
+ var version = "1.52.7-beta.2";
59
59
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("naming-convention"));
60
60
 
61
61
  // src/rules/component-name.ts
@@ -498,7 +498,7 @@ var plugin = {
498
498
  };
499
499
 
500
500
  // src/index.ts
501
- function makeConfig(config) {
501
+ function toFlatConfig(config) {
502
502
  return {
503
503
  ...config,
504
504
  plugins: {
@@ -506,7 +506,7 @@ function makeConfig(config) {
506
506
  }
507
507
  };
508
508
  }
509
- function makeLegacyConfig({ rules: rules2 }) {
509
+ function toLegacyConfig({ rules: rules2 }) {
510
510
  return {
511
511
  plugins: ["react-naming-convention"],
512
512
  rules: rules2
@@ -515,8 +515,8 @@ function makeLegacyConfig({ rules: rules2 }) {
515
515
  var index_default = {
516
516
  ...plugin,
517
517
  configs: {
518
- ["recommended"]: makeConfig(recommended_exports),
519
- ["recommended-legacy"]: makeLegacyConfig(recommended_exports)
518
+ ["recommended"]: toFlatConfig(recommended_exports),
519
+ ["recommended-legacy"]: toLegacyConfig(recommended_exports)
520
520
  }
521
521
  };
522
522
 
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.52.7-beta.0";
32
+ var version = "1.52.7-beta.2";
33
33
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("naming-convention"));
34
34
 
35
35
  // src/rules/component-name.ts
@@ -472,7 +472,7 @@ var plugin = {
472
472
  };
473
473
 
474
474
  // src/index.ts
475
- function makeConfig(config) {
475
+ function toFlatConfig(config) {
476
476
  return {
477
477
  ...config,
478
478
  plugins: {
@@ -480,7 +480,7 @@ function makeConfig(config) {
480
480
  }
481
481
  };
482
482
  }
483
- function makeLegacyConfig({ rules: rules2 }) {
483
+ function toLegacyConfig({ rules: rules2 }) {
484
484
  return {
485
485
  plugins: ["react-naming-convention"],
486
486
  rules: rules2
@@ -489,8 +489,8 @@ function makeLegacyConfig({ rules: rules2 }) {
489
489
  var index_default = {
490
490
  ...plugin,
491
491
  configs: {
492
- ["recommended"]: makeConfig(recommended_exports),
493
- ["recommended-legacy"]: makeLegacyConfig(recommended_exports)
492
+ ["recommended"]: toFlatConfig(recommended_exports),
493
+ ["recommended-legacy"]: toLegacyConfig(recommended_exports)
494
494
  }
495
495
  };
496
496
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "1.52.7-beta.0",
3
+ "version": "1.52.7-beta.2",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -43,22 +43,22 @@
43
43
  "./package.json"
44
44
  ],
45
45
  "dependencies": {
46
- "@typescript-eslint/scope-manager": "^8.40.0",
47
- "@typescript-eslint/type-utils": "^8.40.0",
48
- "@typescript-eslint/types": "^8.40.0",
49
- "@typescript-eslint/utils": "^8.40.0",
46
+ "@typescript-eslint/scope-manager": "^8.41.0",
47
+ "@typescript-eslint/type-utils": "^8.41.0",
48
+ "@typescript-eslint/types": "^8.41.0",
49
+ "@typescript-eslint/utils": "^8.41.0",
50
50
  "string-ts": "^2.2.1",
51
51
  "ts-pattern": "^5.8.0",
52
- "@eslint-react/ast": "1.52.7-beta.0",
53
- "@eslint-react/eff": "1.52.7-beta.0",
54
- "@eslint-react/core": "1.52.7-beta.0",
55
- "@eslint-react/var": "1.52.7-beta.0",
56
- "@eslint-react/shared": "1.52.7-beta.0",
57
- "@eslint-react/kit": "1.52.7-beta.0"
52
+ "@eslint-react/ast": "1.52.7-beta.2",
53
+ "@eslint-react/eff": "1.52.7-beta.2",
54
+ "@eslint-react/kit": "1.52.7-beta.2",
55
+ "@eslint-react/core": "1.52.7-beta.2",
56
+ "@eslint-react/shared": "1.52.7-beta.2",
57
+ "@eslint-react/var": "1.52.7-beta.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@types/react": "^19.1.11",
61
- "@types/react-dom": "^19.1.7",
60
+ "@types/react": "^19.1.12",
61
+ "@types/react-dom": "^19.1.9",
62
62
  "tsup": "^8.5.0",
63
63
  "@local/configs": "0.0.0"
64
64
  },
@@ -81,7 +81,7 @@
81
81
  "access": "public"
82
82
  },
83
83
  "scripts": {
84
- "build": "tsup --dts-resolve",
84
+ "build": "tsup",
85
85
  "lint:publish": "publint",
86
86
  "lint:ts": "tsc --noEmit"
87
87
  }