Re-enable ban-types

This commit is contained in:
Oliver Blanthorn 2020-06-18 21:55:04 +01:00
parent f711265f1b
commit 7e386f87b8
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
3 changed files with 5 additions and 2 deletions

View file

@ -48,7 +48,7 @@ module.exports = {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/ban-types": [
"off", //"error",
"error",
{
"types": {
"Object": {

View file

@ -38,7 +38,7 @@ interface MessageResp {
*/
async function sendNativeMsg(
cmd: MessageCommand,
opts: object,
opts: Record<string, unknown>,
quiet = false,
): Promise<MessageResp> {
const send = Object.assign({ cmd }, opts)

3
src/tridactyl.d.ts vendored
View file

@ -53,11 +53,14 @@ interface HTMLElement {
focus(): void
}
/* eslint-disable @typescript-eslint/ban-types */
// these functions really can be anything, ditto for the objects
declare function exportFunction(
func: Function,
targetScope: object,
options?: { defineAs?: string; allowCrossOriginArguments?: boolean },
): Function
/* eslint-enable @typescript-eslint/ban-types */
// Web extension types not in web-ext-types yet
declare namespace browser.find {