Disable eslint warnings for specific lines

This commit is contained in:
Peter Evans
2020-07-24 11:06:51 +09:00
parent 9604e4dbf8
commit 296463be32
2 changed files with 5 additions and 2 deletions
+1 -2
View File
@@ -14,7 +14,6 @@
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/ban-types": "warn"
"@typescript-eslint/camelcase": "off"
}
}
+4
View File
@@ -5,12 +5,16 @@ import {Command, SlashCommandPayload} from './command-helper'
type ReposCreateDispatchEventParamsClientPayload = {
[key: string]: ReposCreateDispatchEventParamsClientPayloadKeyString
}
// eslint-disable-next-line
type ReposCreateDispatchEventParamsClientPayloadKeyString = {}
export interface ClientPayload
extends ReposCreateDispatchEventParamsClientPayload {
// eslint-disable-next-line
github: any
// eslint-disable-next-line
pull_request?: any
// eslint-disable-next-line
slash_command?: SlashCommandPayload | any
}