mirror of
https://github.com/langchain-ai/deepagentsjs.git
synced 2026-07-22 04:15:30 -04:00
073d206acc
* feat(ci): add initial eval suites * cr * cr
49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import { defineConfig } from "eslint/config";
|
|
import { configs } from "typescript-eslint";
|
|
import noInstanceof from "eslint-plugin-no-instanceof";
|
|
|
|
export default defineConfig([
|
|
{ ignores: ["**/dist", "**/dist-examples", "**/node_modules"] },
|
|
js.configs.recommended,
|
|
...configs.recommended,
|
|
{
|
|
files: ["**/*.{ts,tsx}"],
|
|
plugins: {
|
|
"no-instanceof": noInstanceof,
|
|
},
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
globals: globals.node,
|
|
},
|
|
rules: {
|
|
"@typescript-eslint/no-explicit-any": 0,
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
args: "none",
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
caughtErrorsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
"@typescript-eslint/no-empty-object-type": "off",
|
|
"no-console": ["error"],
|
|
"no-instanceof/no-instanceof": "error",
|
|
},
|
|
},
|
|
{
|
|
files: ["libs/cli/scripts/**/*.ts", "libs/cli/src/cli.ts"],
|
|
rules: {
|
|
"no-console": "off",
|
|
},
|
|
},
|
|
{
|
|
files: ["**/evals/**/*.{ts,tsx}"],
|
|
rules: {
|
|
"@typescript-eslint/no-empty-object-type": "off",
|
|
},
|
|
},
|
|
]);
|