eslint-plugin-react-x 2.12.5-beta.2 → 2.12.5-beta.3
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 +4 -4
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -67,7 +67,7 @@ const rules$7 = {
|
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region package.json
|
|
69
69
|
var name$6 = "eslint-plugin-react-x";
|
|
70
|
-
var version = "2.12.5-beta.
|
|
70
|
+
var version = "2.12.5-beta.3";
|
|
71
71
|
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/utils/create-rule.ts
|
|
@@ -1595,7 +1595,7 @@ var no_missing_key_default = createRule({
|
|
|
1595
1595
|
type: "problem",
|
|
1596
1596
|
docs: { description: "Disallows missing 'key' on items in list rendering." },
|
|
1597
1597
|
messages: {
|
|
1598
|
-
|
|
1598
|
+
default: "Missing 'key' for element when rendering list.",
|
|
1599
1599
|
unexpectedFragmentSyntax: "Use fragment component instead of '<>' because it does not support `key`."
|
|
1600
1600
|
},
|
|
1601
1601
|
schema: []
|
|
@@ -1608,7 +1608,7 @@ function create$31(ctx) {
|
|
|
1608
1608
|
let inChildrenToArray = false;
|
|
1609
1609
|
function check(node) {
|
|
1610
1610
|
if (node.type === AST_NODE_TYPES.JSXElement) return core.getJsxAttribute(ctx, node)("key") == null ? {
|
|
1611
|
-
messageId: "
|
|
1611
|
+
messageId: "default",
|
|
1612
1612
|
node
|
|
1613
1613
|
} : null;
|
|
1614
1614
|
if (node.type === AST_NODE_TYPES.JSXFragment) return {
|
|
@@ -1636,7 +1636,7 @@ function create$31(ctx) {
|
|
|
1636
1636
|
if (elements.length === 0) return;
|
|
1637
1637
|
const scope = ctx.sourceCode.getScope(node);
|
|
1638
1638
|
for (const el of elements) if (core.getJsxAttribute(ctx, el, scope)("key") == null) ctx.report({
|
|
1639
|
-
messageId: "
|
|
1639
|
+
messageId: "default",
|
|
1640
1640
|
node: el
|
|
1641
1641
|
});
|
|
1642
1642
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "2.12.5-beta.
|
|
3
|
+
"version": "2.12.5-beta.3",
|
|
4
4
|
"description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"is-immutable-type": "^5.0.1",
|
|
46
46
|
"ts-api-utils": "^2.4.0",
|
|
47
47
|
"ts-pattern": "^5.9.0",
|
|
48
|
-
"@eslint-react/ast": "2.12.5-beta.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"@eslint-react/
|
|
48
|
+
"@eslint-react/ast": "2.12.5-beta.3",
|
|
49
|
+
"@eslint-react/core": "2.12.5-beta.3",
|
|
50
|
+
"@eslint-react/eff": "2.12.5-beta.3",
|
|
51
|
+
"@eslint-react/shared": "2.12.5-beta.3",
|
|
52
|
+
"@eslint-react/var": "2.12.5-beta.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/react": "^19.2.13",
|