eslint-plugin-react-jsx 5.22.1 → 5.23.1
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 +2 -3
- package/package.json +8 -8
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.
|
|
29
|
+
var version = "5.23.1";
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/utils/create-rule.ts
|
|
@@ -739,9 +739,8 @@ function create$4(context) {
|
|
|
739
739
|
if (!context.sourceCode.text.includes("key=")) return {};
|
|
740
740
|
const { jsx } = core.getJsxConfig(context);
|
|
741
741
|
if (jsx !== ts.JsxEmit.ReactJSX && jsx !== ts.JsxEmit.ReactJSXDev) return {};
|
|
742
|
-
const isJsxSpreadAttribute = Check.isJSXSpreadAttribute;
|
|
743
742
|
return { JSXOpeningElement(node) {
|
|
744
|
-
for (const n of dropWhile(node.attributes, not(
|
|
743
|
+
for (const n of dropWhile(node.attributes, not(Check.isJSXSpreadAttribute)).filter(isAttribute("key"))) context.report({
|
|
745
744
|
messageId: "default",
|
|
746
745
|
node: n
|
|
747
746
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-jsx",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.23.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Flavored JSX rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eslint-react/ast": "5.
|
|
41
|
-
"@eslint-react/core": "5.
|
|
42
|
-
"@eslint-react/eslint": "5.
|
|
43
|
-
"@eslint-react/jsx": "5.
|
|
44
|
-
"@eslint-react/shared": "5.
|
|
45
|
-
"@typescript-eslint/types": "^8.
|
|
46
|
-
"@typescript-eslint/utils": "^8.
|
|
40
|
+
"@eslint-react/ast": "5.23.1",
|
|
41
|
+
"@eslint-react/core": "5.23.1",
|
|
42
|
+
"@eslint-react/eslint": "5.23.1",
|
|
43
|
+
"@eslint-react/jsx": "5.23.1",
|
|
44
|
+
"@eslint-react/shared": "5.23.1",
|
|
45
|
+
"@typescript-eslint/types": "^8.71.0",
|
|
46
|
+
"@typescript-eslint/utils": "^8.71.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@local/configs": "0.0.0",
|