session-desktop/tslint.json

102 lines
3.3 KiB
JSON
Raw Normal View History

{
"defaultSeverity": "error",
"extends": ["tslint:recommended", "tslint-react", "tslint-microsoft-contrib"],
"jsRules": {},
"rules": {
"use-simple-attributes": false,
2019-01-14 22:49:58 +01:00
"align": false,
"newline-per-chained-call": false,
"array-type": [true, "generic"],
2018-04-14 04:06:55 +02:00
"arrow-parens": [true, "ban-single-arg-parens"],
"import-spacing": false,
"indent": [true, "spaces", 2],
2018-04-11 17:02:42 +02:00
"interface-name": [true, "never-prefix"],
"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,
"no-angle-bracket-type-assertion": true,
"no-consecutive-blank-lines": [true, 2],
"no-submodule-imports": false,
2018-04-11 17:02:42 +02:00
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-sort-keys": false,
"no-async-without-await": true,
"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
}
],
2021-04-22 10:03:58 +02:00
"variable-name": [true, "check-format", "allow-leading-underscore", "allow-pascal-case"],
"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]+$",
"static-method-regex": "^[a-zA-Z][\\w\\d]+$"
}
],
2021-07-05 02:26:40 +02:00
"no-implicit-dependencies": [true, ["electron"]],
"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,
"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,
"no-promise-as-boolean": true,
"await-promise": true,
2019-09-23 03:00:51 +02:00
"no-suspicious-comment": false,
"no-backbone-get-set-outside-model": false,
"underscore-consistent-invocation": false,
"newline-before-return": false,
"number-literal-format": false,
"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,
{
"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
}
],
"max-func-body-length": [true, 150]
},
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"]
}