From 79e8df5a7c6a5fd90300e8d595435553a828bd39 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 17 Jun 2024 17:56:08 +0200 Subject: [PATCH 1/2] 37849678: Change extension of eslint.config.cjs to .js --- eslint.config.cjs => eslint.config.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename eslint.config.cjs => eslint.config.js (100%) diff --git a/eslint.config.cjs b/eslint.config.js similarity index 100% rename from eslint.config.cjs rename to eslint.config.js From 016d8b590ba5b7bc24787d73767ae76276da6191 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 17 Jun 2024 17:56:32 +0200 Subject: [PATCH 2/2] 37849678: Fix eslint.config.js to use the ESM syntax --- eslint.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index a680e28..da4cc0b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,6 +1,6 @@ -const finsitPlugin = require("@foretagsplatsen/eslint-plugin"); +import finsitPlugin from "@foretagsplatsen/eslint-plugin"; -module.exports = [ +export default [ ...finsitPlugin.configs.main, { ignores: ["coverage/"] }, { @@ -11,7 +11,7 @@ module.exports = [ unusedExports: true, missingExports: true, ignoreExports: [ - "eslint.config.cjs", + "eslint.config.js", "vitest.config.js", ".eslintrc.cjs", "index.js",