Skip to content

Commit bc447d1

Browse files
committed
release: 1.41.0-next.1
1 parent 8319d53 commit bc447d1

File tree

20 files changed

+48
-40
lines changed

20 files changed

+48
-40
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.41.0-beta.0
1+
1.41.0-next.1

examples/vite-react-dom-app/eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default tseslint.config(
5858
},
5959
rules: {
6060
...eslintPluginReactHooks.configs.recommended.rules,
61+
"@eslint-react/debug/jsx": "warn",
6162
},
6263
},
6364
);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/monorepo",
3-
"version": "1.41.0-beta.0",
3+
"version": "1.41.0-next.1",
44
"private": true,
55
"description": "Monorepo for eslint-plugin-react-[x, dom, web-api, hooks-extra, naming-convention].",
66
"keywords": [

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/core",
3-
"version": "1.41.0-beta.0",
3+
"version": "1.41.0-next.1",
44
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
55
"homepage": "https://github.com/Rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-react-debug/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-debug",
3-
"version": "1.41.0-beta.0",
3+
"version": "1.41.0-next.1",
44
"description": "ESLint React's ESLint plugin for debugging related rules.",
55
"keywords": [
66
"react",

packages/plugins/eslint-plugin-react-debug/src/rules/jsx.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ruleTester.run(RULE_NAME, rule, {
2828
{
2929
messageId: "jsx",
3030
data: {
31-
jsx: JsxEmit.ReactJSX,
31+
jsx: "react-jsx",
3232
jsxFactory: "React.createElement",
3333
jsxFragmentFactory: "React.Fragment",
3434
jsxImportSource: "react",
@@ -50,7 +50,7 @@ ruleTester.run(RULE_NAME, rule, {
5050
{
5151
messageId: "jsx",
5252
data: {
53-
jsx: JsxEmit.React,
53+
jsx: "react",
5454
jsxFactory: "Preact.h",
5555
jsxFragmentFactory: "Preact.Fragment",
5656
jsxImportSource: "preact",
@@ -69,7 +69,7 @@ ruleTester.run(RULE_NAME, rule, {
6969
{
7070
messageId: "jsx",
7171
data: {
72-
jsx: JsxEmit.React,
72+
jsx: "react",
7373
jsxFactory: "React.createElement",
7474
jsxFragmentFactory: "React.Fragment",
7575
jsxImportSource: "react",

packages/plugins/eslint-plugin-react-debug/src/rules/jsx.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,18 @@ export function create(context: RuleContext<MessageID, []>): RuleListener {
4343
const baseDescriptor = {
4444
messageId: "jsx",
4545
data: {
46-
jsx: jsxConfig.jsx,
46+
jsx: match(jsxConfig.jsx)
47+
.with(JsxEmit.None, () => "none")
48+
.with(JsxEmit.ReactJSX, () => "react-jsx")
49+
.with(JsxEmit.ReactJSXDev, () => "react-jsx-dev")
50+
.with(JsxEmit.React, () => "react")
51+
.with(JsxEmit.ReactNative, () => "react-native")
52+
.with(JsxEmit.Preserve, () => "preserve")
53+
.otherwise(() => "unknown"),
4754
jsxFactory: jsxConfig.jsxFactory,
4855
jsxFragmentFactory: jsxConfig.jsxFragmentFactory,
4956
jsxImportSource: jsxConfig.jsxImportSource,
50-
jsxRuntime: match<JsxEmit>(jsxConfig.jsx)
57+
jsxRuntime: match(jsxConfig.jsx)
5158
.with(P.union(JsxEmit.None, JsxEmit.ReactJSX, JsxEmit.ReactJSXDev), () => "automatic")
5259
.otherwise(() => "classic"),
5360
},

packages/plugins/eslint-plugin-react-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-dom",
3-
"version": "1.41.0-beta.0",
3+
"version": "1.41.0-next.1",
44
"description": "ESLint React's ESLint plugin for React DOM related rules.",
55
"keywords": [
66
"react",

packages/plugins/eslint-plugin-react-hooks-extra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-hooks-extra",
3-
"version": "1.41.0-beta.0",
3+
"version": "1.41.0-next.1",
44
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
55
"keywords": [
66
"react",

packages/plugins/eslint-plugin-react-naming-convention/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-naming-convention",
3-
"version": "1.41.0-beta.0",
3+
"version": "1.41.0-next.1",
44
"description": "ESLint React's ESLint plugin for naming convention related rules.",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)