2018-03-26 20:44:45 +02:00
|
|
|
{
|
2018-04-05 21:21:22 +02:00
|
|
|
"defaultSeverity": "error",
|
2018-05-22 21:31:43 +02:00
|
|
|
"extends": ["tslint:recommended", "tslint-react", "tslint-microsoft-contrib"],
|
2018-04-05 21:21:22 +02:00
|
|
|
"jsRules": {},
|
|
|
|
"rules": {
|
2019-01-14 22:49:58 +01:00
|
|
|
"align": false,
|
|
|
|
"newline-per-chained-call": false,
|
2018-04-10 01:13:39 +02:00
|
|
|
"array-type": [true, "generic"],
|
2018-04-14 04:06:55 +02:00
|
|
|
"arrow-parens": [true, "ban-single-arg-parens"],
|
2018-04-13 16:55:08 +02:00
|
|
|
"import-spacing": false,
|
2018-04-13 21:50:55 +02:00
|
|
|
"indent": [true, "spaces", 2],
|
2018-04-11 17:02:42 +02:00
|
|
|
"interface-name": [true, "never-prefix"],
|
2018-04-14 04:07:20 +02:00
|
|
|
"jsx-no-multiline-js": false,
|
2018-10-11 21:24:58 +02:00
|
|
|
"jsx-no-lambda": false,
|
|
|
|
"react-this-binding-issue": false,
|
2018-04-13 21:51:09 +02:00
|
|
|
"linebreak-style": [true, "LF"],
|
2018-10-11 21:24:58 +02:00
|
|
|
"max-line-length": false,
|
2018-04-12 01:45:48 +02:00
|
|
|
"mocha-avoid-only": true,
|
|
|
|
"mocha-no-side-effect-code": false,
|
|
|
|
"mocha-unneeded-done": true,
|
2018-05-22 21:31:43 +02:00
|
|
|
"no-angle-bracket-type-assertion": true,
|
2018-04-05 21:21:22 +02:00
|
|
|
"no-consecutive-blank-lines": [true, 2],
|
2018-04-11 17:02:42 +02:00
|
|
|
"object-literal-key-quotes": [true, "as-needed"],
|
|
|
|
"object-literal-sort-keys": false,
|
2021-02-09 07:00:54 +01:00
|
|
|
"no-async-without-await": true,
|
2018-05-04 22:08:26 +02:00
|
|
|
"ordered-imports": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"import-sources-order": "any",
|
|
|
|
"named-imports-order": "case-insensitive"
|
|
|
|
}
|
|
|
|
],
|
2021-04-22 10:03:58 +02:00
|
|
|
"quotemark": [true, "single", "jsx-double", "avoid-template", "avoid-escape"],
|
2018-04-14 04:06:55 +02:00
|
|
|
"semicolon": [true, "always", "ignore-bound-class-methods"],
|
|
|
|
"trailing-comma": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"singleline": "never",
|
|
|
|
"multiline": {
|
|
|
|
"objects": "always",
|
|
|
|
"arrays": "always",
|
|
|
|
"functions": "never",
|
|
|
|
"typeLiterals": "always"
|
|
|
|
},
|
|
|
|
"esSpecCompliant": true
|
|
|
|
}
|
2018-05-22 21:31:43 +02:00
|
|
|
],
|
2021-04-22 10:03:58 +02:00
|
|
|
"variable-name": [true, "check-format", "allow-leading-underscore", "allow-pascal-case"],
|
2020-06-09 05:54:58 +02:00
|
|
|
"function-name": [
|
|
|
|
true,
|
|
|
|
{
|
2021-06-25 07:33:31 +02:00
|
|
|
"function-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
|
|
|
|
"method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
|
|
|
|
"private-method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
|
|
|
|
"protected-method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
|
2020-06-09 05:54:58 +02:00
|
|
|
"static-method-regex": "^[a-zA-Z][\\w\\d]+$"
|
|
|
|
}
|
|
|
|
],
|
2021-07-05 02:26:40 +02:00
|
|
|
"no-implicit-dependencies": [true, ["electron"]],
|
2018-05-22 21:31:43 +02:00
|
|
|
"completed-docs": false,
|
|
|
|
"export-name": false,
|
|
|
|
"no-any": false,
|
|
|
|
"no-increment-decrement": false,
|
|
|
|
"no-object-literal-type-assertion": false,
|
|
|
|
"no-relative-imports": false,
|
|
|
|
"no-unsafe-any": false,
|
|
|
|
"typedef": false,
|
2019-01-14 22:49:58 +01:00
|
|
|
"possible-timing-attack": false,
|
|
|
|
"no-null-keyword": false,
|
2018-05-22 21:31:43 +02:00
|
|
|
"import-name": false,
|
|
|
|
"missing-jsdoc": false,
|
|
|
|
"no-reserved-keywords": false,
|
|
|
|
"no-single-line-block-comment": false,
|
|
|
|
"no-use-before-declare": false,
|
|
|
|
"prefer-array-literal": false,
|
|
|
|
"prefer-method-signature": false,
|
|
|
|
"prefer-type-cast": false,
|
2019-07-23 08:15:39 +02:00
|
|
|
"strict-boolean-expressions": false,
|
2020-06-18 04:25:02 +02:00
|
|
|
"no-promise-as-boolean": true,
|
2020-10-15 08:19:49 +02:00
|
|
|
"await-promise": true,
|
2019-09-23 03:00:51 +02:00
|
|
|
"no-suspicious-comment": false,
|
2020-06-12 10:08:44 +02:00
|
|
|
"no-backbone-get-set-outside-model": false,
|
|
|
|
"underscore-consistent-invocation": false,
|
|
|
|
"newline-before-return": false,
|
2020-06-19 08:31:12 +02:00
|
|
|
"number-literal-format": false,
|
2020-06-30 10:04:17 +02:00
|
|
|
"no-unnecessary-local-variable": false,
|
2021-06-16 06:44:10 +02:00
|
|
|
"no-unnecessary-type-assertion": false,
|
2019-07-23 08:15:39 +02:00
|
|
|
"react-no-dangerous-html": [
|
|
|
|
true,
|
|
|
|
{
|
2019-12-13 05:04:37 +01:00
|
|
|
"file": "ts/components/session/SessionHTMLRenderer.tsx",
|
|
|
|
"method": "<unknown>",
|
|
|
|
"comment": "Usage has been approved by Maxim on 13 Dec 2019"
|
2019-07-23 08:15:39 +02:00
|
|
|
}
|
2019-11-06 03:22:21 +01:00
|
|
|
],
|
|
|
|
"max-func-body-length": [true, 150]
|
2018-04-05 21:21:22 +02:00
|
|
|
},
|
2018-05-04 22:08:26 +02:00
|
|
|
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"]
|
2018-03-26 20:44:45 +02:00
|
|
|
}
|