test no use rule

This commit is contained in:
Joel 2024-10-28 10:56:31 +08:00
parent 765eb282f3
commit 7c8c15ef1a
3 changed files with 14 additions and 4 deletions

View File

@ -132,7 +132,7 @@ const Item: FC<ItemProps> = ({
zIndex: 100,
}}>
{(isObj && !isFile) && (
// eslint-disable-next-line ts/no-use-before-define
<ObjectChildren
nodeId={nodeId}
title={title}
@ -145,7 +145,7 @@ const Item: FC<ItemProps> = ({
/>
)}
{isFile && (
// eslint-disable-next-line ts/no-use-before-define
<ObjectChildren
nodeId={nodeId}
title={title}

View File

@ -63,7 +63,7 @@ export default combine(
overrides: {
// useful, but big change
'ts/no-empty-object-type': 'off',
'ts/no-use-before-define': 'off'
// 'ts/no-use-before-define': 'off'
},
}),
unicorn(),

View File

@ -136,11 +136,14 @@ importers:
mermaid:
specifier: 10.9.3
version: 10.9.3
mime:
specifier: ^4.0.4
version: 4.0.4
negotiator:
specifier: ^0.6.3
version: 0.6.4
next:
specifier: ^14.1.1
specifier: ^14.2.10
version: 14.2.15(@babel/core@7.25.8)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(sass@1.80.3)
pinyin-pro:
specifier: ^3.23.0
@ -6060,6 +6063,11 @@ packages:
engines: {node: '>=4'}
hasBin: true
mime@4.0.4:
resolution: {integrity: sha512-v8yqInVjhXyqP6+Kw4fV3ZzeMRqEW6FotRsKXjRS5VMTNIuXsdRoAvklpoRgSqXm6o9VNH4/C0mgedko9DdLsQ==}
engines: {node: '>=16'}
hasBin: true
mimic-fn@2.1.0:
resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
engines: {node: '>=6'}
@ -15635,6 +15643,8 @@ snapshots:
mime@1.6.0: {}
mime@4.0.4: {}
mimic-fn@2.1.0: {}
mimic-fn@4.0.0: {}