fix: eslint config

This commit is contained in:
Kentai Radiquum 2025-04-06 17:04:17 +05:00
parent e363838e98
commit b9bf9e9bd8
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

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