This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
85 lines (85 loc) · 2.42 KB
/
index.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
module.exports = {
'defaultSeverity': 'error',
'extends': [
'tslint-config-airbnb',
'tslint-no-unused-expression-chai'
],
'jsRules': true,
'rules': {
'align': [true, 'parameters'],
'cyclomatic-complexity': [true, 10],
'early-exit': {
'severity': 'warning'
},
'import-name': false,
'max-line-length': false,
'member-ordering': {
'severity': 'warning',
'options': 'statics-first'
},
'no-angle-bracket-type-assertion': {
'severity': 'warning'
},
'no-console': {
'severity': 'warning',
},
'no-namespace': [true, 'allow-declarations'],
'no-parameter-reassignment': false,
'no-return-undefined': {
'severity': 'warning'
},
'no-unnecessary-else': {
'severity': 'warning'
},
'no-unused': true,
'object-curly-spacing': {
'severity': 'warning',
'options': ['always']
},
'ordered-imports': {
'severity': 'warning'
},
'prefer-array-literal': false,
'prefer-while': {
'severity': 'warning'
},
'semicolon': {
'severity': 'warning',
'options': ['always']
},
'space-before-function-paren': [true, {
'anonymous': 'never',
'named': 'never',
'asyncArrow': 'always',
'method': 'never',
'constructor': 'never'
}],
'ter-arrow-parens': false,
'ter-indent': [
true,
4,
{ 'SwitchCase': 1 },
],
'ter-max-len': [true, 160, 4, {
'ignoreComments': true,
'ignoreUrls': true,
'ignorePattern': '^\\s*var\\s.+=\\s*require\\s*\\('
}],
'trailing-comma': [true, {
'multiline': {
'objects': 'always',
'arrays': 'always',
'imports': 'ignore',
'exports': 'ignore',
'functions': 'ignore'
},
'singleline': {
'imports': 'ignore',
'exports': 'ignore',
'functions': 'ignore'
}
}],
'variable-name': [true, 'check-format', 'allow-leading-underscore'],
},
'rulesDirectory': ['tslint-consistent-codestyle']
}