introduce biome instead of prettier and eslint.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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 {
|
||||
|
@@ -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';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { LanguageDetectorModule } from 'i18next';
|
||||
import type { LanguageDetectorModule } from 'i18next';
|
||||
|
||||
const KintoneLanguageDetector: LanguageDetectorModule = {
|
||||
type: 'languageDetector',
|
||||
|
@@ -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
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import React from 'react';
|
||||
|
||||
export type KintonePluginSelectOptionData = {
|
||||
value: string;
|
||||
|
@@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import type React from 'react';
|
||||
|
||||
export type KintonePluginTitleProps = React.PropsWithChildren<{
|
||||
className?: string;
|
||||
|
Reference in New Issue
Block a user