// ESLint 9 扁平配置:只检查 src/ 与 tests/ import js from "@eslint/js"; import tseslint from "typescript-eslint"; export default tseslint.config( { ignores: ["node_modules/", "dist/", "coverage/", "package-lock.json", "eslint.config.js"], }, js.configs.recommended, ...tseslint.configs.recommended, );