diff options
author | 2023-12-04 08:52:48 -0700 | |
---|---|---|
committer | 2023-12-04 08:52:48 -0700 | |
commit | 3fc8706007d896dcbde69c0ce924a6a5eb66aba6 (patch) | |
tree | 008bbcfc14d819cd2f744eb16607b6aa9c4ad0bf /src/components/ui/textarea | |
parent | chore: project maintenance (#1466) (diff) | |
download | ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.gz ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.tar.zst ferdium-app-3fc8706007d896dcbde69c0ce924a6a5eb66aba6.zip |
refactor: implement biome (#1467)
- add `biome.json`
- add `biome:check` and `biome:check:fix` commands to `package.json`
- add `biome:check:fix` command to run as part of `prepare-code` command
- install `@biomejs/biome` dependency
- add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions`
- fix or comment out various reported lint issues
Diffstat (limited to 'src/components/ui/textarea')
-rw-r--r-- | src/components/ui/textarea/index.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/ui/textarea/index.tsx b/src/components/ui/textarea/index.tsx index fbdef7fc6..0967c4c25 100644 --- a/src/components/ui/textarea/index.tsx +++ b/src/components/ui/textarea/index.tsx | |||
@@ -5,6 +5,7 @@ import injectSheet, { WithStylesProps } from 'react-jss'; | |||
5 | import { noop } from 'lodash'; | 5 | import { noop } from 'lodash'; |
6 | import { IFormField } from '../typings/generic'; | 6 | import { IFormField } from '../typings/generic'; |
7 | 7 | ||
8 | // biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation> | ||
8 | import Error from '../error'; | 9 | import Error from '../error'; |
9 | import Label from '../label'; | 10 | import Label from '../label'; |
10 | import Wrapper from '../wrapper'; | 11 | import Wrapper from '../wrapper'; |
@@ -40,6 +41,7 @@ class TextareaComponent extends Component<IProps> { | |||
40 | 41 | ||
41 | if (this.textareaRef?.current && data) { | 42 | if (this.textareaRef?.current && data) { |
42 | Object.keys(data).map( | 43 | Object.keys(data).map( |
44 | // biome-ignore lint/suspicious/noAssignInExpressions: <explanation> | ||
43 | key => (this.textareaRef.current!.dataset[key] = data[key]), | 45 | key => (this.textareaRef.current!.dataset[key] = data[key]), |
44 | ); | 46 | ); |
45 | } | 47 | } |