@eslint-react/core 1.23.2-next.0 → 1.23.2-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 +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var VAR__namespace = /*#__PURE__*/_interopNamespace(VAR);
|
|
|
35
35
|
function getElementRepresentName(node, context) {
|
|
36
36
|
const rawElementName = JSX4__namespace.getElementName(node);
|
|
37
37
|
if (rawElementName === rawElementName.toLowerCase()) return rawElementName;
|
|
38
|
-
const { components, polymorphicPropName } = shared.
|
|
38
|
+
const { components, polymorphicPropName } = shared.getSettingsFromContext(context);
|
|
39
39
|
const asElementName = components.get(rawElementName);
|
|
40
40
|
if (eff.isString(asElementName)) return asElementName;
|
|
41
41
|
return eff.F.pipe(
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { F, isString, O } from '@eslint-react/eff';
|
|
|
3
3
|
import * as JSX4 from '@eslint-react/jsx';
|
|
4
4
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
5
5
|
import { isMatching, P, match } from 'ts-pattern';
|
|
6
|
-
import {
|
|
6
|
+
import { getSettingsFromContext, unsafeReadSettings } from '@eslint-react/shared';
|
|
7
7
|
import * as VAR from '@eslint-react/var';
|
|
8
8
|
import { birecord } from '@eslint-react/types';
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ import { birecord } from '@eslint-react/types';
|
|
|
11
11
|
function getElementRepresentName(node, context) {
|
|
12
12
|
const rawElementName = JSX4.getElementName(node);
|
|
13
13
|
if (rawElementName === rawElementName.toLowerCase()) return rawElementName;
|
|
14
|
-
const { components, polymorphicPropName } =
|
|
14
|
+
const { components, polymorphicPropName } = getSettingsFromContext(context);
|
|
15
15
|
const asElementName = components.get(rawElementName);
|
|
16
16
|
if (isString(asElementName)) return asElementName;
|
|
17
17
|
return F.pipe(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.23.2-next.
|
|
3
|
+
"version": "1.23.2-next.2",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
|
|
5
5
|
"homepage": "https://github.com/rEl1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"@typescript-eslint/types": "^8.19.0",
|
|
39
39
|
"@typescript-eslint/utils": "^8.19.0",
|
|
40
40
|
"ts-pattern": "^5.6.0",
|
|
41
|
-
"@eslint-react/ast": "1.23.2-next.
|
|
42
|
-
"@eslint-react/
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/eff": "1.23.2-next.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
41
|
+
"@eslint-react/ast": "1.23.2-next.2",
|
|
42
|
+
"@eslint-react/jsx": "1.23.2-next.2",
|
|
43
|
+
"@eslint-react/shared": "1.23.2-next.2",
|
|
44
|
+
"@eslint-react/eff": "1.23.2-next.2",
|
|
45
|
+
"@eslint-react/var": "1.23.2-next.2",
|
|
46
|
+
"@eslint-react/types": "1.23.2-next.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"tsup": "^8.3.5",
|