1
0
mirror of https://github.com/teoxoy/factorio-blueprint-editor.git synced 2024-12-26 20:54:22 +02:00
factorio-blueprint-editor/.eslint.typescript.yml
teoxoy e9625f7c71 update eslint
remove deprecated 'interface-name-prefix' and 'camelcase'
fix lint issues
2020-12-12 19:35:15 +08:00

33 lines
990 B
YAML

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