From 053c48b5324cbec7f080cb54ff7814e083aebdf6 Mon Sep 17 00:00:00 2001 From: Karolina Przerwa Date: Fri, 19 Jul 2024 12:26:41 +0200 Subject: [PATCH] eslint: move config file --- .eslint.config.js => eslint.config.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) rename .eslint.config.js => eslint.config.mjs (94%) diff --git a/.eslint.config.js b/eslint.config.mjs similarity index 94% rename from .eslint.config.js rename to eslint.config.mjs index 08705775d..efe280d99 100644 --- a/.eslint.config.js +++ b/eslint.config.mjs @@ -1,4 +1,10 @@ -module.exports = [{ +import globals from "globals"; +import pluginJs from "@eslint/js"; +import pluginReactConfig from "eslint-plugin-react/configs/recommended.js"; + + +export default [ +{ "extends": ["react-app", "plugin:prettier/recommended", "eslint:recommended"], "plugins": ["react"], "env": { @@ -96,4 +102,4 @@ module.exports = [{ "react/void-dom-elements-no-children": "error" } } -] \ No newline at end of file +];