Skip to content

Commit 7eb9ab9

Browse files
committed
Go ecmaVersion 8
1 parent 04ef36b commit 7eb9ab9

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parserOptions": {
3-
"ecmaVersion": 6,
3+
"ecmaVersion": 8,
44
"ecmaFeatures": {}
55
},
66
"rules": {
@@ -182,7 +182,6 @@
182182
"no-whitespace-before-property": 2,
183183
"no-with": 2,
184184
"nonblock-statement-body-position": 2,
185-
"object-curly-spacing": 2,
186185
"object-shorthand": [2, "consistent"],
187186
"one-var": 2,
188187
"operator-assignment": 2,

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ class CloudinaryAdapter extends StorageBase {
152152
const opts = options || {};
153153
return new Promise(async (resolve, reject) => {
154154
try {
155-
return resolve(await got(opts.path, { responseType: 'buffer', resolveBodyOnly: true }));
155+
return resolve(await got(opts.path, { responseType: 'buffer',
156+
resolveBodyOnly: true }));
156157
} catch (err) {
157158
return reject(new common.errors.GhostError({
158159
err: err,

tests/.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"plugins": ["mocha"],
33
"parserOptions": {
4-
"ecmaVersion": 6,
4+
"ecmaVersion": 8,
55
"ecmaFeatures": {}
66
},
77
"rules": {
@@ -182,7 +182,6 @@
182182
"no-whitespace-before-property": 2,
183183
"no-with": 2,
184184
"nonblock-statement-body-position": 2,
185-
"object-curly-spacing": 2,
186185
"object-shorthand": 2,
187186
"one-var": 2,
188187
"operator-assignment": 2,

tests/adapter/read.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ describe('read', function () {
1515

1616
cloudinaryAdapter = new CloudinaryAdapter(fixtures.sampleConfig);
1717
const scope = nock('https://blog.mornati.net')
18-
.get('/myimage.png')
19-
.reply(200, { "body": "imagecontent" }),
18+
.get('/myimage.png')
19+
.reply(200, { "body": "imagecontent" }),
2020
options = { "path": "https://blog.mornati.net/myimage.png" };
2121

2222
cloudinaryAdapter.read(options).then(function () {
@@ -39,8 +39,8 @@ describe('read', function () {
3939

4040
it('should return an error on inexistent resource', function (done) {
4141
const scope = nock('https://blog.mornati.net')
42-
.get('/myimage.png')
43-
.replyWithError('some error occurred'),
42+
.get('/myimage.png')
43+
.replyWithError('some error occurred'),
4444
options = { "path": "https://blog.mornati.net/myimage.png" };
4545

4646
cloudinaryAdapter = new CloudinaryAdapter(fixtures.sampleConfig);

0 commit comments

Comments
 (0)