cleanup lint error: no-padding

This commit is contained in:
segayuu
2017-10-30 11:03:19 +09:00
parent 2dde57da14
commit 3c49d1b237
3 changed files with 7 additions and 17 deletions

View File

@@ -22,10 +22,8 @@ import FormData = require('form-data');
import { Url } from 'url';
declare namespace request {
export interface RequestAPI<TRequest extends Request,
TOptions extends CoreOptions,
TUriUrlOptions> {
export interface RequestAPI<TRequest extends Request, TOptions extends CoreOptions, TUriUrlOptions>
{
defaults(options: TOptions): RequestAPI<TRequest, TOptions, RequiredUriUrl>;
defaults(options: RequiredUriUrl & TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>;
@@ -70,9 +68,8 @@ declare namespace request {
}
interface DefaultUriUrlRequestApi<TRequest extends Request,
TOptions extends CoreOptions,
TUriUrlOptions> extends RequestAPI<TRequest, TOptions, TUriUrlOptions> {
TOptions extends CoreOptions,
TUriUrlOptions> extends RequestAPI<TRequest, TOptions, TUriUrlOptions> {
defaults(options: TOptions): DefaultUriUrlRequestApi<TRequest, TOptions, OptionalUriUrl>;
(callback?: RequestCallback): TRequest;

View File

@@ -89,21 +89,15 @@ strOrTrueOrUndef = oauth.body_hash;
var options: request.Options = {
url: str,
uri: str,
callback: (error: any, response: any, body: any) => {
},
callback: (error: any, response: any, body: any) => {},
jar: value,
form: obj,
oauth: value,
aws: aws,
qs: obj,
json: value,
jsonReviver: (key: string, value: any) => {
},
jsonReplacer: (key: string, value: any) => {
},
jsonReviver: (key: string, value: any) => {},
jsonReplacer: (key: string, value: any) => {},
multipart: value,
agent: new http.Agent(),
agentOptions: value,

View File

@@ -33,7 +33,6 @@
"no-misused-new": false,
"no-namespace": false,
"no-object-literal-type-assertion": false,
"no-padding": false,
"no-redundant-jsdoc": false,
"no-redundant-jsdoc-2": false,
"no-redundant-undefined": false,