style(frontend): prettier baseline format (no logic change)
This commit is contained in:
@@ -39,11 +39,13 @@ export default tseslint.config(
|
||||
},
|
||||
{
|
||||
files: ["e2e/**/*.ts"],
|
||||
// e2e 是 Playwright 脚本,测试工具链的动态类型用法(如 locator/fixture 包装)允许 any
|
||||
languageOptions: { globals: { process: "readonly", console: "readonly", URL: "readonly" } },
|
||||
rules: { "@typescript-eslint/no-explicit-any": "off" },
|
||||
},
|
||||
{
|
||||
files: ["**/*.test.{ts,tsx}", "test/**/*.ts"],
|
||||
// 测试代码允许 any 以贴合测试惯例(mock 数据、运行时探测)
|
||||
rules: { "@typescript-eslint/no-explicit-any": "off" },
|
||||
},
|
||||
prettier, // 必须最后:关闭所有与 prettier 冲突的格式规则
|
||||
|
||||
Reference in New Issue
Block a user