introduce biome instead of prettier and eslint.

This commit is contained in:
2025-09-30 19:14:47 +09:00
parent dd1fd35238
commit c8a2c8087a
28 changed files with 2311 additions and 838 deletions

View File

@@ -1,5 +1,4 @@
import React from 'react';
import ReactDOM from 'react-dom';
import invariant from 'tiny-invariant';
@@ -21,8 +20,7 @@ const DynamicPortal: React.FC<DynamicPortalProps> = (props) => {
el.parentNode.removeChild(el);
}
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [el]);
return ReactDOM.createPortal(children, el);
};
export default DynamicPortal;

View File

@@ -1,5 +1,5 @@
// biome-ignore lint/style/useImportType: React is required in scope for the old JSX transform.
import React from 'react';
import KintonePluginAlert from './ui/KintonePluginAlert';
interface Props {

View File

@@ -1,5 +1,5 @@
// biome-ignore lint/style/useImportType: React is required in scope for the old JSX transform.
import React from 'react';
import DynamicPortal from './DynamicPortal';
import styles from './Loading.module.css';

View File

@@ -1,4 +1,4 @@
import { LanguageDetectorModule } from 'i18next';
import type { LanguageDetectorModule } from 'i18next';
const KintoneLanguageDetector: LanguageDetectorModule = {
type: 'languageDetector',

View File

@@ -1,4 +1,4 @@
import { KintoneFormFieldProperty } from '@kintone/rest-api-client';
import type { KintoneFormFieldProperty } from '@kintone/rest-api-client';
export type KintoneFormFieldProperties = {
[fieldCode: string]: KintoneFormFieldProperty.OneOf;

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
import React from 'react';
import clsx from 'clsx';
// biome-ignore lint/style/useImportType: React is required in scope for the old JSX transform.
import React from 'react';
export type KintonePluginAlertProps = React.PropsWithChildren<{
className?: string;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import clsx from 'clsx';
// biome-ignore lint/style/useImportType: React is required in scope for the old JSX transform.
import React from 'react';
export type KintonePluginButtonProps = React.PropsWithChildren<{
className?: string;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import clsx from 'clsx';
// biome-ignore lint/style/useImportType: React is required in scope for the old JSX transform.
import React from 'react';
export type KintonePluginDescProps = React.PropsWithChildren<{
className?: string;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import clsx from 'clsx';
// biome-ignore lint/style/useImportType: React is required in scope for the old JSX transform.
import React from 'react';
export type KintonePluginLabelProps = React.PropsWithChildren<{
className?: string;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import clsx from 'clsx';
// biome-ignore lint/style/useImportType: React is required in scope for the old JSX transform.
import React from 'react';
export type KintonePluginRequire = React.PropsWithChildren<{
className?: string;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import clsx from 'clsx';
// biome-ignore lint/style/useImportType: React is required in scope for the old JSX transform.
import React from 'react';
export type KintonePluginRowProps = React.PropsWithChildren<{
className?: string;

View File

@@ -1,6 +1,5 @@
import React from 'react';
import clsx from 'clsx';
import React from 'react';
export type KintonePluginSelectOptionData = {
value: string;

View File

@@ -1,6 +1,5 @@
import React from 'react';
import clsx from 'clsx';
import type React from 'react';
export type KintonePluginTitleProps = React.PropsWithChildren<{
className?: string;