forked from SignalK/signalk-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.js
32 lines (30 loc) · 831 Bytes
/
tslint.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
const TSRULES = {
'no-floating-promises': true,
'member-access': [true, 'no-public'],
'interface-name': false,
'max-classes-per-file': false,
'no-any': false
}
const UNIVERSAL_RULES = {
prettier: true,
semicolon: [true, 'never'],
quotemark: [true, 'single', 'jsx-double'],
'arrow-parens': [true, 'ban-single-arg-parens'],
'trailing-comma': [true, { multiline: 'never', singleline: 'never' }],
'object-literal-sort-keys': false,
'no-console': false,
'no-unused-expression': [true, 'allow-fast-null-checks']
}
module.exports = {
defaultSeverity: 'error',
rulesDirectory: ['tslint-plugin-prettier'],
extends: ['tslint:recommended', 'tslint-config-prettier'],
linterOptions: {
exclude: ['node_modules/**']
},
jsRules: UNIVERSAL_RULES,
rules: {
...UNIVERSAL_RULES,
...TSRULES
}
}