From 3c6c7b32217ebbae302e3c791e2d8b6ef748aee3 Mon Sep 17 00:00:00 2001 From: Yu Yi Yang Date: Thu, 11 Jul 2024 18:57:28 +0200 Subject: [PATCH] fix linter and test errors --- config/eslint-react.js | 2 +- src/Containers/ReqDetailContainer.jsx | 1 + .../Containers/__snapshots__/ReqDetailContainer.spec.jsx.snap | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/eslint-react.js b/config/eslint-react.js index fbe7dc4..47ab70e 100644 --- a/config/eslint-react.js +++ b/config/eslint-react.js @@ -33,7 +33,7 @@ const config = deepMerge(baseConfig, { when: 'always', }], 'react/jsx-sort-props': 2, - 'react/jsx-sort-default-props': [2, { + 'react/sort-default-props': [2, { ignoreCase: true, }], 'react/jsx-tag-spacing': [2, { diff --git a/src/Containers/ReqDetailContainer.jsx b/src/Containers/ReqDetailContainer.jsx index 2ff0e73..6d355ec 100644 --- a/src/Containers/ReqDetailContainer.jsx +++ b/src/Containers/ReqDetailContainer.jsx @@ -18,6 +18,7 @@ const ReqDetailContainer = () => { return (