From 86ae536abac0e89024b118f7b9970a425b311650 Mon Sep 17 00:00:00 2001 From: Rel1cx Date: Fri, 28 Feb 2025 00:06:00 +0800 Subject: [PATCH] release: 1.28.1-beta.4 --- VERSION | 2 +- package.json | 2 +- packages/core/package.json | 2 +- .../eslint-plugin-react-debug/package.json | 2 +- .../eslint-plugin-react-dom/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../eslint-plugin-react-web-api/package.json | 2 +- .../eslint-plugin-react-x/package.json | 2 +- packages/plugins/eslint-plugin/package.json | 2 +- .../variables/CustomComponentPropSchema.md | 2 +- .../docs/variables/CustomComponentSchema.md | 2 +- .../DEFAULT_ESLINT_REACT_SETTINGS.md | 32 ++++++++++++++----- packages/shared/package.json | 2 +- packages/shared/src/schemas.ts | 4 +-- packages/utilities/ast/package.json | 2 +- packages/utilities/eff/package.json | 2 +- packages/utilities/jsx/package.json | 2 +- packages/utilities/var/package.json | 2 +- 19 files changed, 42 insertions(+), 28 deletions(-) diff --git a/VERSION b/VERSION index 6b701e282..e4193cb3c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.28.1-next.4 +1.28.1-beta.4 diff --git a/package.json b/package.json index 25bf9277b..d23aac8f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-react/monorepo", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "private": true, "description": "Monorepo for eslint-plugin-react-[x, dom, web-api, hooks-extra, naming-convention].", "keywords": [ diff --git a/packages/core/package.json b/packages/core/package.json index 3cddbc924..ee789a6af 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-react/core", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.", "homepage": "https://github.com/Rel1cx/eslint-react", "bugs": { diff --git a/packages/plugins/eslint-plugin-react-debug/package.json b/packages/plugins/eslint-plugin-react-debug/package.json index 8d47a3b22..5e65ecde4 100644 --- a/packages/plugins/eslint-plugin-react-debug/package.json +++ b/packages/plugins/eslint-plugin-react-debug/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-react-debug", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's ESLint plugin for debugging related rules.", "keywords": [ "react", diff --git a/packages/plugins/eslint-plugin-react-dom/package.json b/packages/plugins/eslint-plugin-react-dom/package.json index b0bfd9909..e02e6dc73 100644 --- a/packages/plugins/eslint-plugin-react-dom/package.json +++ b/packages/plugins/eslint-plugin-react-dom/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-react-dom", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's ESLint plugin for React DOM related rules.", "keywords": [ "react", diff --git a/packages/plugins/eslint-plugin-react-hooks-extra/package.json b/packages/plugins/eslint-plugin-react-hooks-extra/package.json index bdc6a4ee6..71c5f3626 100644 --- a/packages/plugins/eslint-plugin-react-hooks-extra/package.json +++ b/packages/plugins/eslint-plugin-react-hooks-extra/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-react-hooks-extra", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's ESLint plugin for React Hooks related rules.", "keywords": [ "react", diff --git a/packages/plugins/eslint-plugin-react-naming-convention/package.json b/packages/plugins/eslint-plugin-react-naming-convention/package.json index 5e137fa8d..6b717e4ee 100644 --- a/packages/plugins/eslint-plugin-react-naming-convention/package.json +++ b/packages/plugins/eslint-plugin-react-naming-convention/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-react-naming-convention", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's ESLint plugin for naming convention related rules.", "keywords": [ "react", diff --git a/packages/plugins/eslint-plugin-react-web-api/package.json b/packages/plugins/eslint-plugin-react-web-api/package.json index 08d55e2f2..6590df4ae 100644 --- a/packages/plugins/eslint-plugin-react-web-api/package.json +++ b/packages/plugins/eslint-plugin-react-web-api/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-react-web-api", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's ESLint plugin for interacting with Web APIs", "keywords": [ "react", diff --git a/packages/plugins/eslint-plugin-react-x/package.json b/packages/plugins/eslint-plugin-react-x/package.json index 2daad8d4a..e68142822 100644 --- a/packages/plugins/eslint-plugin-react-x/package.json +++ b/packages/plugins/eslint-plugin-react-x/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-react-x", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "A set of composable linting rules for libraries and frameworks that use React as a UI runtime.", "keywords": [ "react", diff --git a/packages/plugins/eslint-plugin/package.json b/packages/plugins/eslint-plugin/package.json index 3b7d90717..da24ea652 100644 --- a/packages/plugins/eslint-plugin/package.json +++ b/packages/plugins/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-react/eslint-plugin", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "More than 80 high-quality linting rules for writing better React code.", "keywords": [ "react", diff --git a/packages/shared/docs/variables/CustomComponentPropSchema.md b/packages/shared/docs/variables/CustomComponentPropSchema.md index da743c420..e4ae4b308 100644 --- a/packages/shared/docs/variables/CustomComponentPropSchema.md +++ b/packages/shared/docs/variables/CustomComponentPropSchema.md @@ -6,4 +6,4 @@ # Variable: CustomComponentPropSchema -> `const` **CustomComponentPropSchema**: [`ObjectSchema`](../-internal-/interfaces/ObjectSchema.md)\<\{ `as`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `controlled`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`BooleanSchema`](../-internal-/interfaces/BooleanSchema.md)\<`undefined`\>, `undefined`\>; `defaultValue`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `name`: [`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>; \}, `undefined`\> +> `const` **CustomComponentPropSchema**: [`ObjectSchema`](../-internal-/interfaces/ObjectSchema.md)\<\{ `as`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `defaultValue`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `name`: [`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>; \}, `undefined`\> diff --git a/packages/shared/docs/variables/CustomComponentSchema.md b/packages/shared/docs/variables/CustomComponentSchema.md index acd84fb0a..08d9a9425 100644 --- a/packages/shared/docs/variables/CustomComponentSchema.md +++ b/packages/shared/docs/variables/CustomComponentSchema.md @@ -6,7 +6,7 @@ # Variable: CustomComponentSchema -> `const` **CustomComponentSchema**: [`ObjectSchema`](../-internal-/interfaces/ObjectSchema.md)\<\{ `as`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `attributes`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`ArraySchema`](../-internal-/interfaces/ArraySchema.md)\<[`ObjectSchema`](../-internal-/interfaces/ObjectSchema.md)\<\{ `as`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `controlled`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`BooleanSchema`](../-internal-/interfaces/BooleanSchema.md)\<`undefined`\>, `undefined`\>; `defaultValue`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `name`: [`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>; \}, `undefined`\>, `undefined`\>, `undefined`\>; `name`: [`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>; \}, `undefined`\> +> `const` **CustomComponentSchema**: [`ObjectSchema`](../-internal-/interfaces/ObjectSchema.md)\<\{ `as`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `attributes`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`ArraySchema`](../-internal-/interfaces/ArraySchema.md)\<[`ObjectSchema`](../-internal-/interfaces/ObjectSchema.md)\<\{ `as`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `defaultValue`: [`OptionalSchema`](../-internal-/interfaces/OptionalSchema.md)\<[`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>, `undefined`\>; `name`: [`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>; \}, `undefined`\>, `undefined`\>, `undefined`\>; `name`: [`StringSchema`](../-internal-/interfaces/StringSchema.md)\<`undefined`\>; \}, `undefined`\> ## Description diff --git a/packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md b/packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md index c3494d023..8782c40ee 100644 --- a/packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md +++ b/packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md @@ -44,13 +44,33 @@ This is used to inform the ESLint React plugins how to treat these components du > `readonly` **importSource**: `"react"` = `"react"` -### jsxPragma +### ~~jsxPragma?~~ -> `readonly` **jsxPragma**: `"createElement"` = `"createElement"` +> `readonly` `optional` **jsxPragma**: `string` -### jsxPragmaFrag +The identifier that’s used for JSX Element creation. -> `readonly` **jsxPragmaFrag**: `"Fragment"` = `"Fragment"` +#### Default + +`"createElement"` + +#### Deprecated + +### ~~jsxPragmaFrag?~~ + +> `readonly` `optional` **jsxPragmaFrag**: `string` + +The identifier that’s used for JSX fragment elements. + +#### Description + +This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment"). + +#### Default + +`"Fragment"` + +#### Deprecated ### polymorphicPropName @@ -60,10 +80,6 @@ This is used to inform the ESLint React plugins how to treat these components du > `readonly` **skipImportCheck**: `true` = `true` -### strict - -> `readonly` **strict**: `false` = `false` - ### version > `readonly` **version**: `"detect"` = `"detect"` diff --git a/packages/shared/package.json b/packages/shared/package.json index 6988da7dc..e2aa5cdcd 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-react/shared", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's Shared constants and functions.", "homepage": "https://github.com/Rel1cx/eslint-react", "bugs": { diff --git a/packages/shared/src/schemas.ts b/packages/shared/src/schemas.ts index 35784ad35..ca59f90b2 100644 --- a/packages/shared/src/schemas.ts +++ b/packages/shared/src/schemas.ts @@ -17,6 +17,7 @@ export const CustomComponentPropSchema = object({ as: optional(string()), /** * Whether the prop is controlled or not in the user-defined component. + * @internal * @example * `true` */ @@ -174,11 +175,8 @@ export type ESLintSettings = InferOutput; export const DEFAULT_ESLINT_REACT_SETTINGS = { ...parse(ESLintReactSettingsSchema, {}), importSource: "react", - jsxPragma: "createElement", - jsxPragmaFrag: "Fragment", polymorphicPropName: "as", skipImportCheck: true, - strict: false, version: "detect", additionalHooks: { useEffect: ["useIsomorphicLayoutEffect"], diff --git a/packages/utilities/ast/package.json b/packages/utilities/ast/package.json index 3aac82048..c4488e352 100644 --- a/packages/utilities/ast/package.json +++ b/packages/utilities/ast/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-react/ast", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's TSESTree AST utility module.", "homepage": "https://github.com/Rel1cx/eslint-react", "bugs": { diff --git a/packages/utilities/eff/package.json b/packages/utilities/eff/package.json index 84b3d881c..4b7eb0c5f 100644 --- a/packages/utilities/eff/package.json +++ b/packages/utilities/eff/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-react/eff", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "JavaScript and TypeScript utilities (previously some re-exports of the effect library).", "homepage": "https://github.com/Rel1cx/eslint-react", "bugs": { diff --git a/packages/utilities/jsx/package.json b/packages/utilities/jsx/package.json index c70cc5fc0..6f25053cb 100644 --- a/packages/utilities/jsx/package.json +++ b/packages/utilities/jsx/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-react/jsx", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's TSESTree AST utility module for static analysis of JSX.", "homepage": "https://github.com/Rel1cx/eslint-react", "bugs": { diff --git a/packages/utilities/var/package.json b/packages/utilities/var/package.json index 59917f227..bbeb868e9 100644 --- a/packages/utilities/var/package.json +++ b/packages/utilities/var/package.json @@ -1,6 +1,6 @@ { "name": "@eslint-react/var", - "version": "1.28.1-next.4", + "version": "1.28.1-beta.4", "description": "ESLint React's TSESTree AST utility module for static analysis of variables.", "homepage": "https://github.com/Rel1cx/eslint-react", "bugs": {