2018-03-22 23:08:37 +03:00
|
|
|
{
|
2020-01-29 01:50:56 +03:00
|
|
|
"extends": "tslint-microsoft-contrib",
|
2018-03-22 23:08:37 +03:00
|
|
|
"rules": {
|
|
|
|
"await-promise": [
|
2018-06-11 23:58:47 +03:00
|
|
|
true,
|
2020-01-29 01:50:56 +03:00
|
|
|
"Thenable"
|
2018-03-22 23:08:37 +03:00
|
|
|
],
|
2020-01-29 01:50:56 +03:00
|
|
|
"no-backbone-get-set-outside-model": false,
|
|
|
|
"radix": false,
|
|
|
|
"strict-boolean-expressions": [
|
|
|
|
false, // todo
|
|
|
|
"allow-string",
|
|
|
|
"allow-undefined-union",
|
|
|
|
"allow-mix",
|
|
|
|
"allow-null-union"
|
2018-03-22 23:08:37 +03:00
|
|
|
],
|
|
|
|
"completed-docs": [
|
2020-01-29 01:50:56 +03:00
|
|
|
false,
|
2018-03-22 23:08:37 +03:00
|
|
|
"classes"
|
|
|
|
],
|
2020-01-29 01:50:56 +03:00
|
|
|
"import-name": false,
|
2018-03-22 23:08:37 +03:00
|
|
|
"max-line-length": [
|
2020-01-29 01:50:56 +03:00
|
|
|
false,
|
2018-03-22 23:08:37 +03:00
|
|
|
140
|
|
|
|
],
|
2020-01-29 01:50:56 +03:00
|
|
|
"missing-jsdoc": false,
|
|
|
|
"no-relative-imports": false,
|
2018-03-22 23:08:37 +03:00
|
|
|
"no-void-expression": [
|
2020-01-29 01:50:56 +03:00
|
|
|
false, // todo
|
|
|
|
"ignore-arrow-function-shorthand"
|
2018-03-22 23:08:37 +03:00
|
|
|
],
|
|
|
|
"variable-name": [
|
2020-01-29 01:50:56 +03:00
|
|
|
false, // todo
|
|
|
|
"ban-keywords",
|
|
|
|
"check-format",
|
|
|
|
"allow-leading-underscore"
|
|
|
|
],
|
|
|
|
"linebreak-style": false,
|
|
|
|
"newline-before-return": false,
|
|
|
|
"no-single-line-block-comment": false,
|
2018-03-22 23:08:37 +03:00
|
|
|
"quotemark": [
|
2020-01-29 01:50:56 +03:00
|
|
|
false,
|
2018-03-22 23:08:37 +03:00
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"no-unexternalized-strings": [
|
2020-01-29 01:50:56 +03:00
|
|
|
false, // todo
|
2018-03-22 23:08:37 +03:00
|
|
|
{
|
|
|
|
"signatures": [
|
|
|
|
"localize",
|
|
|
|
"nls.localize"
|
|
|
|
],
|
|
|
|
"keyIndex": 0,
|
|
|
|
"messageIndex": 1
|
|
|
|
}
|
|
|
|
],
|
2020-01-29 01:50:56 +03:00
|
|
|
"no-implicit-dependencies": [
|
|
|
|
true,
|
|
|
|
[
|
|
|
|
"vscode"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"switch-final-break": false,
|
|
|
|
"prefer-object-spread": false,
|
|
|
|
"no-return-await": false,
|
|
|
|
"no-parameter-reassignment": false,
|
|
|
|
"no-object-literal-type-assertion": false,
|
|
|
|
"function-name": [
|
|
|
|
false, // todo
|
|
|
|
{
|
|
|
|
"static-method-regex": "^[a-z][\\w_]+$"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"typedef": [
|
2020-03-05 21:01:28 +03:00
|
|
|
true,
|
2020-01-29 01:50:56 +03:00
|
|
|
"call-signature",
|
|
|
|
// "arrow-call-signature",
|
|
|
|
"parameter",
|
|
|
|
// "arrow-parameter",
|
|
|
|
"property-declaration",
|
2020-03-05 21:01:28 +03:00
|
|
|
// todo "variable-declaration",
|
2020-01-29 01:50:56 +03:00
|
|
|
"member-variable-declaration"
|
|
|
|
],
|
|
|
|
"prefer-template": [
|
|
|
|
false, // todo
|
|
|
|
"allow-single-concat"
|
|
|
|
],
|
|
|
|
"no-use-before-declare": false,
|
|
|
|
"newline-per-chained-call": false,
|
|
|
|
"no-dynamic-delete": false,
|
|
|
|
"trailing-comma": false,
|
|
|
|
"no-console": false,
|
|
|
|
"no-parameter-properties": false, // todo
|
|
|
|
"no-multiline-string": false, // todo
|
|
|
|
"interface-name": false, // todo
|
|
|
|
"no-unsafe-any": false, // todo
|
|
|
|
"no-increment-decrement": false, // todo
|
|
|
|
"promise-function-async": false // todo
|
2018-03-22 23:08:37 +03:00
|
|
|
},
|
|
|
|
"linterOptions": {
|
|
|
|
"exclude": [
|
2020-01-29 01:50:56 +03:00
|
|
|
"src/mongo/grammar/**" // generated files
|
2018-03-22 23:08:37 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|