-
Notifications
You must be signed in to change notification settings - Fork 37
/
.eslintrc.yml
50 lines (50 loc) · 1.16 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
env:
browser: false
node: true
es6: true
jest: true
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
- 'prettier'
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:prettier/recommended'
- 'plugin:import/errors'
- 'plugin:import/warnings'
- 'plugin:import/typescript'
parserOptions:
ecmaVersion: 2018
sourceType: module
settings:
'import/external-module-folders': ['node_modules', '.yarn']
rules:
'@typescript-eslint/indent':
- off
'@typescript-eslint/no-use-before-define':
- off
'@typescript-eslint/explicit-function-return-type':
- error
- allowExpressions: true
allowTypedFunctionExpressions: true
allowHigherOrderFunctions: true
'@typescript-eslint/no-empty-interface':
- error
- allowSingleExtends: true
'import/named':
# eslint-plugin-import fails with typescript interfaces
- off
'import/order':
- error
- newlines-between: always
alphabetize:
order: asc
'prettier/prettier':
- error
- singleQuote: true
trailingComma: all
printWidth: 79
'prefer-const':
- error
- destructuring: all