forked from teoxoy/factorio-blueprint-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslint.typescript.yml
32 lines (32 loc) · 990 Bytes
/
.eslint.typescript.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
rules:
# TODO: maybe turn on
# '@typescript-eslint/naming-convention':
# - error
# - selector: default
# format: [camelCase]
# TODO: turn on
'@typescript-eslint/ban-ts-comment': off
'@typescript-eslint/no-useless-constructor': warn
'@typescript-eslint/restrict-plus-operands': error
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/consistent-type-assertions':
- error
- assertionStyle: as
objectLiteralTypeAssertions: allow-as-parameter
'@typescript-eslint/explicit-member-accessibility': warn
'@typescript-eslint/explicit-function-return-type':
- warn
- allowExpressions: true
allowTypedFunctionExpressions: true
allowHigherOrderFunctions: true
'@typescript-eslint/member-ordering':
- warn
- default:
- signature
- static-field
- instance-field
- abstract-field
- constructor
- static-method
- instance-method
- abstract-method