Skip to content

Commit 43ca40b

Browse files
chore(eslint): ignore eslint error as it is false positive because process.env.NODE_ENV never changes during runtime
1 parent ae26fb0 commit 43ca40b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/Accordion/AccordionAccordion.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ const AccordionAccordion = React.forwardRef(function (props, ref) {
6464
})
6565

6666
if (process.env.NODE_ENV !== 'production') {
67+
// Following eslint error is ignored because process.env.NODE_ENV does not change during runtime,
68+
// so it is not actually a problem because the useEffect will be called either always or never
69+
// eslint-disable-next-line react-hooks/rules-of-hooks
6770
React.useEffect(() => {
6871
/* eslint-disable no-console */
6972
if (exclusive && typeof activeIndex !== 'number') {

0 commit comments

Comments
 (0)