eslint-plugin-react-jsx 5.22.0 → 5.23.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -3
  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.22.0";
29
+ var version = "5.23.0";
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(isJsxSpreadAttribute)).filter(isAttribute("key"))) context.report({
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.22.0",
3
+ "version": "5.23.0",
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.22.0",
41
- "@eslint-react/core": "5.22.0",
42
- "@eslint-react/eslint": "5.22.0",
43
- "@eslint-react/jsx": "5.22.0",
44
- "@eslint-react/shared": "5.22.0",
40
+ "@eslint-react/ast": "5.23.0",
41
+ "@eslint-react/core": "5.23.0",
42
+ "@eslint-react/eslint": "5.23.0",
43
+ "@eslint-react/jsx": "5.23.0",
44
+ "@eslint-react/shared": "5.23.0",
45
45
  "@typescript-eslint/types": "^8.70.1",
46
46
  "@typescript-eslint/utils": "^8.70.1"
47
47
  },