mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Re-enable ban-types
This commit is contained in:
parent
f711265f1b
commit
7e386f87b8
3 changed files with 5 additions and 2 deletions
|
@ -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": {
|
||||
|
|
|
@ -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
3
src/tridactyl.d.ts
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue