mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
🧰 chore: ESLint configuration to enforce Prettier formatting rules (#7186)
This commit is contained in:
parent
37b50736bc
commit
ddb2141eac
1 changed files with 1 additions and 24 deletions
|
@ -101,6 +101,7 @@ export default [
|
|||
},
|
||||
|
||||
rules: {
|
||||
'prettier/prettier': 'error',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
|
||||
'@typescript-eslint/ban-ts-comment': [
|
||||
|
@ -121,28 +122,6 @@ export default [
|
|||
// Also disable the core no-unused-vars rule globally.
|
||||
'no-unused-vars': 'warn',
|
||||
|
||||
indent: ['error', 2, { SwitchCase: 1 }],
|
||||
'max-len': [
|
||||
'error',
|
||||
{
|
||||
code: 120,
|
||||
ignoreStrings: true,
|
||||
ignoreTemplateLiterals: true,
|
||||
ignoreComments: true,
|
||||
},
|
||||
],
|
||||
'linebreak-style': 0,
|
||||
curly: ['error', 'all'],
|
||||
semi: ['error', 'always'],
|
||||
'object-curly-spacing': ['error', 'always'],
|
||||
'no-multiple-empty-lines': [
|
||||
'error',
|
||||
{
|
||||
max: 1,
|
||||
},
|
||||
],
|
||||
'no-trailing-spaces': 'error',
|
||||
'comma-dangle': ['error', 'always-multiline'],
|
||||
'no-console': 'off',
|
||||
'import/no-cycle': 'error',
|
||||
'import/no-self-import': 'error',
|
||||
|
@ -153,8 +132,6 @@ export default [
|
|||
'no-restricted-syntax': 'off',
|
||||
'react/prop-types': 'off',
|
||||
'react/display-name': 'off',
|
||||
quotes: ['error', 'single'],
|
||||
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
||||
|
||||
// 'perfectionist/sort-imports': [
|
||||
// 'error',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue