aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/todos/components/TodosWebview.tsx
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-04-18 08:18:36 -0600
committerLibravatar GitHub <noreply@github.com>2024-04-18 08:18:36 -0600
commitc49723056acec489765acb54bae3889ac07f25af (patch)
tree58bea705d61a728b060e615ce514b8d4a7936c9e /src/features/todos/components/TodosWebview.tsx
parentfeat: hide all services workspace (#1713) (diff)
downloadferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.gz
ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.zst
ferdium-app-c49723056acec489765acb54bae3889ac07f25af.zip
refactor: bring down eslint warnings to zero (#1714)
- install `@eslint-react/eslint-plugin` dependency - configure `@eslint-react/eslint-plugin` in eslint config - modernize `lint` command in `package.json` - disable or fix various reported lint issues - fix `div` being nested in `p` for settings - replace deprecated `event.keyCode` with `event.key` - update isEscKeyPress method and unit tests which used deprecated `event.keyCode` - allow `eslint` v8 as peer dependency for `@eslint-react/eslint-plugin`
Diffstat (limited to 'src/features/todos/components/TodosWebview.tsx')
-rw-r--r--src/features/todos/components/TodosWebview.tsx3
1 files changed, 3 insertions, 0 deletions
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={{