mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-10 02:04:38 +00:00
fix: eslint config
This commit is contained in:
parent
e363838e98
commit
b9bf9e9bd8
1 changed files with 10 additions and 7 deletions
|
@ -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"],
|
extends: ["next/core-web-vitals"],
|
||||||
plugins: {
|
plugins: {
|
||||||
"react-refresh": reactRefresh,
|
"react-refresh": reactRefresh,
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
semi: "error",
|
||||||
|
"prefer-const": "error",
|
||||||
"react-refresh/only-export-components": "warn",
|
"react-refresh/only-export-components": "warn",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue