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", - }, - }, -]; + }, + }, +]);