eslint-plugin-react-naming-convention 2.4.1-next.1 → 2.4.1-next.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.js +12 -4
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { camelCase, kebabCase, pascalCase, snakeCase } from "string-ts";
|
|
|
10
10
|
|
|
11
11
|
//#region rolldown:runtime
|
|
12
12
|
var __defProp = Object.defineProperty;
|
|
13
|
-
var
|
|
13
|
+
var __exportAll = (all, symbols) => {
|
|
14
14
|
let target = {};
|
|
15
15
|
for (var name$2 in all) {
|
|
16
16
|
__defProp(target, name$2, {
|
|
@@ -26,7 +26,7 @@ var __export = (all, symbols) => {
|
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/configs/recommended.ts
|
|
29
|
-
var recommended_exports = /* @__PURE__ */
|
|
29
|
+
var recommended_exports = /* @__PURE__ */ __exportAll({
|
|
30
30
|
name: () => name$1,
|
|
31
31
|
rules: () => rules
|
|
32
32
|
});
|
|
@@ -39,7 +39,7 @@ const rules = {
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region package.json
|
|
41
41
|
var name = "eslint-plugin-react-naming-convention";
|
|
42
|
-
var version = "2.4.1-next.
|
|
42
|
+
var version = "2.4.1-next.2";
|
|
43
43
|
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/utils/create-rule.ts
|
|
@@ -430,7 +430,15 @@ function create(context) {
|
|
|
430
430
|
});
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
|
-
if (setter == null
|
|
433
|
+
if (setter == null) {
|
|
434
|
+
if (!enforceAssignment) return;
|
|
435
|
+
context.report({
|
|
436
|
+
messageId: "invalidAssignment",
|
|
437
|
+
node: id
|
|
438
|
+
});
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
if (!enforceSetterName) return;
|
|
434
442
|
const setterName = match(setter).with({ type: AST_NODE_TYPES.Identifier }, (id$1) => id$1.name).otherwise(() => null);
|
|
435
443
|
if (setterName == null || !setterName.startsWith("set")) {
|
|
436
444
|
context.report({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "2.4.1-next.
|
|
3
|
+
"version": "2.4.1-next.2",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@typescript-eslint/utils": "^8.50.1",
|
|
45
45
|
"string-ts": "^2.3.1",
|
|
46
46
|
"ts-pattern": "^5.9.0",
|
|
47
|
-
"@eslint-react/ast": "2.4.1-next.
|
|
48
|
-
"@eslint-react/core": "2.4.1-next.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
47
|
+
"@eslint-react/ast": "2.4.1-next.2",
|
|
48
|
+
"@eslint-react/core": "2.4.1-next.2",
|
|
49
|
+
"@eslint-react/eff": "2.4.1-next.2",
|
|
50
|
+
"@eslint-react/shared": "2.4.1-next.2",
|
|
51
|
+
"@eslint-react/var": "2.4.1-next.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^19.2.7",
|
|
55
55
|
"@types/react-dom": "^19.2.3",
|
|
56
|
-
"tsdown": "^0.18.
|
|
56
|
+
"tsdown": "^0.18.3",
|
|
57
57
|
"@local/configs": "0.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|