diff --git a/.eslintignore b/.eslintignore index 363e3e05a..eac16e27d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,3 @@ -db/migration coverage -loadtests -public/dist -tests -dist \ No newline at end of file +dist +scripts \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index 8b4dd50fa..dfdf51405 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,7 @@ { "env": { "browser": true, - "es2021": true, + "es2022": true, "node": true, "jest": true }, diff --git a/src/routes/user.js b/src/routes/user.js index 58f3342e1..d3a1b1e93 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -3,7 +3,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import express from 'express' -import { Router } from 'express' import { asyncMiddleware } from '../middleware/util.js' import { requireSessionUser } from '../middleware/auth.js' @@ -20,7 +19,7 @@ import { import { unsubscribeFromEmails } from '../utils/email.js' import AppConstants from '../appConstants.js' -const router = Router() +const router = express.Router() // dashboard page // MNTOR-1327: for v2 release, we want to temp redirect users from dashboard