-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
48 lines (46 loc) · 1.33 KB
/
.eslintrc.js
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
/* tslint:disable */
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
],
parserOptions: {
ecmaVersion: 2018,
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
'import',
],
env: {
node: true,
},
rules: {
'indent': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'@typescript-eslint/indent': [
'error',
4,
{'flatTernaryExpressions': true, 'SwitchCase': 1},
],
'import/export': 'off',
'key-spacing': [
2,
{
afterColon: true,
align: 'value',
beforeColon: false,
mode: 'minimum',
},
],
'comma-dangle': [2, 'always-multiline'],
'import/named': 'off',
'import/order': [2, {'newlines-between': 'always'}],
},
};