forked from Live2D/CubismWebFramework
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.yml
64 lines (64 loc) · 1.66 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
58
59
60
61
62
63
64
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:prettier/recommended
plugins:
- '@typescript-eslint'
parser: '@typescript-eslint/parser'
parserOptions:
sourceType: module
ecmaVersion: 2020
project: ./tsconfig.json
rules:
prettier/prettier:
- error
- singleQuote: true
camelcase: "off"
'@typescript-eslint/naming-convention':
- warn
- selector: default
format:
- camelCase
- selector: variable
format:
- camelCase
- UPPER_CASE
leadingUnderscore: allow
trailingUnderscore: allow
- selector: class
format:
- PascalCase
trailingUnderscore: allow
- selector: parameter
format:
- camelCase
leadingUnderscore: allow
- selector: memberLike
modifiers:
- private
format:
- camelCase
leadingUnderscore: require
- selector: typeLike
format:
- PascalCase
'@typescript-eslint/no-use-before-define': off
no-empty-function: off
'@typescript-eslint/no-empty-function':
- error
- allow:
- constructors
'@typescript-eslint/no-namespace': warn
'no-fallthrough': warn
'@typescript-eslint/unbound-method': off
'@typescript-eslint/no-unsafe-assignment': off
'@typescript-eslint/restrict-plus-operands': off
'@typescript-eslint/no-unsafe-return': off
'@typescript-eslint/no-unsafe-member-access': off
'@typescript-eslint/no-unsafe-argument': off
'@typescript-eslint/no-unsafe-call': off
'no-inner-declarations': off
'no-global-assign': off
'prefer-const': warn