mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
cleanup lint error: object-literal-key-quotes
This commit is contained in:
@@ -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' }
|
||||
]
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user