eslint --fix
This commit is contained in:
@@ -12,13 +12,13 @@ but ignore other databases.
|
||||
|
||||
String.prototype.startsWith = function(substring) {
|
||||
return (this.indexOf(substring) == 0);
|
||||
}
|
||||
};
|
||||
|
||||
var dbNameList = db.getMongo().getDBNames();
|
||||
for (var i in dbNameList) {
|
||||
if (dbNameList[i].startsWith('test_') || dbNameList[i].startsWith('acceptance_')) {
|
||||
dbToDrop = db.getMongo().getDB(dbNameList[i]);
|
||||
print("Dropping test db " + dbNameList[i]);
|
||||
print('Dropping test db ' + dbNameList[i]);
|
||||
dbToDrop.dropDatabase();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
var message = "Rock & Roll";
|
||||
var x = "<string>" + message + "</strong>";
|
||||
var template = "<%= invalid %>";
|
||||
var message = 'Rock & Roll';
|
||||
var x = '<string>' + message + '</strong>';
|
||||
var template = '<%= invalid %>';
|
||||
// quiet the linter
|
||||
alert(x);
|
||||
alert(template);
|
||||
|
||||
Reference in New Issue
Block a user