ts-types-tools
Version:
some type tools for typescript | TS中一些方便的类型工具
16 lines (13 loc) • 429 B
JavaScript
import { FlatCompat } from "@eslint/eslintrc";
import path from "path";
import { fileURLToPath } from "url";
// mimic CommonJS variables -- not needed if using CommonJS
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
export default [
// mimic ESLintRC-style extends
...compat.extends(".eslintrc"),
]