eslint-plugin-react-jsx 5.26.1 → 5.26.2
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 +9 -9
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region package.json
|
|
22
22
|
var name$2 = "eslint-plugin-react-jsx";
|
|
23
|
-
var version = "5.26.
|
|
23
|
+
var version = "5.26.2";
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/utils/create-rule.ts
|
|
26
26
|
function getDocsUrl(ruleName) {
|
|
@@ -42,8 +42,8 @@ var no_children_prop_with_children_default = createRule({
|
|
|
42
42
|
hasSuggestions: true,
|
|
43
43
|
messages: {
|
|
44
44
|
default: "Do not pass 'children' as a prop when the element already has children content.",
|
|
45
|
-
"remove-children-
|
|
46
|
-
"remove-children-
|
|
45
|
+
"remove-children-prop": "Remove the 'children' prop.",
|
|
46
|
+
"remove-children-content": "Remove the nested children content."
|
|
47
47
|
},
|
|
48
48
|
schema: []
|
|
49
49
|
},
|
|
@@ -100,7 +100,7 @@ var no_children_prop_default = createRule({
|
|
|
100
100
|
hasSuggestions: true,
|
|
101
101
|
messages: {
|
|
102
102
|
default: "Do not pass 'children' as props.",
|
|
103
|
-
|
|
103
|
+
suggest: "Move 'children' to element content."
|
|
104
104
|
},
|
|
105
105
|
schema: []
|
|
106
106
|
},
|
|
@@ -140,7 +140,7 @@ function create$6(context) {
|
|
|
140
140
|
node: prop,
|
|
141
141
|
suggest: [{
|
|
142
142
|
fix: buildFix$1(context, node, prop, childrenText),
|
|
143
|
-
messageId: "
|
|
143
|
+
messageId: "suggest"
|
|
144
144
|
}]
|
|
145
145
|
});
|
|
146
146
|
}
|
|
@@ -318,7 +318,7 @@ var no_leaked_dollar_default = createRule({
|
|
|
318
318
|
hasSuggestions: true,
|
|
319
319
|
messages: {
|
|
320
320
|
default: "Leaked '$' in JSX. This '$' will be rendered as text nodes.",
|
|
321
|
-
|
|
321
|
+
suggest: "Remove the text node '$'."
|
|
322
322
|
},
|
|
323
323
|
schema: []
|
|
324
324
|
},
|
|
@@ -346,7 +346,7 @@ function create$3(context) {
|
|
|
346
346
|
fix(fixer) {
|
|
347
347
|
return fixer.removeRange([dollarStart, dollarEnd]);
|
|
348
348
|
},
|
|
349
|
-
messageId: "
|
|
349
|
+
messageId: "suggest"
|
|
350
350
|
}]
|
|
351
351
|
});
|
|
352
352
|
}
|
|
@@ -369,7 +369,7 @@ var no_leaked_semicolon_default = createRule({
|
|
|
369
369
|
hasSuggestions: true,
|
|
370
370
|
messages: {
|
|
371
371
|
default: "Leaked ';' in JSX. This ';' will be rendered as text nodes.",
|
|
372
|
-
|
|
372
|
+
suggest: "Remove the text node ';'."
|
|
373
373
|
},
|
|
374
374
|
schema: []
|
|
375
375
|
},
|
|
@@ -387,7 +387,7 @@ function create$2(context) {
|
|
|
387
387
|
fix(fixer) {
|
|
388
388
|
return fixer.removeRange([node.range[0], node.range[0] + 1]);
|
|
389
389
|
},
|
|
390
|
-
messageId: "
|
|
390
|
+
messageId: "suggest"
|
|
391
391
|
}]
|
|
392
392
|
});
|
|
393
393
|
} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-jsx",
|
|
3
|
-
"version": "5.26.
|
|
3
|
+
"version": "5.26.2",
|
|
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.26.
|
|
41
|
-
"@eslint-react/core": "5.26.
|
|
42
|
-
"@eslint-react/eslint": "5.26.
|
|
43
|
-
"@eslint-react/jsx": "5.26.
|
|
44
|
-
"@eslint-react/shared": "5.26.
|
|
40
|
+
"@eslint-react/ast": "5.26.2",
|
|
41
|
+
"@eslint-react/core": "5.26.2",
|
|
42
|
+
"@eslint-react/eslint": "5.26.2",
|
|
43
|
+
"@eslint-react/jsx": "5.26.2",
|
|
44
|
+
"@eslint-react/shared": "5.26.2",
|
|
45
45
|
"@typescript-eslint/types": "^8.71.1",
|
|
46
46
|
"@typescript-eslint/utils": "^8.71.1"
|
|
47
47
|
},
|