mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +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',
|
'eslint:recommended',
|
||||||
'plugin:react/recommended',
|
'plugin:react/recommended',
|
||||||
'plugin:react-hooks/recommended',
|
'plugin:react-hooks/recommended',
|
||||||
"plugin:jest/recommended",
|
'plugin:jest/recommended',
|
||||||
'prettier'
|
'prettier'
|
||||||
],
|
],
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
|
|
@ -29,7 +29,7 @@ module.exports = {
|
||||||
'max-len': [
|
'max-len': [
|
||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
code: 150,
|
code: 120,
|
||||||
ignoreStrings: true,
|
ignoreStrings: true,
|
||||||
ignoreTemplateLiterals: true,
|
ignoreTemplateLiterals: true,
|
||||||
ignoreComments: true
|
ignoreComments: true
|
||||||
|
|
@ -47,7 +47,8 @@ module.exports = {
|
||||||
'no-continue': 'off',
|
'no-continue': 'off',
|
||||||
'no-restricted-syntax': 'off',
|
'no-restricted-syntax': 'off',
|
||||||
'react/prop-types': ['off'],
|
'react/prop-types': ['off'],
|
||||||
'react/display-name': ['off']
|
'react/display-name': ['off'],
|
||||||
|
'quotes': ['error', 'single'],
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
|
|
@ -102,10 +103,10 @@ module.exports = {
|
||||||
files: './packages/data-provider/**/*.ts',
|
files: './packages/data-provider/**/*.ts',
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: "**/*.ts",
|
files: '**/*.ts',
|
||||||
parser: "@typescript-eslint/parser",
|
parser: '@typescript-eslint/parser',
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: "./packages/data-provider/tsconfig.json"
|
project: './packages/data-provider/tsconfig.json'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue