Небольшие правки в конфиги eslint и TS
This commit is contained in:
@@ -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',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,6 +11,9 @@
|
|||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"@/*": [
|
||||||
|
"./src/*"
|
||||||
|
],
|
||||||
"*": [
|
"*": [
|
||||||
"./src/*"
|
"./src/*"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user