mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 05:23:31 +01:00
MAESTRO: Fix linting config and formatting
This commit is contained in:
@@ -1,13 +1,4 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
import coreWebVitals from "eslint-config-next/core-web-vitals";
|
||||
import typescript from "eslint-config-next/typescript";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const legacyConfigPath = path.join(__dirname, ".eslintrc.json");
|
||||
const legacyConfig = JSON.parse(fs.readFileSync(legacyConfigPath, "utf8"));
|
||||
|
||||
const compat = new FlatCompat({ baseDirectory: __dirname });
|
||||
|
||||
export default compat.config(legacyConfig);
|
||||
export default [...coreWebVitals, ...typescript];
|
||||
|
||||
Reference in New Issue
Block a user