@eslint-react/shared 1.26.3-next.9 → 1.27.0-beta.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.d.mts CHANGED
@@ -1614,7 +1614,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1614
1614
  /**
1615
1615
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1616
1616
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1617
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1617
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1618
1618
  */
1619
1619
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1620
1620
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1744,7 +1744,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1744
1744
  /**
1745
1745
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1746
1746
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1747
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1747
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1748
1748
  */
1749
1749
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1750
1750
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1871,7 +1871,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1871
1871
  /**
1872
1872
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1873
1873
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1874
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1874
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1875
1875
  */
1876
1876
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1877
1877
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1970,6 +1970,7 @@ declare const DEFAULT_ESLINT_REACT_SETTINGS: {
1970
1970
  readonly strictImportCheck: false;
1971
1971
  readonly version: "detect";
1972
1972
  readonly additionalHooks: {
1973
+ readonly useEffect: ["useIsomorphicLayoutEffect"];
1973
1974
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1974
1975
  };
1975
1976
  readonly additionalComponents?: {
package/dist/index.d.ts CHANGED
@@ -1614,7 +1614,7 @@ declare const ESLintReactSettingsSchema: ObjectSchema<{
1614
1614
  /**
1615
1615
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1616
1616
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1617
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1617
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1618
1618
  */
1619
1619
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1620
1620
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1744,7 +1744,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1744
1744
  /**
1745
1745
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1746
1746
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1747
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1747
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1748
1748
  */
1749
1749
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1750
1750
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1871,7 +1871,7 @@ declare const ESLintSettingsSchema: OptionalSchema<ObjectSchema<{
1871
1871
  /**
1872
1872
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
1873
1873
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
1874
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
1874
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
1875
1875
  */
1876
1876
  readonly additionalHooks: OptionalSchema<ObjectSchema<{
1877
1877
  readonly use: OptionalSchema<ArraySchema<StringSchema<undefined>, undefined>, undefined>;
@@ -1970,6 +1970,7 @@ declare const DEFAULT_ESLINT_REACT_SETTINGS: {
1970
1970
  readonly strictImportCheck: false;
1971
1971
  readonly version: "detect";
1972
1972
  readonly additionalHooks: {
1973
+ readonly useEffect: ["useIsomorphicLayoutEffect"];
1973
1974
  readonly useLayoutEffect: ["useIsomorphicLayoutEffect"];
1974
1975
  };
1975
1976
  readonly additionalComponents?: {
package/dist/index.js CHANGED
@@ -248,7 +248,7 @@ function getReactVersion(fallback = "19.0.0") {
248
248
  }
249
249
  }
250
250
 
251
- // ../../node_modules/.pnpm/valibot@1.0.0-rc.0_typescript@5.7.3/node_modules/valibot/dist/index.js
251
+ // ../../node_modules/.pnpm/valibot@1.0.0-rc.1_typescript@5.8.1-rc/node_modules/valibot/dist/index.js
252
252
  var store;
253
253
  // @__NO_SIDE_EFFECTS__
254
254
  function getGlobalConfig(config2) {
@@ -705,7 +705,7 @@ var ESLintReactSettingsSchema = object({
705
705
  /**
706
706
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
707
707
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
708
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
708
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
709
709
  */
710
710
  additionalHooks: optional(CustomHooksSchema),
711
711
  /**
@@ -733,6 +733,7 @@ var DEFAULT_ESLINT_REACT_SETTINGS = {
733
733
  strictImportCheck: false,
734
734
  version: "detect",
735
735
  additionalHooks: {
736
+ useEffect: ["useIsomorphicLayoutEffect"],
736
737
  useLayoutEffect: ["useIsomorphicLayoutEffect"]
737
738
  }
738
739
  };
package/dist/index.mjs CHANGED
@@ -240,7 +240,7 @@ function getReactVersion(fallback = "19.0.0") {
240
240
  }
241
241
  }
242
242
 
243
- // ../../node_modules/.pnpm/valibot@1.0.0-rc.0_typescript@5.7.3/node_modules/valibot/dist/index.js
243
+ // ../../node_modules/.pnpm/valibot@1.0.0-rc.1_typescript@5.8.1-rc/node_modules/valibot/dist/index.js
244
244
  var store;
245
245
  // @__NO_SIDE_EFFECTS__
246
246
  function getGlobalConfig(config2) {
@@ -697,7 +697,7 @@ var ESLintReactSettingsSchema = object({
697
697
  /**
698
698
  * A object to define additional hooks that are equivalent to the built-in React Hooks.
699
699
  * @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
700
- * @example `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`
700
+ * @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
701
701
  */
702
702
  additionalHooks: optional(CustomHooksSchema),
703
703
  /**
@@ -725,6 +725,7 @@ var DEFAULT_ESLINT_REACT_SETTINGS = {
725
725
  strictImportCheck: false,
726
726
  version: "detect",
727
727
  additionalHooks: {
728
+ useEffect: ["useIsomorphicLayoutEffect"],
728
729
  useLayoutEffect: ["useIsomorphicLayoutEffect"]
729
730
  }
730
731
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/shared",
3
- "version": "1.26.3-next.9",
3
+ "version": "1.27.0-beta.1",
4
4
  "description": "ESLint React's Shared constants and functions.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -35,18 +35,18 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/utils": "^8.23.0",
38
+ "@typescript-eslint/utils": "^8.24.1",
39
39
  "picomatch": "^4.0.2",
40
40
  "ts-pattern": "^5.6.2",
41
- "@eslint-react/eff": "1.26.3-next.9"
41
+ "@eslint-react/eff": "1.27.0-beta.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/picomatch": "^3.0.2",
45
45
  "fast-equals": "^5.2.2",
46
46
  "micro-memoize": "^4.1.3",
47
47
  "tsup": "^8.3.6",
48
- "type-fest": "^4.34.1",
49
- "valibot": "^1.0.0-rc.0",
48
+ "type-fest": "^4.35.0",
49
+ "valibot": "^1.0.0-rc.1",
50
50
  "@local/configs": "0.0.0"
51
51
  },
52
52
  "engines": {
@@ -57,6 +57,6 @@
57
57
  "build": "tsup --dts-resolve",
58
58
  "build:docs": "typedoc",
59
59
  "lint:publish": "publint",
60
- "lint:type": "tsc --noEmit"
60
+ "lint:ts": "tsc --noEmit"
61
61
  }
62
62
  }