2018-06-05 05:10:41 +02:00
|
|
|
{
|
|
|
|
"extends": "tslint:recommended",
|
|
|
|
"rules": {
|
2021-12-17 15:57:11 +01:00
|
|
|
"align": [true, "statements", "members"],
|
2018-06-05 05:10:41 +02:00
|
|
|
"ban-types": {
|
|
|
|
"options": [
|
2021-12-17 15:57:11 +01:00
|
|
|
["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`?"]
|
2018-06-05 05:10:41 +02:00
|
|
|
]
|
|
|
|
},
|
2021-12-17 15:57:11 +01:00
|
|
|
"member-access": [true, "no-public"],
|
2018-06-05 05:10:41 +02:00
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2021-12-17 15:57:11 +01:00
|
|
|
"no-empty": [true],
|
2018-06-05 05:10:41 +02:00
|
|
|
"object-literal-sort-keys": false,
|
2021-12-17 15:57:11 +01:00
|
|
|
"object-literal-shorthand": [true, "never"],
|
2018-06-05 05:10:41 +02:00
|
|
|
"prefer-for-of": false,
|
|
|
|
"whitespace": [
|
|
|
|
true,
|
|
|
|
"check-branch",
|
|
|
|
"check-decl",
|
|
|
|
"check-module",
|
|
|
|
"check-operator",
|
|
|
|
"check-preblock",
|
|
|
|
"check-separator",
|
|
|
|
"check-type"
|
2018-06-27 04:51:58 +02:00
|
|
|
],
|
2020-12-14 19:27:32 +01:00
|
|
|
"max-classes-per-file": false,
|
2021-01-12 21:31:22 +01:00
|
|
|
"trailing-comma": [
|
|
|
|
true,
|
|
|
|
{
|
2021-01-13 21:34:06 +01:00
|
|
|
"multiline": {
|
|
|
|
"objects": "always",
|
|
|
|
"arrays": "always",
|
|
|
|
"functions": "ignore",
|
|
|
|
"typeLiterals": "ignore"
|
|
|
|
},
|
2021-01-12 21:31:22 +01:00
|
|
|
"singleline": "never"
|
|
|
|
}
|
2021-01-13 21:34:06 +01:00
|
|
|
],
|
2021-02-03 18:41:33 +01:00
|
|
|
"ordered-imports": true,
|
2021-12-17 15:44:44 +01:00
|
|
|
"arrow-parens": [true]
|
2018-06-05 05:10:41 +02:00
|
|
|
}
|
|
|
|
}
|