-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.yml
110 lines (110 loc) · 3.07 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
root: true
plugins:
- '@typescript-eslint'
extends:
- standard
- 'plugin:@typescript-eslint/recommended'
- standard-with-typescript
- prettier
env:
browser: true
node: false
globals:
__DEV__: readonly
__PROD__: readonly
rules:
camelcase: off
'import/export': off
lines-between-class-members: off
no-dupe-class-members: off
# using @typescript-eslint/no-useless-constructor instead
no-useless-constructor: off
spaced-comment:
- error
- always
- markers: ['/']
exceptions: ['/']
import/extensions: [error, ignorePackages]
'@typescript-eslint/adjacent-overload-signatures': error
'@typescript-eslint/array-type': [error, { default: array-simple }]
'@typescript-eslint/naming-convention':
- error
- selector: default
format:
- camelCase
leadingUnderscore: allow
- selector: typeLike
format:
- PascalCase
leadingUnderscore: allow
- selector: memberLike
format:
- camelCase
- PascalCase
- UPPER_CASE
leadingUnderscore: allowSingleOrDouble
trailingUnderscore: allowSingleOrDouble
- selector: memberLike
modifiers: ['requiresQuotes']
format: null
- selector: enumMember
format:
- PascalCase
- UPPER_CASE
leadingUnderscore: allowSingleOrDouble
trailingUnderscore: allowSingleOrDouble
- selector: variableLike
format:
- camelCase
- UPPER_CASE
leadingUnderscore: allowSingleOrDouble
trailingUnderscore: allowSingleOrDouble
- selector: variableLike
format: null
filter:
regex: '^(?:child_process|ResEdit)$'
match: true
- selector: enumMember
format: null
filter:
regex: '^(?:DOS_Windows16|DOS_Windows32|NT_Windows32)$'
match: true
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/explicit-module-boundary-types': error
'@typescript-eslint/lines-between-class-members': off
'@typescript-eslint/member-ordering':
- error
- default:
- public-static-field
- private-static-field
- public-instance-field
- private-instance-field
- public-constructor
- private-constructor
'@typescript-eslint/no-empty-function':
- error
- allow:
- protected-constructors
- private-constructors
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-inferrable-types': off
'@typescript-eslint/no-non-null-assertion': off
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/no-useless-constructor': error
'@typescript-eslint/no-unused-vars': off
'@typescript-eslint/prefer-includes': off
overrides:
- files: ['./*.js', 'examples/**/*.js', 'tools/**/*.js']
env:
browser: false
node: true
rules:
'@typescript-eslint/no-var-requires': off
- files: ['**/*.ts', '**/*.tsx']
parser: '@typescript-eslint/parser'
parserOptions:
project: ./tsconfig.json
rules:
'@typescript-eslint/strict-boolean-expressions':
- error
- allowNullableBoolean: true