eslint-plugin-react-jsx 5.30.0-rc.1 → 5.30.0
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.js +6 -6
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -8,18 +8,18 @@ import * as core from "@eslint-react/core";
|
|
|
8
8
|
import ts from "typescript";
|
|
9
9
|
// \0rolldown/runtime.js
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
|
-
var __exportAll = (all,
|
|
12
|
-
let target = {};
|
|
11
|
+
var __exportAll = (all, flags) => {
|
|
12
|
+
let target = Object.setPrototypeOf({}, null);
|
|
13
13
|
for (var name in all) __defProp(target, name, {
|
|
14
14
|
get: all[name],
|
|
15
15
|
enumerable: true
|
|
16
16
|
});
|
|
17
|
-
if (!
|
|
18
|
-
return target;
|
|
17
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
18
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
19
19
|
};
|
|
20
20
|
// package.json
|
|
21
21
|
var name$2 = "eslint-plugin-react-jsx";
|
|
22
|
-
var version = "5.30.0
|
|
22
|
+
var version = "5.30.0";
|
|
23
23
|
// src/utils/create-rule.ts
|
|
24
24
|
function getDocsUrl(ruleName) {
|
|
25
25
|
return `https://eslint-react.xyz/docs/rules/jsx-${ruleName}`;
|
|
@@ -372,7 +372,7 @@ function create$2(context) {
|
|
|
372
372
|
const text = getText(context, node);
|
|
373
373
|
const children = node.parent.children;
|
|
374
374
|
const previous = children.at(-2);
|
|
375
|
-
const isSameLineLeak = children.at(-1) === node && previous != null && Check.isJSXElementOrFragment(previous) && /^;+[ \t]*$/u.test(text);
|
|
375
|
+
const isSameLineLeak = children.at(-1) === node && previous != null && (Check.isJSXElementOrFragment(previous) || Check.isJSXExpressionContainer(previous)) && /^;+[ \t]*$/u.test(text);
|
|
376
376
|
if (!/^;+[ \t]*(?:\r\n|\r|\n)/u.test(text) && !isSameLineLeak) return;
|
|
377
377
|
context.report({
|
|
378
378
|
messageId: "default",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-jsx",
|
|
3
|
-
"version": "5.30.0
|
|
3
|
+
"version": "5.30.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Flavored JSX rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eslint-react/ast": "5.30.0
|
|
41
|
-
"@eslint-react/core": "5.30.0
|
|
42
|
-
"@eslint-react/eslint": "5.30.0
|
|
43
|
-
"@eslint-react/jsx": "5.30.0
|
|
44
|
-
"@eslint-react/shared": "5.30.0
|
|
40
|
+
"@eslint-react/ast": "5.30.0",
|
|
41
|
+
"@eslint-react/core": "5.30.0",
|
|
42
|
+
"@eslint-react/eslint": "5.30.0",
|
|
43
|
+
"@eslint-react/jsx": "5.30.0",
|
|
44
|
+
"@eslint-react/shared": "5.30.0",
|
|
45
45
|
"@typescript-eslint/types": "^8.72.1",
|
|
46
46
|
"@typescript-eslint/utils": "^8.72.1"
|
|
47
47
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@types/react-dom": "^19.3.0",
|
|
56
56
|
"dedent": "^1.7.2",
|
|
57
57
|
"eslint": "^10.14.0",
|
|
58
|
-
"tsdown": "^0.23.
|
|
58
|
+
"tsdown": "^0.23.7",
|
|
59
59
|
"typescript": "6.0.3"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|