mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
chore(eslint): update max-len rule to limit code length to 120 characters
chore(eslint): update quotes rule to enforce the use of single quotes
This commit is contained in:
parent
684ffd8e66
commit
b6f21af69b
1 changed files with 7 additions and 6 deletions
13
.eslintrc.js
13
.eslintrc.js
|
|
@ -10,7 +10,7 @@ module.exports = {
|
|||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
"plugin:jest/recommended",
|
||||
'plugin:jest/recommended',
|
||||
'prettier'
|
||||
],
|
||||
parser: '@typescript-eslint/parser',
|
||||
|
|
@ -29,7 +29,7 @@ module.exports = {
|
|||
'max-len': [
|
||||
'error',
|
||||
{
|
||||
code: 150,
|
||||
code: 120,
|
||||
ignoreStrings: true,
|
||||
ignoreTemplateLiterals: true,
|
||||
ignoreComments: true
|
||||
|
|
@ -47,7 +47,8 @@ module.exports = {
|
|||
'no-continue': 'off',
|
||||
'no-restricted-syntax': 'off',
|
||||
'react/prop-types': ['off'],
|
||||
'react/display-name': ['off']
|
||||
'react/display-name': ['off'],
|
||||
'quotes': ['error', 'single'],
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
|
@ -102,10 +103,10 @@ module.exports = {
|
|||
files: './packages/data-provider/**/*.ts',
|
||||
overrides: [
|
||||
{
|
||||
files: "**/*.ts",
|
||||
parser: "@typescript-eslint/parser",
|
||||
files: '**/*.ts',
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
project: "./packages/data-provider/tsconfig.json"
|
||||
project: './packages/data-provider/tsconfig.json'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue