mirror of
https://github.com/lmstudio-ai/lms.git
synced 2025-08-06 14:50:12 +08:00
51 lines
1.1 KiB
JSON
51 lines
1.1 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"plugins": ["eslint-plugin-tsdoc"],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:import/recommended",
|
|
"plugin:import/electron",
|
|
"plugin:import/typescript",
|
|
"plugin:react-hooks/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"varsIgnorePattern": "^_",
|
|
"argsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
"error",
|
|
{
|
|
"prefer": "type-imports",
|
|
"fixStyle": "inline-type-imports"
|
|
}
|
|
],
|
|
"tsdoc/syntax": "warn"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.fixture.tsx"],
|
|
"rules": {
|
|
"react-hooks/rules-of-hooks": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.js"],
|
|
"rules": {
|
|
"@typescript-eslint/no-var-requires": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|