-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yml
34 lines (34 loc) · 916 Bytes
/
.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
extends: '@zakodium/eslint-config/typescript'
env:
browser: true
parserOptions:
project: tsconfig.base.json
rules:
camelcase: 'off'
'@typescript-eslint/no-dynamic-delete': 'off'
'@typescript-eslint/naming-convention':
[
'error',
{ selector: ['typeLike'], format: ['PascalCase'] },
{ selector: ['variable'], format: ['camelCase', 'UPPER_CASE'] },
{ selector: ['function'], format: ['camelCase', 'PascalCase'] },
{
selector:
[
'method',
'classProperty',
'classMethod',
'parameterProperty',
'accessor',
'typeProperty',
'typeMethod',
],
format: ['camelCase', 'snake_case'],
leadingUnderscore: 'allow',
},
{
selector:
['objectLiteralProperty', 'objectLiteralMethod', 'enumMember'],
format: null,
},
]