eslint-plugin-react-naming-convention 5.17.3 → 5.18.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.js +4 -3
- package/package.json +12 -11
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { resolveEnclosingAssignmentTarget } from "@eslint-react/var";
|
|
|
5
5
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
6
6
|
import { P, match } from "ts-pattern";
|
|
7
7
|
import { Extract } from "@eslint-react/ast";
|
|
8
|
+
import { getSettingsFromContext } from "@eslint-react/shared";
|
|
8
9
|
|
|
9
10
|
//#region \0rolldown/runtime.js
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
@@ -25,7 +26,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
25
26
|
//#endregion
|
|
26
27
|
//#region package.json
|
|
27
28
|
var name$1 = "eslint-plugin-react-naming-convention";
|
|
28
|
-
var version = "5.
|
|
29
|
+
var version = "5.18.1";
|
|
29
30
|
|
|
30
31
|
//#endregion
|
|
31
32
|
//#region src/utils/create-rule.ts
|
|
@@ -117,9 +118,9 @@ var ref_name_default = createRule({
|
|
|
117
118
|
defaultOptions: []
|
|
118
119
|
});
|
|
119
120
|
function create(context) {
|
|
120
|
-
|
|
121
|
+
const { additionalRefHooks } = getSettingsFromContext(context);
|
|
121
122
|
return { CallExpression(node) {
|
|
122
|
-
if (!core.
|
|
123
|
+
if (!core.isUseRefLikeCall(node, additionalRefHooks)) return;
|
|
123
124
|
if (Extract.unwrap(node.parent).type === AST_NODE_TYPES.MemberExpression) return;
|
|
124
125
|
const [id, name] = match(resolveEnclosingAssignmentTarget(node)).with({
|
|
125
126
|
type: AST_NODE_TYPES.Identifier,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,23 +37,24 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/types": "^8.
|
|
41
|
-
"@typescript-eslint/utils": "^8.
|
|
40
|
+
"@typescript-eslint/types": "^8.65.0",
|
|
41
|
+
"@typescript-eslint/utils": "^8.65.0",
|
|
42
42
|
"ts-pattern": "^5.9.0",
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
43
|
+
"@eslint-react/core": "5.18.1",
|
|
44
|
+
"@eslint-react/ast": "5.18.1",
|
|
45
|
+
"@eslint-react/eslint": "5.18.1",
|
|
46
|
+
"@eslint-react/shared": "5.18.1",
|
|
47
|
+
"@eslint-react/var": "5.18.1"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@types/react": "^19.2.17",
|
|
50
51
|
"@types/react-dom": "^19.2.3",
|
|
51
52
|
"dedent": "^1.7.2",
|
|
52
|
-
"eslint": "^10.
|
|
53
|
-
"tsdown": "^0.22.
|
|
53
|
+
"eslint": "^10.8.0",
|
|
54
|
+
"tsdown": "^0.22.14",
|
|
54
55
|
"typescript": "6.0.3",
|
|
55
|
-
"@local/
|
|
56
|
-
"@local/
|
|
56
|
+
"@local/configs": "0.0.0",
|
|
57
|
+
"@local/eff": "0.0.0"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"eslint": "*",
|