mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🧹 chore: Update ESLint rules for React hooks (#6685)
This commit is contained in:
parent
d8337e00d2
commit
cfa44de1c9
1 changed files with 6 additions and 4 deletions
|
|
@ -286,10 +286,12 @@ export default [
|
||||||
rules: {
|
rules: {
|
||||||
// i18n
|
// i18n
|
||||||
'i18next/no-literal-string': [
|
'i18next/no-literal-string': [
|
||||||
'error', {
|
'error',
|
||||||
|
{
|
||||||
mode: 'jsx-text-only',
|
mode: 'jsx-text-only',
|
||||||
'should-validate-template': true,
|
'should-validate-template': true,
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
//
|
//
|
||||||
'@typescript-eslint/no-unused-expressions': 'off',
|
'@typescript-eslint/no-unused-expressions': 'off',
|
||||||
'@typescript-eslint/no-unused-vars': 'off',
|
'@typescript-eslint/no-unused-vars': 'off',
|
||||||
|
|
@ -299,8 +301,8 @@ export default [
|
||||||
'@typescript-eslint/ban-ts-comment': 'off',
|
'@typescript-eslint/ban-ts-comment': 'off',
|
||||||
// React
|
// React
|
||||||
'react/no-unknown-property': 'warn',
|
'react/no-unknown-property': 'warn',
|
||||||
'react-hooks/rules-of-hooks': 'off',
|
'react-hooks/rules-of-hooks': 'error',
|
||||||
'react-hooks/exhaustive-deps': 'off',
|
'react-hooks/exhaustive-deps': 'warn',
|
||||||
// General
|
// General
|
||||||
'no-constant-binary-expression': 'off',
|
'no-constant-binary-expression': 'off',
|
||||||
'import/no-cycle': 'off',
|
'import/no-cycle': 'off',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue