mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 05:23:31 +01:00
MAESTRO: scaffold frontend tooling and config
This commit is contained in:
13
frontend/eslint.config.mjs
Normal file
13
frontend/eslint.config.mjs
Normal file
@@ -0,0 +1,13 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
|
||||
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);
|
||||
Reference in New Issue
Block a user