ef05583fba
* init some shared functions (videoHasWebchat, parseConfigUUIDs) * api/room: checking that video has live enabled * fix promise handling in initChat function * removing some 'use strict' that are no more necessary in typescript
42 lines
1.0 KiB
JSON
42 lines
1.0 KiB
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"extends": [
|
|
"standard-with-typescript"
|
|
],
|
|
"globals": {},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": 2018,
|
|
"project": [
|
|
"./server/tsconfig.json",
|
|
"./client/tsconfig.json"
|
|
]
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"ignorePatterns": [],
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": [2, {"argsIgnorePattern": "^_"}],
|
|
"@typescript-eslint/no-floating-promises": "error",
|
|
"@typescript-eslint/no-misused-promises": "error",
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
"@typescript-eslint/return-await": [2, "in-try-catch"], // FIXME: correct?
|
|
"@typescript-eslint/no-invalid-void-type": "off",
|
|
"@typescript-eslint/triple-slash-reference": "off",
|
|
"max-len": [
|
|
"error",
|
|
{
|
|
"code": 120,
|
|
"comments": 120
|
|
}
|
|
],
|
|
"no-unused-vars": "off"
|
|
}
|
|
}
|