Skip to content

Commit

Permalink
Update dependency eslint to v7 (mozilla#1852)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Peter deHaan <peter@deseloper.com>
  • Loading branch information
3 people authored Aug 4, 2020
1 parent 181aeb7 commit 15848e1
Show file tree
Hide file tree
Showing 8 changed files with 478 additions and 394 deletions.
26 changes: 16 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"use strict";

module.exports = {
env: {
es6: true,
node: true
node: true,
},
extends: [
"eslint:recommended",
Expand All @@ -10,42 +12,45 @@ module.exports = {
overrides: [
{
files: [
'public/js/**/*.js'
"public/js/**/*.js",
],
env: {
browser: true,
node: false
node: false,
},
rules: {
"strict": "off"
}
"strict": "off",
},
},
{
files: [
'scripts/*.js',
"scripts/*.js",
],
rules: {
"no-console": "off",
"no-process-exit": "off",
}
},
},
{
files: [
'tests/**/*.js',
"tests/**/*.js",
],
env: {
jest: true,
},
},
{
files: [
'tests/integration/**/*.js',
"tests/integration/**/*.js",
],
globals: {
"$": "readonly",
"$$": "readonly",
"browser": "readonly",
},
rules: {
"valid-jsdoc": "off",
},
},
],
plugins: [
Expand All @@ -58,6 +63,7 @@ module.exports = {
"eqeqeq": "error",
"no-console": ["error", {allow: ["error", "info", "warn"]}],
"no-process-env": "error",
"no-prototype-builtins": "off",
"no-trailing-spaces": "error",
"no-unused-vars": ["error", {vars: "all", args: "none", ignoreRestSiblings: false}],
"no-var": "error",
Expand All @@ -68,5 +74,5 @@ module.exports = {
"semi": ["error", "always"],
"strict": ["error", "safe"],
"valid-jsdoc": "warn",
}
},
};
2 changes: 1 addition & 1 deletion controllers/hibp.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async function notify (req, res) {
ctaHref: ctaHref,
whichPartial: "email_partials/report",
preFxaSubscriber,
},
}
);
notifiedRecipients.push(breachedEmail);
}
Expand Down
Loading

0 comments on commit 15848e1

Please sign in to comment.