-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc.js
60 lines (60 loc) · 1.74 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
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'google',
'plugin:json/recommended',
],
settings: {
'import/parsers': {
'@typescript-eslint/parser': [
'.ts'
]
},
},
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'import/no-cycle': ['error', { maxDepth: 1 }],
'@typescript-eslint/indent': ['error', 2],
'max-len': ['error', {
'ignoreUrls': true,
'ignoreStrings': true,
'ignoreTemplateLiterals': true,
'ignoreRegExpLiterals': true,
'code': 120
}],
'no-multiple-empty-lines':['error', {'max':1, 'maxEOF':0, 'maxBOF':0}],
'require-jsdoc': [0],
'semi': ['error', 'always'],
'padded-blocks': ['error', 'always'],
'no-console': 'error',
'no-debugger': 'error',
'@typescript-eslint/indent': ['error', 2],
'indent': [
'error', 2, {
'ArrayExpression': 'first',
'FunctionExpression': {'body': 1, 'parameters': 'first'},
'ObjectExpression': 'first',
'SwitchCase': 1,
'CallExpression': {'arguments': 'first'},
},
],
'padding-line-between-statements': [
'error',
{'blankLine': 'any', 'prev': ['const', 'let', 'var'], 'next': ['const', 'let', 'var']},
{'blankLine': 'always', 'prev': '*', 'next': 'class'},
{'blankLine': 'always', 'prev': '*', 'next': 'function'},
{'blankLine': 'always', 'prev': 'block-like', 'next': '*'},
{'blankLine': 'always', 'prev': '*', 'next': 'block-like'},
],
'new-cap': 'off'
},
};