Disable "noImplicitBoolean" rule
This commit is contained in:
parent
72701299a5
commit
f0a32a5fc6
|
@ -18,7 +18,10 @@
|
|||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true
|
||||
"recommended": true,
|
||||
"style": {
|
||||
"noImplicitBoolean": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -160,7 +160,7 @@ const ResultItem = forwardRef(
|
|||
</div>
|
||||
</div>
|
||||
{action.shortcut?.length ? (
|
||||
<div aria-hidden={true} style={{ display: 'grid', gridAutoFlow: 'column', gap: '4px' }}>
|
||||
<div aria-hidden style={{ display: 'grid', gridAutoFlow: 'column', gap: '4px' }}>
|
||||
{action.shortcut.map((sc: any) => (
|
||||
<kbd
|
||||
key={sc}
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Skeleton } from 'antd';
|
|||
|
||||
const Loader = () => (
|
||||
<div className="small-container">
|
||||
<Skeleton active={true} />
|
||||
<Skeleton active />
|
||||
</div>
|
||||
);
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ const StarButton = ({ tuneData }: { tuneData: TuneDataState }) => {
|
|||
<Badge
|
||||
count={currentStars}
|
||||
style={{ backgroundColor: Colors.TEXT, marginTop: -4 }}
|
||||
showZero={true}
|
||||
showZero
|
||||
/>
|
||||
</Space>
|
||||
</Button>
|
||||
|
|
|
@ -28,7 +28,7 @@ const Firmware = ({ tune }: { tune: TuneState }) => {
|
|||
return (
|
||||
<Space>
|
||||
<InfoCircleOutlined />
|
||||
<Typography.Text ellipsis={true} style={{ maxWidth: width }}>
|
||||
<Typography.Text ellipsis style={{ maxWidth: width }}>
|
||||
{`${tune.details.signature} - ${tune.details.writeDate} - ${tune.details.author}`}
|
||||
</Typography.Text>
|
||||
</Space>
|
||||
|
|
|
@ -335,8 +335,8 @@ const TopBar = ({
|
|||
<Tooltip
|
||||
title={
|
||||
<>
|
||||
<Typography.Text keyboard={true}>{isMac ? '⌘' : 'CTRL'}</Typography.Text>
|
||||
<Typography.Text keyboard={true}>K</Typography.Text>
|
||||
<Typography.Text keyboard>{isMac ? '⌘' : 'CTRL'}</Typography.Text>
|
||||
<Typography.Text keyboard>K</Typography.Text>
|
||||
</>
|
||||
}
|
||||
>
|
||||
|
|
|
@ -23,7 +23,7 @@ const LogsPagination = (props: LogsPaginationProps) => {
|
|||
<div style={{ position: 'relative' }}>
|
||||
<div style={{ position: 'absolute', bottom: 3, right: 5, zIndex: 1 }}>
|
||||
<Pagination
|
||||
simple={true}
|
||||
simple
|
||||
defaultPageSize={pageSize}
|
||||
current={page}
|
||||
total={total}
|
||||
|
|
|
@ -13,7 +13,7 @@ const TextField = ({ title }: { title: string }) => {
|
|||
<Alert
|
||||
message={type ? title.substring(1) : title}
|
||||
type={type}
|
||||
showIcon={true}
|
||||
showIcon
|
||||
style={{ width: '100%', maxWidth: 700 }}
|
||||
/>
|
||||
) : (
|
||||
|
|
|
@ -228,7 +228,7 @@ const Diagnose = ({
|
|||
children: (
|
||||
<PerfectScrollbar options={{ suppressScrollX: true }}>
|
||||
{tuneData?.toothLogFiles?.map((fileName) => (
|
||||
<Typography.Paragraph key={fileName} ellipsis={true}>
|
||||
<Typography.Paragraph key={fileName} ellipsis>
|
||||
<Link
|
||||
to={generatePath(Routes.TUNE_DIAGNOSE_FILE, {
|
||||
tuneId: tuneData.tuneId,
|
||||
|
|
|
@ -109,7 +109,7 @@ const Hub = () => {
|
|||
{tune.engineMake}, {tune.engineCode}, {tune.displacement}, {tune.cylindersCount}{' '}
|
||||
cylinders, {tune.aspiration}
|
||||
</Text>
|
||||
<Text italic={true}>{tune.signature}</Text>
|
||||
<Text italic>{tune.signature}</Text>
|
||||
</Space>
|
||||
</>
|
||||
),
|
||||
|
@ -173,7 +173,7 @@ const Hub = () => {
|
|||
dataIndex: 'signature',
|
||||
key: 'author',
|
||||
responsive: ['sm'],
|
||||
render: (signature: string) => <Text italic={true}>{signature}</Text>,
|
||||
render: (signature: string) => <Text italic>{signature}</Text>,
|
||||
},
|
||||
{
|
||||
title: 'Published',
|
||||
|
@ -230,7 +230,7 @@ const Hub = () => {
|
|||
value={searchQuery}
|
||||
placeholder="Search by anything..."
|
||||
onChange={({ target }) => debounceLoadData(target.value)}
|
||||
allowClear={true}
|
||||
allowClear
|
||||
/>
|
||||
<Table
|
||||
dataSource={dataSource}
|
||||
|
|
|
@ -37,7 +37,7 @@ const Info = ({ tuneData }: { tuneData: TuneDataState }) => {
|
|||
<Divider>Manage</Divider>
|
||||
<Row style={{ marginTop: 10 }}>
|
||||
<Item style={{ width: '100%' }}>
|
||||
<Button type="primary" block={true} onClick={goToEdit} icon={<EditOutlined />}>
|
||||
<Button type="primary" block onClick={goToEdit} icon={<EditOutlined />}>
|
||||
Edit
|
||||
</Button>
|
||||
</Item>
|
||||
|
|
|
@ -345,7 +345,7 @@ const Logs = ({
|
|||
children: (
|
||||
<PerfectScrollbar options={{ suppressScrollX: true }}>
|
||||
{tuneData?.logFiles?.map((fileName) => (
|
||||
<Typography.Paragraph key={fileName} ellipsis={true}>
|
||||
<Typography.Paragraph key={fileName} ellipsis>
|
||||
<Link
|
||||
to={generatePath(Routes.TUNE_LOGS_FILE, {
|
||||
tuneId: tuneData.tuneId,
|
||||
|
|
|
@ -648,7 +648,7 @@ const UploadPage = () => {
|
|||
<Item style={{ width: '100%' }}>
|
||||
<Button
|
||||
type="primary"
|
||||
block={true}
|
||||
block
|
||||
loading={isLoading}
|
||||
htmlType="submit"
|
||||
icon={isEditMode ? <EditOutlined /> : <CheckOutlined />}
|
||||
|
@ -679,7 +679,7 @@ const UploadPage = () => {
|
|||
</Row>
|
||||
<Row style={{ marginTop: 10 }}>
|
||||
<Item style={{ width: '100%' }}>
|
||||
<Button type="primary" block={true} onClick={goToNewTune} icon={<SendOutlined />}>
|
||||
<Button type="primary" block onClick={goToNewTune} icon={<SendOutlined />}>
|
||||
Open
|
||||
</Button>
|
||||
</Item>
|
||||
|
@ -703,7 +703,7 @@ const UploadPage = () => {
|
|||
<AutoComplete
|
||||
options={autocompleteOptions.vehicleName}
|
||||
onSearch={(search) => searchAutocomplete('vehicleName', search)}
|
||||
backfill={true}
|
||||
backfill
|
||||
>
|
||||
<Input addonBefore="Name" />
|
||||
</AutoComplete>
|
||||
|
@ -713,7 +713,7 @@ const UploadPage = () => {
|
|||
<Item name="tags">
|
||||
<Select
|
||||
placeholder="Tags"
|
||||
allowClear={true}
|
||||
allowClear
|
||||
style={{ width: '100%' }}
|
||||
options={[
|
||||
{ label: null, value: null },
|
||||
|
@ -736,7 +736,7 @@ const UploadPage = () => {
|
|||
<AutoComplete
|
||||
options={autocompleteOptions.engineMake}
|
||||
onSearch={(search) => searchAutocomplete('engineMake', search)}
|
||||
backfill={true}
|
||||
backfill
|
||||
>
|
||||
<Input addonBefore="Engine make" />
|
||||
</AutoComplete>
|
||||
|
@ -747,7 +747,7 @@ const UploadPage = () => {
|
|||
<AutoComplete
|
||||
options={autocompleteOptions.engineCode}
|
||||
onSearch={(search) => searchAutocomplete('engineCode', search)}
|
||||
backfill={true}
|
||||
backfill
|
||||
>
|
||||
<Input addonBefore="Engine code" />
|
||||
</AutoComplete>
|
||||
|
@ -799,7 +799,7 @@ const UploadPage = () => {
|
|||
<AutoComplete
|
||||
options={autocompleteOptions.fuel}
|
||||
onSearch={(search) => searchAutocomplete('fuel', search)}
|
||||
backfill={true}
|
||||
backfill
|
||||
>
|
||||
<Input addonBefore="Fuel" />
|
||||
</AutoComplete>
|
||||
|
@ -810,7 +810,7 @@ const UploadPage = () => {
|
|||
<AutoComplete
|
||||
options={autocompleteOptions.ignition}
|
||||
onSearch={(search) => searchAutocomplete('ignition', search)}
|
||||
backfill={true}
|
||||
backfill
|
||||
>
|
||||
<Input addonBefore="Ignition" />
|
||||
</AutoComplete>
|
||||
|
@ -858,7 +858,7 @@ const UploadPage = () => {
|
|||
children: (
|
||||
<Input.TextArea
|
||||
rows={10}
|
||||
showCount={true}
|
||||
showCount
|
||||
value={readme}
|
||||
onChange={(e) => setReadme(e.target.value)}
|
||||
maxLength={3_000}
|
||||
|
@ -894,7 +894,7 @@ const UploadPage = () => {
|
|||
customRequest={uploadLogs}
|
||||
onRemove={removeLogFile}
|
||||
iconRender={logIcon}
|
||||
multiple={true}
|
||||
multiple
|
||||
maxCount={MaxFiles.LOG_FILES}
|
||||
disabled={isPublished}
|
||||
onPreview={noop}
|
||||
|
@ -915,7 +915,7 @@ const UploadPage = () => {
|
|||
customRequest={uploadToothLogs}
|
||||
onRemove={removeToothLogFile}
|
||||
iconRender={toothLogIcon}
|
||||
multiple={true}
|
||||
multiple
|
||||
maxCount={MaxFiles.TOOTH_LOG_FILES}
|
||||
onPreview={noop}
|
||||
defaultFileList={defaultToothLogFilesList}
|
||||
|
|
|
@ -80,7 +80,7 @@ const Profile = () => {
|
|||
<Space direction="vertical">
|
||||
{tune.vehicleName}
|
||||
<TuneTag tag={tune.tags} />
|
||||
<Typography.Text italic={true}>{tune.signature}</Typography.Text>
|
||||
<Typography.Text italic>{tune.signature}</Typography.Text>
|
||||
</Space>
|
||||
}
|
||||
description={
|
||||
|
@ -90,7 +90,7 @@ const Profile = () => {
|
|||
}
|
||||
/>
|
||||
<div>
|
||||
<Typography.Text italic={true}>{tune.updated}</Typography.Text>
|
||||
<Typography.Text italic>{tune.updated}</Typography.Text>
|
||||
</div>
|
||||
</Space>
|
||||
</List.Item>
|
||||
|
|
|
@ -256,7 +256,7 @@ const Login = ({ formRole }: { formRole: FormRoles }) => {
|
|||
validateMessages={validateMessages}
|
||||
form={formEmail}
|
||||
>
|
||||
<Item name="email" rules={emailRules} hasFeedback={true}>
|
||||
<Item name="email" rules={emailRules} hasFeedback>
|
||||
<Input
|
||||
prefix={<MailOutlined />}
|
||||
placeholder="Email"
|
||||
|
@ -265,11 +265,11 @@ const Login = ({ formRole }: { formRole: FormRoles }) => {
|
|||
/>
|
||||
</Item>
|
||||
{!isLogin && (
|
||||
<Item name="username" rules={usernameRules} hasFeedback={true}>
|
||||
<Item name="username" rules={usernameRules} hasFeedback>
|
||||
<Input prefix={<UserOutlined />} placeholder="Username" autoComplete="name" />
|
||||
</Item>
|
||||
)}
|
||||
<Item name="password" rules={requiredRules} hasFeedback={true}>
|
||||
<Item name="password" rules={requiredRules} hasFeedback>
|
||||
<Input.Password
|
||||
placeholder="Password"
|
||||
autoComplete="current-password"
|
||||
|
|
|
@ -124,7 +124,7 @@ const Profile = () => {
|
|||
<>
|
||||
<Divider>Email verification</Divider>
|
||||
<Space direction="vertical" style={{ width: '100%' }} size="large">
|
||||
<Alert message="Your email address is not verified!" type="error" showIcon={true} />
|
||||
<Alert message="Your email address is not verified!" type="error" showIcon />
|
||||
<Button
|
||||
type="primary"
|
||||
style={{ width: '100%' }}
|
||||
|
@ -155,11 +155,11 @@ const Profile = () => {
|
|||
},
|
||||
]}
|
||||
>
|
||||
<Item name="username" rules={usernameRules} hasFeedback={true}>
|
||||
<Item name="username" rules={usernameRules} hasFeedback>
|
||||
<Input prefix={<UserOutlined />} placeholder="Username" autoComplete="name" />
|
||||
</Item>
|
||||
<Item name="email">
|
||||
<Input prefix={<MailOutlined />} placeholder="Email" disabled={true} />
|
||||
<Input prefix={<MailOutlined />} placeholder="Email" disabled />
|
||||
</Item>
|
||||
<Item>
|
||||
<Button
|
||||
|
@ -201,7 +201,7 @@ const Profile = () => {
|
|||
<Space direction="vertical">
|
||||
{tune.vehicleName}
|
||||
<TuneTag tag={tune.tags} />
|
||||
<Typography.Text italic={true}>{tune.signature}</Typography.Text>
|
||||
<Typography.Text italic>{tune.signature}</Typography.Text>
|
||||
</Space>
|
||||
}
|
||||
description={
|
||||
|
@ -211,7 +211,7 @@ const Profile = () => {
|
|||
}
|
||||
/>
|
||||
<div>
|
||||
<Typography.Text italic={true}>{tune.updated}</Typography.Text>
|
||||
<Typography.Text italic>{tune.updated}</Typography.Text>
|
||||
</div>
|
||||
</Space>
|
||||
</List.Item>
|
||||
|
|
|
@ -38,7 +38,7 @@ const ResetPassword = () => {
|
|||
validateMessages={validateMessages}
|
||||
form={form}
|
||||
>
|
||||
<Item name="email" rules={emailRules} hasFeedback={true}>
|
||||
<Item name="email" rules={emailRules} hasFeedback>
|
||||
<Input prefix={<MailOutlined />} placeholder="Email" autoComplete="email" />
|
||||
</Item>
|
||||
<Item>
|
||||
|
|
|
@ -40,7 +40,7 @@ const ResetPasswordConfirmation = () => {
|
|||
autoComplete="off"
|
||||
form={form}
|
||||
>
|
||||
<Item name="password" rules={passwordRules} hasFeedback={true}>
|
||||
<Item name="password" rules={passwordRules} hasFeedback>
|
||||
<Input.Password
|
||||
placeholder="New password"
|
||||
autoComplete="new-password"
|
||||
|
|
Loading…
Reference in New Issue