eslint-plugin-react-naming-convention 5.28.7 → 5.30.0-beta.0
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 +0 -2
- package/dist/index.js +8 -15
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
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
|
-
|
|
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
|
-
|
|
19
|
-
//#region package.json
|
|
18
|
+
// package.json
|
|
20
19
|
var name$1 = "eslint-plugin-react-naming-convention";
|
|
21
|
-
var version = "5.
|
|
22
|
-
|
|
23
|
-
//#region src/utils/create-rule.ts
|
|
20
|
+
var version = "5.30.0-beta.0";
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "5.30.0-beta.0",
|
|
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.
|
|
41
|
-
"@eslint-react/core": "5.
|
|
42
|
-
"@eslint-react/eslint": "5.
|
|
43
|
-
"@eslint-react/shared": "5.
|
|
44
|
-
"@eslint-react/var": "5.
|
|
40
|
+
"@eslint-react/ast": "5.30.0-beta.0",
|
|
41
|
+
"@eslint-react/core": "5.30.0-beta.0",
|
|
42
|
+
"@eslint-react/eslint": "5.30.0-beta.0",
|
|
43
|
+
"@eslint-react/shared": "5.30.0-beta.0",
|
|
44
|
+
"@eslint-react/var": "5.30.0-beta.0",
|
|
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.
|
|
58
|
+
"tsdown": "^0.23.2",
|
|
59
59
|
"typescript": "6.0.3"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|