-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
43 lines (38 loc) · 1.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
parser: '@typescript-eslint/parser'
parserOptions:
project: ./tsconfig.json
plugins:
- '@typescript-eslint'
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
# ESLint rules: https://eslint.org/docs/rules/
# Typescript rules: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
rules:
comma-style:
- error
- first
key-spacing:
- error
- align: colon
no-console: 0
semi: 0
'@typescript-eslint/semi':
- error
- never
indent: 0
'@typescript-eslint/indent':
- error
- 2
- ObjectExpression: 0
'@typescript-eslint/explicit-function-return-type':
- warn
- allowTypedFunctionExpressions: true
allowExpressions: true
# can't do what I want with this because I define functions as variables
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/no-for-in-array': error
# Experimental
'@typescript-eslint/prefer-string-starts-ends-with': error
'@typescript-eslint/restrict-plus-operands': error