From fff1c38866f6c90b552445f5113d33fbeb0614f9 Mon Sep 17 00:00:00 2001 From: Robbe Van Petegem Date: Mon, 6 May 2024 12:55:54 +0200 Subject: [PATCH] Fix react config --- eslint-config/{default.js => index.js} | 2 +- eslint-config/package.json | 2 +- eslint.config.js | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) rename eslint-config/{default.js => index.js} (98%) diff --git a/eslint-config/default.js b/eslint-config/index.js similarity index 98% rename from eslint-config/default.js rename to eslint-config/index.js index 25e0318..bd2e8e4 100644 --- a/eslint-config/default.js +++ b/eslint-config/index.js @@ -27,7 +27,7 @@ const defaultConfig = [ ]; const reactConfig = [ - defaultConfig, + ...defaultConfig, reactPluginRecommended, reactPluginJsxRuntime, { diff --git a/eslint-config/package.json b/eslint-config/package.json index a1c6a34..50061cf 100644 --- a/eslint-config/package.json +++ b/eslint-config/package.json @@ -8,7 +8,7 @@ "Robbe Van Petegem " ], "license": "MIT", - "main": "default.js", + "main": "index.js", "type": "module", "scripts": {}, "dependencies": { diff --git a/eslint.config.js b/eslint.config.js index f027559..a493b38 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,3 +1,2 @@ -import config from "./eslint-config/default.js"; - +import config from "./eslint-config/index.js"; export default config.configs.default;