mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 14:08:00 +00:00
22 lines
503 B
JavaScript
22 lines
503 B
JavaScript
import { dirname } from "path";
|
|
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", "prettier"),
|
|
...compat.plugins("prettier"),
|
|
{
|
|
rules: {
|
|
"prettier/prettier": "error",
|
|
},
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|