eslint-plugin-react-naming-convention 2.0.0-beta.53 → 2.0.0-beta.54

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.ts CHANGED
@@ -1,48 +1,15 @@
1
1
  import { RulePreset } from "@eslint-react/kit";
2
- import "@eslint-react/eff";
3
- import * as _typescript_eslint_utils_ts_eslint0 from "@typescript-eslint/utils/ts-eslint";
2
+ import * as _eslint_react_shared0 from "@eslint-react/shared";
4
3
 
5
- //#region src/rules/filename.d.ts
6
- type MessageID$2 = "filenameEmpty" | "filenameInvalid";
7
- //#endregion
8
- //#region src/rules/filename-extension.d.ts
9
- type MessageID$1 = "useJsxFileExtension" | "useNonJsxFileExtension";
10
- //#endregion
11
- //#region src/rules/use-state.d.ts
12
- type MessageID = "missingDestructuring" | "invalidSetterNaming";
13
- //#endregion
14
4
  //#region src/index.d.ts
15
5
  declare const _default: {
16
6
  configs: {
17
7
  recommended: {
18
8
  plugins: {
19
- "react-naming-convention": {
20
- readonly meta: {
21
- readonly name: string;
22
- readonly version: string;
23
- };
24
- readonly rules: {
25
- readonly "component-name": _typescript_eslint_utils_ts_eslint0.RuleModule<"invalid", readonly [("CONSTANT_CASE" | "PascalCase") | {
26
- allowAllCaps?: boolean;
27
- excepts?: readonly string[];
28
- rule?: "CONSTANT_CASE" | "PascalCase";
29
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
30
- readonly "context-name": _typescript_eslint_utils_ts_eslint0.RuleModule<"invalid", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
31
- readonly filename: _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID$2, readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
32
- excepts?: readonly string[];
33
- rule?: "PascalCase" | "camelCase" | "kebab-case" | "snake_case";
34
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
35
- readonly "filename-extension": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID$1, readonly [("always" | "as-needed") | {
36
- allow?: "always" | "as-needed";
37
- extensions?: readonly string[];
38
- ignoreFilesWithoutCode?: boolean;
39
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
40
- readonly "use-state": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
41
- };
42
- };
9
+ "react-naming-convention": _eslint_react_shared0.CompatiblePlugin;
43
10
  };
44
- name: string;
45
- rules: RulePreset;
11
+ name?: string;
12
+ rules?: Record<string, any>;
46
13
  };
47
14
  "recommended-legacy": {
48
15
  plugins: string[];
@@ -50,27 +17,10 @@ declare const _default: {
50
17
  };
51
18
  };
52
19
  meta: {
53
- readonly name: string;
54
- readonly version: string;
55
- };
56
- rules: {
57
- readonly "component-name": _typescript_eslint_utils_ts_eslint0.RuleModule<"invalid", readonly [("CONSTANT_CASE" | "PascalCase") | {
58
- allowAllCaps?: boolean;
59
- excepts?: readonly string[];
60
- rule?: "CONSTANT_CASE" | "PascalCase";
61
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
62
- readonly "context-name": _typescript_eslint_utils_ts_eslint0.RuleModule<"invalid", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
63
- readonly filename: _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID$2, readonly [("PascalCase" | "camelCase" | "kebab-case" | "snake_case") | {
64
- excepts?: readonly string[];
65
- rule?: "PascalCase" | "camelCase" | "kebab-case" | "snake_case";
66
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
67
- readonly "filename-extension": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID$1, readonly [("always" | "as-needed") | {
68
- allow?: "always" | "as-needed";
69
- extensions?: readonly string[];
70
- ignoreFilesWithoutCode?: boolean;
71
- } | undefined], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
72
- readonly "use-state": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageID, [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>;
20
+ name: string;
21
+ version: string;
73
22
  };
23
+ rules: Record<string, any>;
74
24
  };
75
25
  //#endregion
76
26
  export { _default as default };
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-beta.53";
34
+ var version = "2.0.0-beta.54";
35
35
 
36
36
  //#endregion
37
37
  //#region src/utils/create-rule.ts
@@ -455,13 +455,13 @@ const plugin = {
455
455
 
456
456
  //#endregion
457
457
  //#region src/index.ts
458
- function makeConfig(config) {
458
+ function toFlatConfig(config) {
459
459
  return {
460
460
  ...config,
461
461
  plugins: { "react-naming-convention": plugin }
462
462
  };
463
463
  }
464
- function makeLegacyConfig({ rules: rules$1 }) {
464
+ function toLegacyConfig({ rules: rules$1 }) {
465
465
  return {
466
466
  plugins: ["react-naming-convention"],
467
467
  rules: rules$1
@@ -470,8 +470,8 @@ function makeLegacyConfig({ rules: rules$1 }) {
470
470
  var src_default = {
471
471
  ...plugin,
472
472
  configs: {
473
- ["recommended"]: makeConfig(recommended_exports),
474
- ["recommended-legacy"]: makeLegacyConfig(recommended_exports)
473
+ ["recommended"]: toFlatConfig(recommended_exports),
474
+ ["recommended-legacy"]: toLegacyConfig(recommended_exports)
475
475
  }
476
476
  };
477
477
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "2.0.0-beta.53",
3
+ "version": "2.0.0-beta.54",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -41,16 +41,16 @@
41
41
  "@typescript-eslint/utils": "^8.41.0",
42
42
  "string-ts": "^2.2.1",
43
43
  "ts-pattern": "^5.8.0",
44
- "@eslint-react/ast": "2.0.0-beta.53",
45
- "@eslint-react/core": "2.0.0-beta.53",
46
- "@eslint-react/eff": "2.0.0-beta.53",
47
- "@eslint-react/kit": "2.0.0-beta.53",
48
- "@eslint-react/shared": "2.0.0-beta.53",
49
- "@eslint-react/var": "2.0.0-beta.53"
44
+ "@eslint-react/ast": "2.0.0-beta.54",
45
+ "@eslint-react/eff": "2.0.0-beta.54",
46
+ "@eslint-react/var": "2.0.0-beta.54",
47
+ "@eslint-react/kit": "2.0.0-beta.54",
48
+ "@eslint-react/core": "2.0.0-beta.54",
49
+ "@eslint-react/shared": "2.0.0-beta.54"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/react": "^19.1.12",
53
- "@types/react-dom": "^19.1.8",
53
+ "@types/react-dom": "^19.1.9",
54
54
  "tsdown": "^0.14.2",
55
55
  "@local/configs": "0.0.0"
56
56
  },
@@ -73,7 +73,7 @@
73
73
  "access": "public"
74
74
  },
75
75
  "scripts": {
76
- "build": "tsdown --dts-resolve",
76
+ "build": "tsdown",
77
77
  "lint:publish": "publint",
78
78
  "lint:ts": "tsc --noEmit"
79
79
  }