confident-ai--deepeval
30 行
769 B
TypeScript
30 行
769 B
TypeScript
import { defineConfig } from "eslint/config";
|
|
|
|
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
|
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default defineConfig([
|
|
{
|
|
ignores: ["dist/**", "test/**"],
|
|
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
|
|
languageOptions: {
|
|
globals: globals.node,
|
|
},
|
|
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
eslintConfigPrettier,
|
|
]);
|