fix eslint

This commit is contained in:
2025-02-14 11:06:49 +08:00
parent eb335533eb
commit bdcbcefa18
6 changed files with 4078 additions and 4 deletions

6
.eslintrc.js Normal file
View File

@@ -0,0 +1,6 @@
module.exports = {
extends: ["next/core-web-vitals", "next/typescript"],
rules: {
// Aturan ESLint Anda di sini
},
};

4052
bun.lock Normal file

File diff suppressed because it is too large Load Diff

BIN
bun.lockb

Binary file not shown.

View File

@@ -1,8 +1,9 @@
import { fileURLToPath } from "url";
import { dirname } from "path"; // Impor `dirname` dari modul `path`
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const dirname = dirname(__filename);
const __dirname = dirname(__filename); // Gunakan `__dirname` sebagai nama variabel
const compat = new FlatCompat({
baseDirectory: __dirname,

View File

@@ -0,0 +1,15 @@
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const dirname = dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
];
export default eslintConfig;

View File

@@ -56,8 +56,7 @@
"echarts": "^5.4.3",
"echarts-for-react": "^3.0.2",
"embla-carousel-react": "^8.0.0-rc14",
"eslint": "8.45.0",
"eslint-config-next": "13.4.12",
"eslint-config-next": "^15.1.7",
"iron-session": "^6.3.1",
"jose": "^5.9.2",
"jotai": "^2.4.3",
@@ -104,6 +103,7 @@
"yaml": "^2.3.2"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0"
"@eslint/eslintrc": "^3.2.0",
"eslint": "8.x"
}
}