diff options
Diffstat (limited to 'src/features/todos')
-rw-r--r-- | src/features/todos/actions.ts | 1 | ||||
-rw-r--r-- | src/features/todos/components/TodosWebview.tsx | 3 | ||||
-rw-r--r-- | src/features/todos/index.ts | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/features/todos/actions.ts b/src/features/todos/actions.ts index c2000752f..27c7e489b 100644 --- a/src/features/todos/actions.ts +++ b/src/features/todos/actions.ts | |||
@@ -36,6 +36,7 @@ export const todoActions = createActionsFromDefinitions<TodoActionsType>( | |||
36 | channel: PropTypes.string.isRequired, | 36 | channel: PropTypes.string.isRequired, |
37 | message: PropTypes.shape({ | 37 | message: PropTypes.shape({ |
38 | action: PropTypes.string.isRequired, | 38 | action: PropTypes.string.isRequired, |
39 | // eslint-disable-next-line react/forbid-prop-types | ||
39 | data: PropTypes.object, | 40 | data: PropTypes.object, |
40 | }), | 41 | }), |
41 | }, | 42 | }, |
diff --git a/src/features/todos/components/TodosWebview.tsx b/src/features/todos/components/TodosWebview.tsx index f9493d519..544768bbf 100644 --- a/src/features/todos/components/TodosWebview.tsx +++ b/src/features/todos/components/TodosWebview.tsx | |||
@@ -92,6 +92,7 @@ class TodosWebview extends Component<IProps, IState> { | |||
92 | } | 92 | } |
93 | 93 | ||
94 | componentDidMount() { | 94 | componentDidMount() { |
95 | // eslint-disable-next-line @eslint-react/no-set-state-in-component-did-mount | ||
95 | this.setState({ | 96 | this.setState({ |
96 | width: this.props.width, | 97 | width: this.props.width, |
97 | }); | 98 | }); |
@@ -173,6 +174,7 @@ class TodosWebview extends Component<IProps, IState> { | |||
173 | } | 174 | } |
174 | 175 | ||
175 | return ( | 176 | return ( |
177 | // eslint-disable-next-line jsx-a11y/no-static-element-interactions | ||
176 | <div | 178 | <div |
177 | className={classnames({ | 179 | className={classnames({ |
178 | [classes.root]: true, | 180 | [classes.root]: true, |
@@ -185,6 +187,7 @@ class TodosWebview extends Component<IProps, IState> { | |||
185 | ref={this.node} | 187 | ref={this.node} |
186 | id="todos-panel" | 188 | id="todos-panel" |
187 | > | 189 | > |
190 | {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */} | ||
188 | <div | 191 | <div |
189 | className={classes.resizeHandler} | 192 | className={classes.resizeHandler} |
190 | style={{ | 193 | style={{ |
diff --git a/src/features/todos/index.ts b/src/features/todos/index.ts index 2fa8c3130..5465ed48a 100644 --- a/src/features/todos/index.ts +++ b/src/features/todos/index.ts | |||
@@ -3,6 +3,7 @@ import TodoStore from './store'; | |||
3 | export const todosStore = new TodoStore(); | 3 | export const todosStore = new TodoStore(); |
4 | 4 | ||
5 | export default function initTodos(stores: { todos?: any }, actions: any) { | 5 | export default function initTodos(stores: { todos?: any }, actions: any) { |
6 | // eslint-disable-next-line no-param-reassign | ||
6 | stores.todos = todosStore; | 7 | stores.todos = todosStore; |
7 | todosStore.start(stores, actions); | 8 | todosStore.start(stores, actions); |
8 | } | 9 | } |