eslint-plugin-react-jsx 5.8.5 → 5.8.7-beta.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 +10 -4
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region package.json
|
|
28
28
|
var name$2 = "eslint-plugin-react-jsx";
|
|
29
|
-
var version = "5.8.
|
|
29
|
+
var version = "5.8.7-beta.0";
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/utils/create-rule.ts
|
|
@@ -471,10 +471,16 @@ function create$1(context) {
|
|
|
471
471
|
//#endregion
|
|
472
472
|
//#region src/rules/no-useless-fragment/lib.ts
|
|
473
473
|
/**
|
|
474
|
-
* Trim leading / trailing whitespace
|
|
475
|
-
*
|
|
474
|
+
* Trim leading / trailing whitespace that spans across a newline.
|
|
475
|
+
*
|
|
476
|
+
* This is used by the auto-fixer to remove indentation / formatting artefacts
|
|
477
|
+
* from the raw source text between a fragment's opening and closing tags,
|
|
478
|
+
* producing cleaner unwrapped output. It does **not** model React's rendering
|
|
479
|
+
* behaviour — React DOM preserves text nodes exactly as written.
|
|
480
|
+
*
|
|
481
|
+
* Whitespace that contains a newline is stripped entirely;
|
|
476
482
|
* whitespace that stays on the same line is preserved.
|
|
477
|
-
* @param text The
|
|
483
|
+
* @param text The raw source text between JSX tags.
|
|
478
484
|
*/
|
|
479
485
|
function trimLikeReact(text) {
|
|
480
486
|
const leadingSpaces = /^\s*/.exec(text)?.[0] ?? "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-jsx",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.7-beta.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Flavored JSX rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/types": "^8.
|
|
41
|
-
"@typescript-eslint/utils": "^8.
|
|
42
|
-
"@eslint-react/ast": "5.8.
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
40
|
+
"@typescript-eslint/types": "^8.60.0",
|
|
41
|
+
"@typescript-eslint/utils": "^8.60.0",
|
|
42
|
+
"@eslint-react/ast": "5.8.7-beta.0",
|
|
43
|
+
"@eslint-react/core": "5.8.7-beta.0",
|
|
44
|
+
"@eslint-react/eslint": "5.8.7-beta.0",
|
|
45
|
+
"@eslint-react/jsx": "5.8.7-beta.0",
|
|
46
|
+
"@eslint-react/shared": "5.8.7-beta.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/react": "^19.2.15",
|
|
50
50
|
"@types/react-dom": "^19.2.3",
|
|
51
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
51
|
+
"@typescript-eslint/rule-tester": "^8.60.0",
|
|
52
52
|
"dedent": "^1.7.2",
|
|
53
53
|
"eslint": "^10.4.0",
|
|
54
54
|
"tsdown": "^0.22.0",
|
|
55
|
-
"typescript": "
|
|
55
|
+
"typescript": "5.9.3",
|
|
56
56
|
"@local/configs": "0.0.0",
|
|
57
57
|
"@local/eff": "3.0.0-beta.72"
|
|
58
58
|
},
|