aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-12-04 08:52:48 -0700
committerLibravatar GitHub <noreply@github.com>2023-12-04 08:52:48 -0700
commit3fc8706007d896dcbde69c0ce924a6a5eb66aba6 (patch)
tree008bbcfc14d819cd2f744eb16607b6aa9c4ad0bf /src/components/ui
parentchore: project maintenance (#1466) (diff)
downloadferdium-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')
-rw-r--r--src/components/ui/Link.tsx1
-rw-r--r--src/components/ui/Radio.tsx1
-rw-r--r--src/components/ui/button/index.tsx1
-rw-r--r--src/components/ui/input/index.tsx1
-rw-r--r--src/components/ui/select/index.tsx1
-rw-r--r--src/components/ui/textarea/index.tsx2
-rw-r--r--src/components/ui/toggle/index.tsx1
7 files changed, 8 insertions, 0 deletions
diff --git a/src/components/ui/Link.tsx b/src/components/ui/Link.tsx
index a9a429d3a..f9fdd57f9 100644
--- a/src/components/ui/Link.tsx
+++ b/src/components/ui/Link.tsx
@@ -54,6 +54,7 @@ class Link extends Component<IProps> {
54 }); 54 });
55 55
56 return ( 56 return (
57 // biome-ignore lint/a11y/useValidAnchor: <explanation>
57 <a 58 <a
58 href={router.history.createHref(to)} 59 href={router.history.createHref(to)}
59 className={linkClasses} 60 className={linkClasses}
diff --git a/src/components/ui/Radio.tsx b/src/components/ui/Radio.tsx
index 1f41deedc..901958c78 100644
--- a/src/components/ui/Radio.tsx
+++ b/src/components/ui/Radio.tsx
@@ -2,6 +2,7 @@ import { Component } from 'react';
2import { observer } from 'mobx-react'; 2import { observer } from 'mobx-react';
3import classnames from 'classnames'; 3import classnames from 'classnames';
4import FieldInterface from 'mobx-react-form/lib/models/FieldInterface'; 4import FieldInterface from 'mobx-react-form/lib/models/FieldInterface';
5// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
5import Error from './error'; 6import Error from './error';
6 7
7type Props = { 8type Props = {
diff --git a/src/components/ui/button/index.tsx b/src/components/ui/button/index.tsx
index f8bcf76b2..a2194e34d 100644
--- a/src/components/ui/button/index.tsx
+++ b/src/components/ui/button/index.tsx
@@ -205,6 +205,7 @@ class ButtonComponent extends Component<IProps, IState> {
205 ); 205 );
206 206
207 const wrapperComponent = href ? ( 207 const wrapperComponent = href ? (
208 // biome-ignore lint/a11y/useValidAnchor: <explanation>
208 <a 209 <a
209 href={href} 210 href={href}
210 target={target} 211 target={target}
diff --git a/src/components/ui/input/index.tsx b/src/components/ui/input/index.tsx
index 064c1807f..68cc9ee22 100644
--- a/src/components/ui/input/index.tsx
+++ b/src/components/ui/input/index.tsx
@@ -14,6 +14,7 @@ import { observer } from 'mobx-react';
14import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; 14import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl';
15import Icon from '../icon'; 15import Icon from '../icon';
16import { IFormField } from '../typings/generic'; 16import { IFormField } from '../typings/generic';
17// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
17import Error from '../error'; 18import Error from '../error';
18import Label from '../label'; 19import Label from '../label';
19import Wrapper from '../wrapper'; 20import Wrapper from '../wrapper';
diff --git a/src/components/ui/select/index.tsx b/src/components/ui/select/index.tsx
index 650600fb3..c06ac59b0 100644
--- a/src/components/ui/select/index.tsx
+++ b/src/components/ui/select/index.tsx
@@ -10,6 +10,7 @@ import withStyles, { WithStylesProps } from 'react-jss';
10import { noop } from 'lodash'; 10import { noop } from 'lodash';
11import { Theme } from '../../../themes'; 11import { Theme } from '../../../themes';
12import { IFormField } from '../typings/generic'; 12import { IFormField } from '../typings/generic';
13// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
13import Error from '../error'; 14import Error from '../error';
14import Label from '../label'; 15import Label from '../label';
15import Wrapper from '../wrapper'; 16import Wrapper from '../wrapper';
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';
5import { noop } from 'lodash'; 5import { noop } from 'lodash';
6import { IFormField } from '../typings/generic'; 6import { IFormField } from '../typings/generic';
7 7
8// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
8import Error from '../error'; 9import Error from '../error';
9import Label from '../label'; 10import Label from '../label';
10import Wrapper from '../wrapper'; 11import 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 }
diff --git a/src/components/ui/toggle/index.tsx b/src/components/ui/toggle/index.tsx
index 275d28bf6..878ffecdc 100644
--- a/src/components/ui/toggle/index.tsx
+++ b/src/components/ui/toggle/index.tsx
@@ -4,6 +4,7 @@ import { noop } from 'lodash';
4import { Component, InputHTMLAttributes, ReactElement } from 'react'; 4import { Component, InputHTMLAttributes, ReactElement } from 'react';
5import withStyles, { WithStylesProps } from 'react-jss'; 5import withStyles, { WithStylesProps } from 'react-jss';
6import { Theme } from '../../../themes'; 6import { Theme } from '../../../themes';
7// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
7import Error from '../error'; 8import Error from '../error';
8import Label from '../label'; 9import Label from '../label';
9import { IFormField } from '../typings/generic'; 10import { IFormField } from '../typings/generic';