Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryami333 committed Jul 21, 2018
1 parent e84eaec commit f6aee38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Expand Up @@ -20,7 +20,8 @@
"react/jsx-boolean-value": [0],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/default-props-match-prop-types": "off",
"jsx-a11y/no-static-element-interactions": [0]
"jsx-a11y/no-static-element-interactions": [0],
"react/destructuring-assignment": "off"
},
"env": {
"jest": true,
Expand Down
6 changes: 5 additions & 1 deletion src/AccordionContainer/AccordionContainer.js
@@ -1,5 +1,8 @@
// @flow

// Eslint doesn't understand that this 'Container' component is not a Stateless Functional Component.
/* eslint-disable react/no-this-in-sfc */

import { Container } from 'unstated';

export type Item = {
Expand Down Expand Up @@ -82,7 +85,8 @@ class AccordionContainer extends Container<StoreState> {
...item,
expanded,
};
} else if (state.accordion && expanded) {
}
if (state.accordion && expanded) {
// If this is an accordion, we might need to collapse the other expanded item.
return {
...item,
Expand Down

0 comments on commit f6aee38

Please sign in to comment.