Skip to content

Commit 1ee4ddf

Browse files
Add eslint rule - Prefer dot notation (#392)
1 parent 331fca0 commit 1ee4ddf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
"comma-dangle": "off",
2222
"comma-spacing": "off",
2323
"consistent-return": "off",
24-
"dot-notation": "off",
24+
"dot-notation": "error",
2525
"function-paren-newline": "off",
2626
"func-names": "off",
2727
"global-require": "off",

lib-es5/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,4 +679,4 @@ exports.restore_metadata_field_datasource = function restore_metadata_field_data
679679
options.content_type = "json";
680680
var params = { external_ids: entries_external_id };
681681
return call_api("post", ["metadata_fields", field_external_id, "datasource_restore"], params, callback, options);
682-
};
682+
};

test/api_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,8 @@ describe("api", function () {
983983
return cloudinary.v2.api.delete_resources_by_prefix(folderPath)
984984
.then(() => cloudinary.v2.api.sub_folders(folderPath).then(folder => {
985985
expect(folder).not.to.be(null);
986-
expect(folder["total_count"]).to.eql(0);
987-
expect(folder["folders"]).to.be.empty;
986+
expect(folder.total_count).to.eql(0);
987+
expect(folder.folders).to.be.empty;
988988
}));
989989
});
990990
});

0 commit comments

Comments
 (0)