@eslint-react/shared 1.28.0-beta.0 → 1.28.0-beta.4
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.mts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1433,10 +1433,14 @@ declare function string(): StringSchema<undefined>;
|
|
|
1433
1433
|
*/
|
|
1434
1434
|
declare function string<const TMessage extends ErrorMessage<StringIssue> | undefined>(message: TMessage): StringSchema<TMessage>;
|
|
1435
1435
|
|
|
1436
|
+
/**
|
|
1437
|
+
* Readonly output type.
|
|
1438
|
+
*/
|
|
1439
|
+
type ReadonlyOutput<TInput> = TInput extends Map<infer TKey, infer TValue> ? ReadonlyMap<TKey, TValue> : TInput extends Set<infer TValue> ? ReadonlySet<TValue> : Readonly<TInput>;
|
|
1436
1440
|
/**
|
|
1437
1441
|
* Readonly action interface.
|
|
1438
1442
|
*/
|
|
1439
|
-
interface ReadonlyAction<TInput> extends BaseTransformation<TInput,
|
|
1443
|
+
interface ReadonlyAction<TInput> extends BaseTransformation<TInput, ReadonlyOutput<TInput>, never> {
|
|
1440
1444
|
/**
|
|
1441
1445
|
* The action type.
|
|
1442
1446
|
*/
|
|
@@ -1593,7 +1597,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1593
1597
|
*/
|
|
1594
1598
|
readonly strict: OptionalSchema<BooleanSchema<undefined>, false>;
|
|
1595
1599
|
/**
|
|
1596
|
-
* Check both the
|
|
1600
|
+
* Check both the shape and the import to determine if a API is from React.
|
|
1597
1601
|
* @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
|
|
1598
1602
|
* @default `false`
|
|
1599
1603
|
*/
|
|
@@ -1725,7 +1729,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1725
1729
|
*/
|
|
1726
1730
|
readonly strict: OptionalSchema<BooleanSchema<undefined>, false>;
|
|
1727
1731
|
/**
|
|
1728
|
-
* Check both the
|
|
1732
|
+
* Check both the shape and the import to determine if a API is from React.
|
|
1729
1733
|
* @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
|
|
1730
1734
|
* @default `false`
|
|
1731
1735
|
*/
|
|
@@ -1854,7 +1858,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1854
1858
|
*/
|
|
1855
1859
|
readonly strict: OptionalSchema<BooleanSchema<undefined>, false>;
|
|
1856
1860
|
/**
|
|
1857
|
-
* Check both the
|
|
1861
|
+
* Check both the shape and the import to determine if a API is from React.
|
|
1858
1862
|
* @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
|
|
1859
1863
|
* @default `false`
|
|
1860
1864
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1433,10 +1433,14 @@ declare function string(): StringSchema<undefined>;
|
|
|
1433
1433
|
*/
|
|
1434
1434
|
declare function string<const TMessage extends ErrorMessage<StringIssue> | undefined>(message: TMessage): StringSchema<TMessage>;
|
|
1435
1435
|
|
|
1436
|
+
/**
|
|
1437
|
+
* Readonly output type.
|
|
1438
|
+
*/
|
|
1439
|
+
type ReadonlyOutput<TInput> = TInput extends Map<infer TKey, infer TValue> ? ReadonlyMap<TKey, TValue> : TInput extends Set<infer TValue> ? ReadonlySet<TValue> : Readonly<TInput>;
|
|
1436
1440
|
/**
|
|
1437
1441
|
* Readonly action interface.
|
|
1438
1442
|
*/
|
|
1439
|
-
interface ReadonlyAction<TInput> extends BaseTransformation<TInput,
|
|
1443
|
+
interface ReadonlyAction<TInput> extends BaseTransformation<TInput, ReadonlyOutput<TInput>, never> {
|
|
1440
1444
|
/**
|
|
1441
1445
|
* The action type.
|
|
1442
1446
|
*/
|
|
@@ -1593,7 +1597,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1593
1597
|
*/
|
|
1594
1598
|
readonly strict: OptionalSchema<BooleanSchema<undefined>, false>;
|
|
1595
1599
|
/**
|
|
1596
|
-
* Check both the
|
|
1600
|
+
* Check both the shape and the import to determine if a API is from React.
|
|
1597
1601
|
* @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
|
|
1598
1602
|
* @default `false`
|
|
1599
1603
|
*/
|
|
@@ -1725,7 +1729,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1725
1729
|
*/
|
|
1726
1730
|
readonly strict: OptionalSchema<BooleanSchema<undefined>, false>;
|
|
1727
1731
|
/**
|
|
1728
|
-
* Check both the
|
|
1732
|
+
* Check both the shape and the import to determine if a API is from React.
|
|
1729
1733
|
* @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
|
|
1730
1734
|
* @default `false`
|
|
1731
1735
|
*/
|
|
@@ -1854,7 +1858,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1854
1858
|
*/
|
|
1855
1859
|
readonly strict: OptionalSchema<BooleanSchema<undefined>, false>;
|
|
1856
1860
|
/**
|
|
1857
|
-
* Check both the
|
|
1861
|
+
* Check both the shape and the import to determine if a API is from React.
|
|
1858
1862
|
* @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
|
|
1859
1863
|
* @default `false`
|
|
1860
1864
|
*/
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ function getReactVersion(fallback = "19.0.0") {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
// ../../node_modules/.pnpm/valibot@1.0.0-rc.
|
|
80
|
+
// ../../node_modules/.pnpm/valibot@1.0.0-rc.2_typescript@5.8.1-rc/node_modules/valibot/dist/index.js
|
|
81
81
|
var store;
|
|
82
82
|
// @__NO_SIDE_EFFECTS__
|
|
83
83
|
function getGlobalConfig(config2) {
|
|
@@ -521,7 +521,7 @@ var ESLintReactSettingsSchema = object({
|
|
|
521
521
|
*/
|
|
522
522
|
strict: optional(boolean(), false),
|
|
523
523
|
/**
|
|
524
|
-
* Check both the
|
|
524
|
+
* Check both the shape and the import to determine if a API is from React.
|
|
525
525
|
* @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
|
|
526
526
|
* @default `false`
|
|
527
527
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ function getReactVersion(fallback = "19.0.0") {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
// ../../node_modules/.pnpm/valibot@1.0.0-rc.
|
|
72
|
+
// ../../node_modules/.pnpm/valibot@1.0.0-rc.2_typescript@5.8.1-rc/node_modules/valibot/dist/index.js
|
|
73
73
|
var store;
|
|
74
74
|
// @__NO_SIDE_EFFECTS__
|
|
75
75
|
function getGlobalConfig(config2) {
|
|
@@ -513,7 +513,7 @@ var ESLintReactSettingsSchema = object({
|
|
|
513
513
|
*/
|
|
514
514
|
strict: optional(boolean(), false),
|
|
515
515
|
/**
|
|
516
|
-
* Check both the
|
|
516
|
+
* Check both the shape and the import to determine if a API is from React.
|
|
517
517
|
* @description This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
|
|
518
518
|
* @default `false`
|
|
519
519
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.28.0-beta.
|
|
3
|
+
"version": "1.28.0-beta.4",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@typescript-eslint/utils": "^8.25.0",
|
|
39
39
|
"picomatch": "^4.0.2",
|
|
40
40
|
"ts-pattern": "^5.6.2",
|
|
41
|
-
"@eslint-react/eff": "1.28.0-beta.
|
|
41
|
+
"@eslint-react/eff": "1.28.0-beta.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/picomatch": "^3.0.2",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"micro-memoize": "^4.1.3",
|
|
47
47
|
"tsup": "^8.3.6",
|
|
48
48
|
"type-fest": "^4.35.0",
|
|
49
|
-
"valibot": "^1.0.0-rc.
|
|
49
|
+
"valibot": "^1.0.0-rc.2",
|
|
50
50
|
"@local/configs": "0.0.0"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|