@eslint-react/shared 1.16.2-beta.6 → 1.16.2-beta.8
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 +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1433,7 +1433,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1433
1433
|
/**
|
|
1434
1434
|
* @internal
|
|
1435
1435
|
*/
|
|
1436
|
-
readonly
|
|
1436
|
+
readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, never>;
|
|
1437
1437
|
/**
|
|
1438
1438
|
* React version to use, "detect" means auto detect React version from the project’s dependencies.
|
|
1439
1439
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
@@ -1559,7 +1559,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1559
1559
|
/**
|
|
1560
1560
|
* @internal
|
|
1561
1561
|
*/
|
|
1562
|
-
readonly
|
|
1562
|
+
readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, never>;
|
|
1563
1563
|
/**
|
|
1564
1564
|
* React version to use, "detect" means auto detect React version from the project’s dependencies.
|
|
1565
1565
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
@@ -1682,7 +1682,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1682
1682
|
/**
|
|
1683
1683
|
* @internal
|
|
1684
1684
|
*/
|
|
1685
|
-
readonly
|
|
1685
|
+
readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, never>;
|
|
1686
1686
|
/**
|
|
1687
1687
|
* React version to use, "detect" means auto detect React version from the project’s dependencies.
|
|
1688
1688
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
@@ -2029,9 +2029,7 @@ type PartialObjectDeep<ObjectType extends object, Options extends PartialDeepOpt
|
|
|
2029
2029
|
/**
|
|
2030
2030
|
* The initial settings for "react-x".
|
|
2031
2031
|
*/
|
|
2032
|
-
declare const INITIAL_ESLINT_REACT_SETTINGS: {
|
|
2033
|
-
readonly skipImportCheck: false;
|
|
2034
|
-
};
|
|
2032
|
+
declare const INITIAL_ESLINT_REACT_SETTINGS: {};
|
|
2035
2033
|
/**
|
|
2036
2034
|
* Unsafely casts settings from a data object from `context.settings`.
|
|
2037
2035
|
* @internal
|
|
@@ -2046,12 +2044,12 @@ declare function unsafeReadSettings(data: unknown): PartialDeep<ESLintReactSetti
|
|
|
2046
2044
|
* @returns settings The settings.
|
|
2047
2045
|
*/
|
|
2048
2046
|
declare const decodeSettings: Memoized<(data: unknown) => {
|
|
2049
|
-
readonly skipImportCheck: boolean;
|
|
2050
2047
|
readonly importSource?: string;
|
|
2051
2048
|
readonly jsxPragma?: string;
|
|
2052
2049
|
readonly jsxPragmaFrag?: string;
|
|
2053
2050
|
readonly polymorphicPropName?: string;
|
|
2054
2051
|
readonly strict?: boolean;
|
|
2052
|
+
readonly strictImportCheck?: boolean;
|
|
2055
2053
|
readonly version?: string;
|
|
2056
2054
|
readonly additionalComponents?: {
|
|
2057
2055
|
name: string;
|
|
@@ -2094,12 +2092,12 @@ declare const decodeSettings: Memoized<(data: unknown) => {
|
|
|
2094
2092
|
declare const normalizeSettings: Memoized<(settings: ESLintReactSettings) => {
|
|
2095
2093
|
readonly additionalComponents: CustomComponentNormalized[];
|
|
2096
2094
|
readonly components: Map<string, string>;
|
|
2097
|
-
readonly skipImportCheck: boolean;
|
|
2098
2095
|
readonly importSource?: string;
|
|
2099
2096
|
readonly jsxPragma?: string;
|
|
2100
2097
|
readonly jsxPragmaFrag?: string;
|
|
2101
2098
|
readonly polymorphicPropName?: string;
|
|
2102
2099
|
readonly strict?: boolean;
|
|
2100
|
+
readonly strictImportCheck?: boolean;
|
|
2103
2101
|
readonly version?: string;
|
|
2104
2102
|
readonly additionalHooks?: {
|
|
2105
2103
|
use?: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1433,7 +1433,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
|
|
|
1433
1433
|
/**
|
|
1434
1434
|
* @internal
|
|
1435
1435
|
*/
|
|
1436
|
-
readonly
|
|
1436
|
+
readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, never>;
|
|
1437
1437
|
/**
|
|
1438
1438
|
* React version to use, "detect" means auto detect React version from the project’s dependencies.
|
|
1439
1439
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
@@ -1559,7 +1559,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1559
1559
|
/**
|
|
1560
1560
|
* @internal
|
|
1561
1561
|
*/
|
|
1562
|
-
readonly
|
|
1562
|
+
readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, never>;
|
|
1563
1563
|
/**
|
|
1564
1564
|
* React version to use, "detect" means auto detect React version from the project’s dependencies.
|
|
1565
1565
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
@@ -1682,7 +1682,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
|
|
|
1682
1682
|
/**
|
|
1683
1683
|
* @internal
|
|
1684
1684
|
*/
|
|
1685
|
-
readonly
|
|
1685
|
+
readonly strictImportCheck: OptionalSchema<BooleanSchema<undefined>, never>;
|
|
1686
1686
|
/**
|
|
1687
1687
|
* React version to use, "detect" means auto detect React version from the project’s dependencies.
|
|
1688
1688
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
@@ -2029,9 +2029,7 @@ type PartialObjectDeep<ObjectType extends object, Options extends PartialDeepOpt
|
|
|
2029
2029
|
/**
|
|
2030
2030
|
* The initial settings for "react-x".
|
|
2031
2031
|
*/
|
|
2032
|
-
declare const INITIAL_ESLINT_REACT_SETTINGS: {
|
|
2033
|
-
readonly skipImportCheck: false;
|
|
2034
|
-
};
|
|
2032
|
+
declare const INITIAL_ESLINT_REACT_SETTINGS: {};
|
|
2035
2033
|
/**
|
|
2036
2034
|
* Unsafely casts settings from a data object from `context.settings`.
|
|
2037
2035
|
* @internal
|
|
@@ -2046,12 +2044,12 @@ declare function unsafeReadSettings(data: unknown): PartialDeep<ESLintReactSetti
|
|
|
2046
2044
|
* @returns settings The settings.
|
|
2047
2045
|
*/
|
|
2048
2046
|
declare const decodeSettings: Memoized<(data: unknown) => {
|
|
2049
|
-
readonly skipImportCheck: boolean;
|
|
2050
2047
|
readonly importSource?: string;
|
|
2051
2048
|
readonly jsxPragma?: string;
|
|
2052
2049
|
readonly jsxPragmaFrag?: string;
|
|
2053
2050
|
readonly polymorphicPropName?: string;
|
|
2054
2051
|
readonly strict?: boolean;
|
|
2052
|
+
readonly strictImportCheck?: boolean;
|
|
2055
2053
|
readonly version?: string;
|
|
2056
2054
|
readonly additionalComponents?: {
|
|
2057
2055
|
name: string;
|
|
@@ -2094,12 +2092,12 @@ declare const decodeSettings: Memoized<(data: unknown) => {
|
|
|
2094
2092
|
declare const normalizeSettings: Memoized<(settings: ESLintReactSettings) => {
|
|
2095
2093
|
readonly additionalComponents: CustomComponentNormalized[];
|
|
2096
2094
|
readonly components: Map<string, string>;
|
|
2097
|
-
readonly skipImportCheck: boolean;
|
|
2098
2095
|
readonly importSource?: string;
|
|
2099
2096
|
readonly jsxPragma?: string;
|
|
2100
2097
|
readonly jsxPragmaFrag?: string;
|
|
2101
2098
|
readonly polymorphicPropName?: string;
|
|
2102
2099
|
readonly strict?: boolean;
|
|
2100
|
+
readonly strictImportCheck?: boolean;
|
|
2103
2101
|
readonly version?: string;
|
|
2104
2102
|
readonly additionalHooks?: {
|
|
2105
2103
|
use?: string[];
|
package/dist/index.js
CHANGED
|
@@ -609,7 +609,7 @@ var ESLintReactSettingsSchema = object({
|
|
|
609
609
|
/**
|
|
610
610
|
* @internal
|
|
611
611
|
*/
|
|
612
|
-
|
|
612
|
+
strictImportCheck: optional(boolean()),
|
|
613
613
|
/**
|
|
614
614
|
* React version to use, "detect" means auto detect React version from the project’s dependencies.
|
|
615
615
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
@@ -1305,9 +1305,7 @@ function createMemoizedFunction(fn, options) {
|
|
|
1305
1305
|
memoized.options = normalizedOptions;
|
|
1306
1306
|
return memoized;
|
|
1307
1307
|
}
|
|
1308
|
-
var INITIAL_ESLINT_REACT_SETTINGS = {
|
|
1309
|
-
skipImportCheck: false
|
|
1310
|
-
};
|
|
1308
|
+
var INITIAL_ESLINT_REACT_SETTINGS = {};
|
|
1311
1309
|
function unsafeReadSettings(data) {
|
|
1312
1310
|
return tools.Data.struct(data?.["react-x"] ?? {});
|
|
1313
1311
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -603,7 +603,7 @@ var ESLintReactSettingsSchema = object({
|
|
|
603
603
|
/**
|
|
604
604
|
* @internal
|
|
605
605
|
*/
|
|
606
|
-
|
|
606
|
+
strictImportCheck: optional(boolean()),
|
|
607
607
|
/**
|
|
608
608
|
* React version to use, "detect" means auto detect React version from the project’s dependencies.
|
|
609
609
|
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
@@ -1299,9 +1299,7 @@ function createMemoizedFunction(fn, options) {
|
|
|
1299
1299
|
memoized.options = normalizedOptions;
|
|
1300
1300
|
return memoized;
|
|
1301
1301
|
}
|
|
1302
|
-
var INITIAL_ESLINT_REACT_SETTINGS = {
|
|
1303
|
-
skipImportCheck: false
|
|
1304
|
-
};
|
|
1302
|
+
var INITIAL_ESLINT_REACT_SETTINGS = {};
|
|
1305
1303
|
function unsafeReadSettings(data) {
|
|
1306
1304
|
return Data.struct(data?.["react-x"] ?? {});
|
|
1307
1305
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.16.2-beta.
|
|
3
|
+
"version": "1.16.2-beta.8",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@typescript-eslint/utils": "^8.15.0",
|
|
39
39
|
"picomatch": "^4.0.2",
|
|
40
|
-
"@eslint-react/tools": "1.16.2-beta.
|
|
40
|
+
"@eslint-react/tools": "1.16.2-beta.8"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/picomatch": "^3.0.1",
|