Skip to content

Commit

Permalink
Merge pull request #679 from opengovsg/ca44dependabot/npm_and_yarn/de…
Browse files Browse the repository at this point in the history
…pendabot/eslint-9.8.0

chore(deps): bump eslint from 8.57.0 to 9.8.0
  • Loading branch information
LoneRifle authored Aug 7, 2024
2 parents 284916f + afc4701 commit ef1b659
Show file tree
Hide file tree
Showing 4 changed files with 330 additions and 301 deletions.
24 changes: 24 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("eslint:recommended", "plugin:prettier/recommended"), {
languageOptions: {
globals: {
...globals.node,
},

ecmaVersion: 2020,
sourceType: "commonjs",
},
}];
8 changes: 1 addition & 7 deletions lib/express/myinfo/consent.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ const CONSENT_TEMPLATE = fs.readFileSync(
const authorizations = {}

const authorize = (redirectTo) => (req, res) => {
const {
client_id, // eslint-disable-line camelcase
redirect_uri, // eslint-disable-line camelcase
attributes,
purpose,
state,
} = req.query
const { client_id, redirect_uri, attributes, purpose, state } = req.query
const relayStateParams = qs.stringify({
client_id,
redirect_uri,
Expand Down
Loading

0 comments on commit ef1b659

Please sign in to comment.