2017-10-30 22:49:56 +01:00
|
|
|
{
|
|
|
|
"extends": "tslint:recommended",
|
|
|
|
"rules": {
|
2017-11-13 22:12:23 +01:00
|
|
|
"align": [ true, "statements", "members" ],
|
2017-10-30 22:49:56 +01:00
|
|
|
"ban-types": {
|
2017-10-31 04:44:53 +01:00
|
|
|
"options": [
|
|
|
|
[ "Object", "Avoid using the `Object` type. Did you mean `object`?" ],
|
|
|
|
[ "Boolean", "Avoid using the `Boolean` type. Did you mean `boolean`?" ],
|
|
|
|
[ "Number", "Avoid using the `Number` type. Did you mean `number`?" ],
|
|
|
|
[ "String", "Avoid using the `String` type. Did you mean `string`?" ],
|
|
|
|
[ "Symbol", "Avoid using the `Symbol` type. Did you mean `symbol`?" ]
|
|
|
|
]
|
2017-10-30 22:49:56 +01:00
|
|
|
},
|
2017-10-31 04:44:53 +01:00
|
|
|
"member-access": [ true, "no-public" ],
|
|
|
|
"member-ordering": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"order": [
|
|
|
|
"public-static-field",
|
|
|
|
"public-static-method",
|
|
|
|
"protected-static-field",
|
|
|
|
"protected-static-method",
|
|
|
|
"private-static-field",
|
|
|
|
"private-static-method",
|
|
|
|
"public-instance-field",
|
|
|
|
"protected-instance-field",
|
|
|
|
"private-instance-field",
|
|
|
|
"public-constructor",
|
|
|
|
"protected-constructor",
|
|
|
|
"private-constructor",
|
|
|
|
"public-instance-method",
|
|
|
|
"protected-instance-method",
|
|
|
|
"private-instance-method"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-empty": [ true, "allow-empty-catch" ],
|
2017-10-30 22:49:56 +01:00
|
|
|
"object-literal-sort-keys": false,
|
2017-12-06 20:23:34 +01:00
|
|
|
"object-literal-shorthand": [ true, "never" ],
|
2017-11-16 18:49:23 +01:00
|
|
|
"prefer-for-of": false,
|
2017-10-31 04:44:53 +01:00
|
|
|
"quotemark": [ true, "single" ],
|
2017-10-30 22:49:56 +01:00
|
|
|
"whitespace": [
|
|
|
|
true,
|
|
|
|
"check-branch",
|
|
|
|
"check-decl",
|
|
|
|
"check-module",
|
|
|
|
"check-operator",
|
|
|
|
"check-preblock",
|
|
|
|
"check-separator",
|
|
|
|
"check-type"
|
2018-06-30 06:23:59 +02:00
|
|
|
],
|
|
|
|
"max-classes-per-file": false
|
2017-10-30 22:49:56 +01:00
|
|
|
}
|
|
|
|
}
|