This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.yml
57 lines (57 loc) · 1.57 KB
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
parser: '@typescript-eslint/parser'
parserOptions:
project: './tsconfig.json'
sourceType: module
env:
node: true
es6: true
jest: true
plugins:
- 'you-dont-need-lodash-underscore'
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:@typescript-eslint/recommended-requiring-type-checking'
- 'plugin:you-dont-need-lodash-underscore/all-warn'
- 'plugin:prettier/recommended'
rules:
'@typescript-eslint/no-use-before-define': 'off'
'require-await': 'off'
'no-duplicate-imports': 'error'
'no-unneeded-ternary': 'error'
'prefer-object-spread': 'error'
'no-unused-vars': ['off']
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true, args: 'none' }]
'@typescript-eslint/naming-convention': [
'warn',
{
selector: 'default',
format: ['camelCase'],
leadingUnderscore: 'forbid',
trailingUnderscore: 'forbid'
},
{
selector: 'variable',
format: ['camelCase', 'UPPER_CASE', 'PascalCase']
},
{
selector: 'property',
format: ['camelCase', 'PascalCase']
},
{
selector: 'parameter',
format: ['camelCase'],
leadingUnderscore: 'allow'
},
{
selector: 'typeLike',
format: ['PascalCase']
},
{
selector: 'enumMember',
format: ['PascalCase']
}
]
'@typescript-eslint/no-unsafe-call': 'warn'
'@typescript-eslint/no-unsafe-member-access': 'off'