@eslint-react/shared 1.24.0-next.3 → 1.24.0-next.5

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 CHANGED
@@ -1919,6 +1919,17 @@ interface ESLintReactSettingsNormalized extends ESLintReactSettings {
1919
1919
  additionalComponents: CustomComponentNormalized[];
1920
1920
  version: string;
1921
1921
  }
1922
+ /**
1923
+ * The default ESLint settings for "react-x".
1924
+ */
1925
+ declare const DEFAULT_ESLINT_REACT_SETTINGS: {
1926
+ readonly additionalHooks: {
1927
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1928
+ };
1929
+ readonly polymorphicPropName: "as";
1930
+ readonly strictImportCheck: false;
1931
+ readonly version: "detect";
1932
+ };
1922
1933
 
1923
1934
  interface Dictionary<Type> {
1924
1935
  [key: string]: Type;
@@ -2186,17 +2197,6 @@ type PartialObjectDeep<ObjectType extends object, Options extends PartialDeepOpt
2186
2197
  [KeyType in keyof ObjectType]?: PartialDeep<ObjectType[KeyType], Options>
2187
2198
  };
2188
2199
 
2189
- /**
2190
- * The default ESLint settings for "react-x".
2191
- */
2192
- declare const DEFAULT_ESLINT_REACT_SETTINGS: {
2193
- readonly additionalHooks: {
2194
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
2195
- };
2196
- readonly polymorphicPropName: "as";
2197
- readonly strictImportCheck: false;
2198
- readonly version: "detect";
2199
- };
2200
2200
  /**
2201
2201
  * Unsafely casts settings from a data object from `context.settings`.
2202
2202
  * @internal
@@ -2233,4 +2233,47 @@ declare module "@typescript-eslint/utils/ts-eslint" {
2233
2233
  }
2234
2234
  }
2235
2235
 
2236
- export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
2236
+ /**
2237
+ * Rule severity.
2238
+ * @since 0.0.1
2239
+ */
2240
+ type RuleSeverity = "error" | "off" | "warn";
2241
+ /**
2242
+ * Rule declaration.
2243
+ * @internal
2244
+ * @since 0.0.1
2245
+ */
2246
+ type RuleDeclaration = [RuleSeverity, Record<string, unknown>?] | RuleSeverity;
2247
+ /**
2248
+ * Rule config preset.
2249
+ * @since 0.0.1
2250
+ */
2251
+ type RulePreset = Record<string, RuleDeclaration>;
2252
+ /**
2253
+ * Rule creator function.
2254
+ * @since 0.0.1
2255
+ * @internal
2256
+ */
2257
+ type RuleCreator = Parameters<ReturnType<typeof ESLintUtils.RuleCreator>>[0]["create"];
2258
+ /**
2259
+ * Rule context.
2260
+ * @since 0.0.1
2261
+ */
2262
+ type RuleContext = Parameters<RuleCreator>[0];
2263
+ /**
2264
+ * Rule options.
2265
+ * @since 0.0.1
2266
+ */
2267
+ type RuleOptions = Parameters<RuleCreator>[1];
2268
+ /**
2269
+ * Rule namespace.
2270
+ * @since 0.0.1
2271
+ */
2272
+ type RuleNamespace = "x" | "dom" | "web-api" | "hooks-extra" | "naming-convention" | "debug";
2273
+ /**
2274
+ * Rule feature.
2275
+ * @since 1.20.0
2276
+ */
2277
+ type RuleFeature = "CFG" | "CHK" | "DBG" | "FIX" | "MOD" | "TSC";
2278
+
2279
+ export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
package/dist/index.d.ts CHANGED
@@ -1919,6 +1919,17 @@ interface ESLintReactSettingsNormalized extends ESLintReactSettings {
1919
1919
  additionalComponents: CustomComponentNormalized[];
1920
1920
  version: string;
1921
1921
  }
1922
+ /**
1923
+ * The default ESLint settings for "react-x".
1924
+ */
1925
+ declare const DEFAULT_ESLINT_REACT_SETTINGS: {
1926
+ readonly additionalHooks: {
1927
+ readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1928
+ };
1929
+ readonly polymorphicPropName: "as";
1930
+ readonly strictImportCheck: false;
1931
+ readonly version: "detect";
1932
+ };
1922
1933
 
1923
1934
  interface Dictionary<Type> {
1924
1935
  [key: string]: Type;
@@ -2186,17 +2197,6 @@ type PartialObjectDeep<ObjectType extends object, Options extends PartialDeepOpt
2186
2197
  [KeyType in keyof ObjectType]?: PartialDeep<ObjectType[KeyType], Options>
2187
2198
  };
2188
2199
 
2189
- /**
2190
- * The default ESLint settings for "react-x".
2191
- */
2192
- declare const DEFAULT_ESLINT_REACT_SETTINGS: {
2193
- readonly additionalHooks: {
2194
- readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
2195
- };
2196
- readonly polymorphicPropName: "as";
2197
- readonly strictImportCheck: false;
2198
- readonly version: "detect";
2199
- };
2200
2200
  /**
2201
2201
  * Unsafely casts settings from a data object from `context.settings`.
2202
2202
  * @internal
@@ -2233,4 +2233,47 @@ declare module "@typescript-eslint/utils/ts-eslint" {
2233
2233
  }
2234
2234
  }
2235
2235
 
2236
- export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
2236
+ /**
2237
+ * Rule severity.
2238
+ * @since 0.0.1
2239
+ */
2240
+ type RuleSeverity = "error" | "off" | "warn";
2241
+ /**
2242
+ * Rule declaration.
2243
+ * @internal
2244
+ * @since 0.0.1
2245
+ */
2246
+ type RuleDeclaration = [RuleSeverity, Record<string, unknown>?] | RuleSeverity;
2247
+ /**
2248
+ * Rule config preset.
2249
+ * @since 0.0.1
2250
+ */
2251
+ type RulePreset = Record<string, RuleDeclaration>;
2252
+ /**
2253
+ * Rule creator function.
2254
+ * @since 0.0.1
2255
+ * @internal
2256
+ */
2257
+ type RuleCreator = Parameters<ReturnType<typeof ESLintUtils.RuleCreator>>[0]["create"];
2258
+ /**
2259
+ * Rule context.
2260
+ * @since 0.0.1
2261
+ */
2262
+ type RuleContext = Parameters<RuleCreator>[0];
2263
+ /**
2264
+ * Rule options.
2265
+ * @since 0.0.1
2266
+ */
2267
+ type RuleOptions = Parameters<RuleCreator>[1];
2268
+ /**
2269
+ * Rule namespace.
2270
+ * @since 0.0.1
2271
+ */
2272
+ type RuleNamespace = "x" | "dom" | "web-api" | "hooks-extra" | "naming-convention" | "debug";
2273
+ /**
2274
+ * Rule feature.
2275
+ * @since 1.20.0
2276
+ */
2277
+ type RuleFeature = "CFG" | "CHK" | "DBG" | "FIX" | "MOD" | "TSC";
2278
+
2279
+ export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, DEFAULT_ESLINT_REACT_SETTINGS, DOM_HTML_COMPONENT_TYPES, DOM_SVG_COMPONENT_TYPES, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, type RuleContext, type RuleDeclaration, type RuleFeature, type RuleNamespace, type RuleOptions, type RulePreset, type RuleSeverity, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, getReactVersion, getSettingsFromContext, normalizeSettings, unsafeDecodeSettings };
package/dist/index.js CHANGED
@@ -702,6 +702,14 @@ var ESLintSettingsSchema = optional(
702
702
  }),
703
703
  {}
704
704
  );
705
+ var DEFAULT_ESLINT_REACT_SETTINGS = {
706
+ additionalHooks: {
707
+ useLayoutEffect: ["useIsomorphicLayoutEffect"]
708
+ },
709
+ polymorphicPropName: "as",
710
+ strictImportCheck: false,
711
+ version: "detect"
712
+ };
705
713
 
706
714
  // ../../node_modules/.pnpm/fast-equals@5.2.2/node_modules/fast-equals/dist/esm/index.mjs
707
715
  var getOwnPropertyNames = Object.getOwnPropertyNames;
@@ -1396,14 +1404,6 @@ function createMemoizedFunction(fn, options) {
1396
1404
  memoized.options = normalizedOptions;
1397
1405
  return memoized;
1398
1406
  }
1399
- var DEFAULT_ESLINT_REACT_SETTINGS = {
1400
- additionalHooks: {
1401
- useLayoutEffect: ["useIsomorphicLayoutEffect"]
1402
- },
1403
- polymorphicPropName: "as",
1404
- strictImportCheck: false,
1405
- version: "detect"
1406
- };
1407
1407
  function unsafeDecodeSettings(data) {
1408
1408
  return data?.["react-x"] ?? {};
1409
1409
  }
package/dist/index.mjs CHANGED
@@ -694,6 +694,14 @@ var ESLintSettingsSchema = optional(
694
694
  }),
695
695
  {}
696
696
  );
697
+ var DEFAULT_ESLINT_REACT_SETTINGS = {
698
+ additionalHooks: {
699
+ useLayoutEffect: ["useIsomorphicLayoutEffect"]
700
+ },
701
+ polymorphicPropName: "as",
702
+ strictImportCheck: false,
703
+ version: "detect"
704
+ };
697
705
 
698
706
  // ../../node_modules/.pnpm/fast-equals@5.2.2/node_modules/fast-equals/dist/esm/index.mjs
699
707
  var getOwnPropertyNames = Object.getOwnPropertyNames;
@@ -1388,14 +1396,6 @@ function createMemoizedFunction(fn, options) {
1388
1396
  memoized.options = normalizedOptions;
1389
1397
  return memoized;
1390
1398
  }
1391
- var DEFAULT_ESLINT_REACT_SETTINGS = {
1392
- additionalHooks: {
1393
- useLayoutEffect: ["useIsomorphicLayoutEffect"]
1394
- },
1395
- polymorphicPropName: "as",
1396
- strictImportCheck: false,
1397
- version: "detect"
1398
- };
1399
1399
  function unsafeDecodeSettings(data) {
1400
1400
  return data?.["react-x"] ?? {};
1401
1401
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/shared",
3
- "version": "1.24.0-next.3",
3
+ "version": "1.24.0-next.5",
4
4
  "description": "ESLint React's Shared constants and functions.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -36,7 +36,7 @@
36
36
  "@typescript-eslint/utils": "^8.19.1",
37
37
  "picomatch": "^4.0.2",
38
38
  "ts-pattern": "^5.6.0",
39
- "@eslint-react/eff": "1.24.0-next.3"
39
+ "@eslint-react/eff": "1.24.0-next.5"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/picomatch": "^3.0.1",