eslint-plugin-react-naming-convention 5.28.8 → 5.30.0-beta.1

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,8 +1,6 @@
1
1
  import { ESLint, Linter } from "eslint";
2
- //#region src/index.d.ts
3
2
  type ConfigName = "recommended";
4
3
  declare const finalPlugin: ESLint.Plugin & {
5
4
  configs: Record<ConfigName, Linter.Config>;
6
5
  };
7
- //#endregion
8
6
  export { finalPlugin as default };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import * as core from "@eslint-react/core";
4
4
  import "@eslint-react/eslint";
5
5
  import { Check } from "@eslint-react/ast";
6
6
  import { getSettingsFromContext } from "@eslint-react/shared";
7
- //#region \0rolldown/runtime.js
7
+ // \0rolldown/runtime.js
8
8
  var __defProp = Object.defineProperty;
9
9
  var __exportAll = (all, no_symbols) => {
10
10
  let target = {};
@@ -15,18 +15,15 @@ var __exportAll = (all, no_symbols) => {
15
15
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
16
16
  return target;
17
17
  };
18
- //#endregion
19
- //#region package.json
18
+ // package.json
20
19
  var name$1 = "eslint-plugin-react-naming-convention";
21
- var version = "5.28.8";
22
- //#endregion
23
- //#region src/utils/create-rule.ts
20
+ var version = "5.30.0-beta.1";
21
+ // src/utils/create-rule.ts
24
22
  function getDocsUrl(ruleName) {
25
23
  return `https://eslint-react.xyz/docs/rules/naming-convention-${ruleName}`;
26
24
  }
27
25
  const createRule = ESLintUtils.RuleCreator(getDocsUrl);
28
- //#endregion
29
- //#region src/utils/resolve-naming-target.ts
26
+ // src/utils/resolve-naming-target.ts
30
27
  function resolveNamingTarget(node) {
31
28
  return resolveUpward(node, null);
32
29
  }
@@ -161,8 +158,7 @@ function create(context) {
161
158
  });
162
159
  } };
163
160
  }
164
- //#endregion
165
- //#region src/plugin.ts
161
+ // src/plugin.ts
166
162
  const plugin = {
167
163
  meta: {
168
164
  name: name$1,
@@ -174,8 +170,7 @@ const plugin = {
174
170
  ["ref-name"]: ref_name_default
175
171
  }
176
172
  };
177
- //#endregion
178
- //#region src/configs/recommended.ts
173
+ // src/configs/recommended.ts
179
174
  var recommended_exports = /* @__PURE__ */ __exportAll({
180
175
  name: () => name,
181
176
  plugins: () => plugins,
@@ -188,8 +183,7 @@ const rules = {
188
183
  "react-naming-convention/ref-name": "warn"
189
184
  };
190
185
  const plugins = { "react-naming-convention": plugin };
191
- //#endregion
192
- //#region src/index.ts
186
+ // src/index.ts
193
187
  function createConfig(base) {
194
188
  return {
195
189
  ...base,
@@ -205,5 +199,4 @@ const finalPlugin = {
205
199
  ...plugin,
206
200
  configs: { ["recommended"]: createConfig(recommended_exports) }
207
201
  };
208
- //#endregion
209
202
  export { finalPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "5.28.8",
3
+ "version": "5.30.0-beta.1",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,11 +37,11 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@eslint-react/ast": "5.28.8",
41
- "@eslint-react/core": "5.28.8",
42
- "@eslint-react/eslint": "5.28.8",
43
- "@eslint-react/shared": "5.28.8",
44
- "@eslint-react/var": "5.28.8",
40
+ "@eslint-react/ast": "5.30.0-beta.1",
41
+ "@eslint-react/core": "5.30.0-beta.1",
42
+ "@eslint-react/eslint": "5.30.0-beta.1",
43
+ "@eslint-react/shared": "5.30.0-beta.1",
44
+ "@eslint-react/var": "5.30.0-beta.1",
45
45
  "@typescript-eslint/types": "^8.72.0",
46
46
  "@typescript-eslint/utils": "^8.72.0",
47
47
  "ts-pattern": "^5.9.2"
@@ -55,7 +55,7 @@
55
55
  "@types/react-dom": "^19.3.0",
56
56
  "dedent": "^1.7.2",
57
57
  "eslint": "^10.13.0",
58
- "tsdown": "^0.23.1",
58
+ "tsdown": "^0.23.2",
59
59
  "typescript": "6.0.3"
60
60
  },
61
61
  "peerDependencies": {