diff options
author | 2023-07-30 10:55:59 -0600 | |
---|---|---|
committer | 2023-07-30 23:57:51 +0000 | |
commit | 080d8b05297f3f5afcf33354a40a5201697b1df5 (patch) | |
tree | 35180bd3cb9fcd137feca3fe169032cbbb469463 /src/components/ui/button | |
parent | refactor: various improvements (#1296) (diff) | |
download | ferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.tar.gz ferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.tar.zst ferdium-app-080d8b05297f3f5afcf33354a40a5201697b1df5.zip |
refactor: more lint improvements
- set parserOptions.ecmaVersion to latest and env to es2024 in eslint config
- install missing types libraries
- install eslint-plugin-sonar
- enable eslint-plugin-sonar recommended rules and declare jsx-runtime for react in eslint config
- clean up disabled lint rules which don't inflict problems anymore
- disable various lint issues and fix others
Diffstat (limited to 'src/components/ui/button')
-rw-r--r-- | src/components/ui/button/index.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/ui/button/index.tsx b/src/components/ui/button/index.tsx index 3c31ca952..c37a88afa 100644 --- a/src/components/ui/button/index.tsx +++ b/src/components/ui/button/index.tsx | |||
@@ -237,6 +237,7 @@ class ButtonComponent extends Component<IProps, IState> { | |||
237 | ) : ( | 237 | ) : ( |
238 | <button | 238 | <button |
239 | id={id} | 239 | id={id} |
240 | // eslint-disable-next-line react/button-has-type | ||
240 | type={type} | 241 | type={type} |
241 | onClick={onClick} | 242 | onClick={onClick} |
242 | className={classnames({ | 243 | className={classnames({ |