mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 00:18:28 +08:00
chore: ESLint add react hooks deps check rule (#29132)
This commit is contained in:
parent
2219b93d6b
commit
63d8fe876e
@ -94,7 +94,6 @@ export default combine(
|
|||||||
// orignal ts/no-var-requires
|
// orignal ts/no-var-requires
|
||||||
'ts/no-require-imports': 'off',
|
'ts/no-require-imports': 'off',
|
||||||
'no-console': 'off',
|
'no-console': 'off',
|
||||||
'react-hooks/exhaustive-deps': 'warn',
|
|
||||||
'react/display-name': 'off',
|
'react/display-name': 'off',
|
||||||
'array-callback-return': ['error', {
|
'array-callback-return': ['error', {
|
||||||
allowImplicit: false,
|
allowImplicit: false,
|
||||||
@ -257,4 +256,9 @@ export default combine(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
oxlint.configs['flat/recommended'],
|
oxlint.configs['flat/recommended'],
|
||||||
|
{
|
||||||
|
rules: {
|
||||||
|
'react-hooks/exhaustive-deps': 'warn',
|
||||||
|
},
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user