eslint-plugin-react-jsx 5.21.1 → 5.21.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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.1";
29
+ var version = "5.21.3";
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.is(AST_NODE_TYPES.JSXSpreadAttribute);
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.1",
3
+ "version": "5.21.3",
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.1",
41
- "@eslint-react/core": "5.21.1",
42
- "@eslint-react/eslint": "5.21.1",
43
- "@eslint-react/jsx": "5.21.1",
44
- "@eslint-react/shared": "5.21.1",
40
+ "@eslint-react/ast": "5.21.3",
41
+ "@eslint-react/core": "5.21.3",
42
+ "@eslint-react/eslint": "5.21.3",
43
+ "@eslint-react/jsx": "5.21.3",
44
+ "@eslint-react/shared": "5.21.3",
45
45
  "@typescript-eslint/types": "^8.70.1",
46
46
  "@typescript-eslint/utils": "^8.70.1"
47
47
  },