Merge pull request #311 from bipproduction/bagas/14-feb-25

fix eslint
This commit is contained in:
Bagasbanuna02
2025-02-14 13:52:11 +08:00
committed by GitHub
6 changed files with 4057 additions and 7 deletions

15
.eslintrc.mjs Normal file
View File

@@ -0,0 +1,15 @@
import { FlatCompat } from "@eslint/eslintrc";
import path from "node:path";
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
const config = compat.extends("next/core-web-vitals", "next/typescript");
console.log(config); // Cek output di terminal
export default Array.isArray(config) ? config : [config];

4029
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"; // Pastikan `dirname` diimpor
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const dirname = dirname(__filename);
const __dirname = dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,

View File

@@ -4,7 +4,10 @@ const nextConfig = {
experimental: {
serverActions: true,
},
output: "standalone"
output: "standalone",
// eslint: {
// ignoreDuringBuilds: true,
// },
};
module.exports = nextConfig;

View File

@@ -2,6 +2,7 @@
"name": "hipmi",
"version": "1.2.55",
"private": true,
"type": "module",
"prisma": {
"seed": "bun prisma/seed.ts"
},
@@ -56,8 +57,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": "^13.5.4",
"iron-session": "^6.3.1",
"jose": "^5.9.2",
"jotai": "^2.4.3",
@@ -66,7 +66,7 @@
"midtrans-client": "^1.3.1",
"moment": "^2.29.4",
"mqtt": "^5.5.0",
"next": "^13.5.4-canary.8",
"next": "^13.5.4",
"next-dev": "^1.1.9",
"next-scroll-loader": "^1.0.9",
"p-limit": "^6.2.0",
@@ -104,6 +104,8 @@
"yaml": "^2.3.2"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0"
"eslint": "^8.56.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0"
}
}
}