eslint-plugin-react-jsx 5.21.1 → 5.21.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 +2 -2
- package/package.json +6 -6
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.21.
|
|
29
|
+
var version = "5.21.2";
|
|
30
30
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region src/utils/create-rule.ts
|
|
@@ -739,7 +739,7 @@ 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.
|
|
742
|
+
const isJsxSpreadAttribute = Check.isJSXSpreadAttribute;
|
|
743
743
|
return { JSXOpeningElement(node) {
|
|
744
744
|
for (const n of dropWhile(node.attributes, not(isJsxSpreadAttribute)).filter(isAttribute("key"))) context.report({
|
|
745
745
|
messageId: "default",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-jsx",
|
|
3
|
-
"version": "5.21.
|
|
3
|
+
"version": "5.21.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.21.
|
|
41
|
-
"@eslint-react/core": "5.21.
|
|
42
|
-
"@eslint-react/eslint": "5.21.
|
|
43
|
-
"@eslint-react/jsx": "5.21.
|
|
44
|
-
"@eslint-react/shared": "5.21.
|
|
40
|
+
"@eslint-react/ast": "5.21.2",
|
|
41
|
+
"@eslint-react/core": "5.21.2",
|
|
42
|
+
"@eslint-react/eslint": "5.21.2",
|
|
43
|
+
"@eslint-react/jsx": "5.21.2",
|
|
44
|
+
"@eslint-react/shared": "5.21.2",
|
|
45
45
|
"@typescript-eslint/types": "^8.70.1",
|
|
46
46
|
"@typescript-eslint/utils": "^8.70.1"
|
|
47
47
|
},
|