Enforce comma-dangle eslint rule correctly, fix indent in comment

This commit is contained in:
Nihanth Subramanya 2018-02-13 17:32:51 +05:30
Родитель fcf85adaaf
Коммит 583ee12693
4 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -12,7 +12,7 @@ module.exports = {
],
root: true,
rules: {
"comma-dangle": ["error", {arrays: "only-multiline", objects: "only-multiline"}],
"comma-dangle": ["error", {arrays: "always-multiline", objects: "always-multiline"}],
"eqeqeq": "warn",
"no-console": "warn",
"no-process-env": "error",

Просмотреть файл

@ -18,7 +18,7 @@ const kEnvironmentVariables = [
"OAUTH_CLIENT_ID",
"OAUTH_CLIENT_SECRET",
"HIBP_API_ROOT",
"HIBP_API_TOKEN"
"HIBP_API_TOKEN",
];
const AppConstants = {
@ -30,7 +30,7 @@ const AppConstants = {
this[v] = process.env[v];
}
return this;
}
},
};
module.exports = AppConstants;

Просмотреть файл

@ -76,7 +76,7 @@ const EmailUtils = {
resolve(info);
});
});
}
},
};
module.exports = EmailUtils;

Просмотреть файл

@ -17,10 +17,10 @@ function getBreachHashset(breach) {
/*
* HIBP Breach, Object.keys(breach):
* [ 'Title', 'Name', 'Domain', 'BreachDate', 'AddedDate', 'ModifiedDate', 'PwnCount', 'Description',
'DataClasses', 'IsVerified', 'IsFabricated', 'IsSensitive', 'IsActive', 'IsRetired', 'IsSpamList',
'LogoType' ]
* See https://haveibeenpwned.com/API/v2#BreachModel for more
*/
* 'DataClasses', 'IsVerified', 'IsFabricated', 'IsSensitive', 'IsActive', 'IsRetired', 'IsSpamList',
* 'LogoType' ]
* See https://haveibeenpwned.com/API/v2#BreachModel for more
*/
if (breach.IsActive && breach.IsVerified && breach.DataClasses.includes("Email addresses")) {
console.log("Active, verified breach with email addresses: " + breach.Name);
const url = AppConstants.HIBP_API_ROOT + "/enterprisesubscriber/hashset/" + breach.Name;
@ -50,7 +50,7 @@ const breachesRequestObject = {
url: AppConstants.HIBP_API_ROOT + "/breaches",
headers: {
"User-Agent": USER_AGENT,
}
},
};
if (!fs.existsSync(BREACH_HASHSET_DIR)) {