Skip to content

Commit f6aee38

Browse files
committed
Fix linting errors
1 parent e84eaec commit f6aee38

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"react/jsx-boolean-value": [0],
2121
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
2222
"react/default-props-match-prop-types": "off",
23-
"jsx-a11y/no-static-element-interactions": [0]
23+
"jsx-a11y/no-static-element-interactions": [0],
24+
"react/destructuring-assignment": "off"
2425
},
2526
"env": {
2627
"jest": true,

src/AccordionContainer/AccordionContainer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// @flow
22

3+
// Eslint doesn't understand that this 'Container' component is not a Stateless Functional Component.
4+
/* eslint-disable react/no-this-in-sfc */
5+
36
import { Container } from 'unstated';
47

58
export type Item = {
@@ -82,7 +85,8 @@ class AccordionContainer extends Container<StoreState> {
8285
...item,
8386
expanded,
8487
};
85-
} else if (state.accordion && expanded) {
88+
}
89+
if (state.accordion && expanded) {
8690
// If this is an accordion, we might need to collapse the other expanded item.
8791
return {
8892
...item,

0 commit comments

Comments
 (0)