Remove vendor/js code and jQuery from ESLint config and tweak ESLint config
This commit is contained in:
Родитель
422911a2dc
Коммит
0af3e48ef2
15
.eslintrc.js
15
.eslintrc.js
|
@ -1,14 +1,25 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
es6: true,
|
||||
node: true,
|
||||
jquery: true,
|
||||
node: true
|
||||
},
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:node/recommended",
|
||||
],
|
||||
overrides: [
|
||||
{
|
||||
files: [
|
||||
'public/js/**/*.js'
|
||||
],
|
||||
env: {
|
||||
browser: true,
|
||||
node: false
|
||||
},
|
||||
rules: {
|
||||
"strict": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
files: [
|
||||
'scripts/*.js',
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
/* eslint-env browser */
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
function isValidEmail(val) {
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -16,8 +16,6 @@ if (args["--help"]) {
|
|||
console.log("Usage: node add-breached-emails.js [--extraTestEmail=<...>]");
|
||||
console.log("Adds test[1-3]@test.com emails to LinkedIn, Adobe, and AllMusic breaches.");
|
||||
console.log("--extraTestEmail also adds the supplied test email address and includes it in the LinkedIn, Adobe, and AllMusic breaches.");
|
||||
// We can `process.exit()` here since it's a CLI script.
|
||||
// eslint-disable-next-line no-process-exit
|
||||
process.exit();
|
||||
}
|
||||
|
||||
|
@ -50,6 +48,5 @@ const sampleBreaches = [
|
|||
await DBUtils.deleteBreach(999999);
|
||||
const breach = await DBUtils.getBreachByName("LinkedIn");
|
||||
await DBUtils.setBreachedHashNotified(breach, testEmail);
|
||||
// eslint-disable-next-line no-process-exit
|
||||
process.exit();
|
||||
})();
|
||||
|
|
|
@ -22,8 +22,6 @@ const args = arg({
|
|||
if (args["--help"]) {
|
||||
console.log("Usage: node load-breaaches.js [--createAMBreach]");
|
||||
console.log("--createAMBreach creates the 'AllMusic' test fixture breach.");
|
||||
// We can `process.exit()` here since it's a CLI script.
|
||||
// eslint-disable-next-line no-process-exit
|
||||
process.exit();
|
||||
}
|
||||
|
||||
|
@ -38,8 +36,6 @@ async function handleBreachesResponse(response) {
|
|||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
// We can `process.exit()` here since it's a CLI script.
|
||||
// eslint-disable-next-line no-process-exit
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
@ -65,12 +61,8 @@ async function handleBreachesResponse(response) {
|
|||
await handleBreachesResponse(breachesResponse);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
// We can `process.exit()` here since it's a CLI script.
|
||||
// eslint-disable-next-line no-process-exit
|
||||
process.exit(1);
|
||||
}
|
||||
console.log("Done handling breaches response.");
|
||||
// We can `process.exit()` here since it's a CLI script.
|
||||
// eslint-disable-next-line no-process-exit
|
||||
process.exit();
|
||||
})();
|
||||
|
|
|
@ -39,6 +39,5 @@ async function notifySubscribersOfNewBreach(breachName) {
|
|||
|
||||
(async () => {
|
||||
await notifySubscribersOfNewBreach(breachName);
|
||||
// eslint-disable-next-line no-process-exit
|
||||
process.exit();
|
||||
})();
|
||||
|
|
Загрузка…
Ссылка в новой задаче