From fd1c81d5df844a54fffce582b754ba871b50a8e1 Mon Sep 17 00:00:00 2001 From: segayuu Date: Mon, 30 Oct 2017 12:31:52 +0900 Subject: [PATCH] cleanup lint error: object-literal-key-quotes --- types/request/request-tests.ts | 22 +++++++++++----------- types/request/tslint.json | 1 - 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/types/request/request-tests.ts b/types/request/request-tests.ts index 761ef45ebb..d2c308ed75 100644 --- a/types/request/request-tests.ts +++ b/types/request/request-tests.ts @@ -351,7 +351,7 @@ request({ data: [ { 'content-type': 'application/json', - body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}}) + body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, content_type: 'text/plain' }}}) }, { body: 'I am an attachment' } ] @@ -372,7 +372,7 @@ request({ multipart: [ { headers: { 'content-type': 'application/json' }, - body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}}) + body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, content_type: 'text/plain' }}}) }, { body: 'I am an attachment' }, { body: fs.createReadStream('image.png') } @@ -389,24 +389,24 @@ request({ request.get('http://some.server.com/').auth('username', 'password', false); // or request.get('http://some.server.com/', { - 'auth': { - 'user': 'username', - 'pass': 'password', - 'sendImmediately': false + auth: { + user: 'username', + pass: 'password', + sendImmediately: false } }); // or request.get('http://some.server.com/').auth('foo', 'bar', true, 'bearerToken'); // or request.get('http://some.server.com/', { - 'auth': { - 'bearer': 'bearerToken' + auth: { + bearer: 'bearerToken' } }); // or request.get('http://some.server.com/', { - 'auth': { - 'bearer': () => 'bearerToken' + auth: { + bearer: () => 'bearerToken' } }); @@ -606,7 +606,7 @@ var rand = Math.floor(Math.random() * 100000000).toString(); , uri: 'http://mikeal.iriscouch.com/testjs/' + rand , multipart: [ { headers: { 'content-type': 'application/json' } - , body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}}) + , body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, content_type: 'text/plain' }}}) } , { body: 'I am an attachment' } ] diff --git a/types/request/tslint.json b/types/request/tslint.json index 91824c6ac1..7f1cf14897 100644 --- a/types/request/tslint.json +++ b/types/request/tslint.json @@ -6,7 +6,6 @@ "no-inferrable-types": false, "no-misused-new": false, "no-var-keyword": false, - "object-literal-key-quotes": false, "object-literal-shorthand": false, "prefer-const": false, "strict-export-declare-modifiers": false,