session-desktop/tslint.json
Audric Ackermann 28c7445dce
refactor most of the components to outside of their Session folder (#2072)
* refactor most of the components to outside of their Session folder

* finish moving overlay and memberListItem to react hook

* fix bug with kicked member len >2 not being displayed

also sort admins first in UpdateGroupMembers dialog

* fix admin leaving text of groupNotification

* add a useFocusMount hook to focus input fields on mount

* make click avatar convo item open only user dialog

* cleanup config default.json

* make sure to use convoController to build sync message

* disable showing pubkey on opengroups

* add a pause on audio playback

Fixes #2079
2021-12-14 15:15:12 +11:00

101 lines
3.3 KiB
JSON

{
"defaultSeverity": "error",
"extends": ["tslint:recommended", "tslint-react", "tslint-microsoft-contrib"],
"jsRules": {},
"rules": {
"use-simple-attributes": false,
"align": false,
"newline-per-chained-call": false,
"array-type": [true, "generic"],
"arrow-parens": [true, "ban-single-arg-parens"],
"import-spacing": false,
"indent": [true, "spaces", 2],
"interface-name": [true, "never-prefix"],
"jsx-no-multiline-js": false,
"jsx-no-lambda": false,
"react-this-binding-issue": false,
"linebreak-style": [true, "LF"],
"max-line-length": false,
"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,
"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"
}
],
"quotemark": [true, "single", "jsx-double", "avoid-template", "avoid-escape"],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "never",
"typeLiterals": "always"
},
"esSpecCompliant": true
}
],
"variable-name": [true, "check-format", "allow-leading-underscore", "allow-pascal-case"],
"function-name": [
true,
{
"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]+$"
}
],
"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,
"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,
"strict-boolean-expressions": false,
"no-promise-as-boolean": true,
"await-promise": true,
"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,
"no-unnecessary-type-assertion": false,
"react-no-dangerous-html": [
true,
{
"file": "ts/components/session/SessionHTMLRenderer.tsx",
"method": "<unknown>",
"comment": "Usage has been approved by Maxim on 13 Dec 2019"
}
],
"max-func-body-length": [true, 150]
},
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"]
}