Небольшие правки в конфиги eslint и TS

This commit is contained in:
Ilia Mashkov
2025-11-19 18:25:11 +03:00
parent 9ce1e4b133
commit 9abbe8dce8
2 changed files with 201 additions and 188 deletions

View File

@@ -189,7 +189,17 @@ export default [
'@typescript-eslint/no-unused-vars': 'warn', '@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-var-requires': 'warn', '@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/no-use-before-define': ['error', { enums: false }], '@typescript-eslint/no-use-before-define': ['error', { enums: false }],
'@typescript-eslint/naming-convention': 'warn', '@typescript-eslint/naming-convention': [
'warn',
{
selector: 'function',
format: ['camelCase', 'PascalCase'],
},
{
selector: 'variable',
format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
},
],
'@typescript-eslint/ban-ts-comment': 'warn', '@typescript-eslint/ban-ts-comment': 'warn',
/** /**

View File

@@ -11,6 +11,9 @@
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": [
"./src/*"
],
"*": [ "*": [
"./src/*" "./src/*"
] ]