From b9bf9e9bd89fc5868927c0ba4660d60d72de178d Mon Sep 17 00:00:00 2001 From: Radiquum Date: Sun, 6 Apr 2025 17:04:17 +0500 Subject: [PATCH] fix: eslint config --- eslint.config.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index b015b83..fd59043 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,13 +1,16 @@ -import reactRefresh from "eslint-plugin-react-refresh"; +const reactRefresh = require("eslint-plugin-react-refresh"); +const { defineConfig } = require("eslint/config"); -export default [ - { +module.exports = defineConfig([ + { extends: ["next/core-web-vitals"], plugins: { "react-refresh": reactRefresh, }, - rules: { + rules: { + semi: "error", + "prefer-const": "error", "react-refresh/only-export-components": "warn", - }, - }, -]; + }, + }, +]);