teju-23x/NexusGuard_Ai
GitHub: teju-23x/NexusGuard_Ai
面向银行业的 AI 安全运营中心平台,旨在通过实时交易监控提供威胁情报与安全防护能力。
Stars: 0 | Forks: 0
# React + TypeScript + Vite
此模板提供了一个最小化的配置,以便在 Vite 中运行 React,并支持 HMR 和一些 Oxlint 规则。
目前有两个官方插件可用:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) 使用 [Oxc](https://oxc.rs)
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) 使用 [SWC](https://swc.rs/)
## React Compiler
由于对开发和构建性能的影响,此模板未启用 React Compiler。要添加它,请参阅[此文档](https://react.dev/learn/react-compiler/installation)。
## 扩展 Oxlint 配置
如果您正在开发生产环境应用,我们建议通过安装 `oxlint-tsgolint` 并编辑 `.oxlintrc.json` 来启用类型感知的 lint 规则:
```
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "oxc"],
"options": {
"typeAware": true
},
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
}
}
```
有关规则和类别的完整列表,请参阅 [Oxlint 规则文档](https://oxc.rs/docs/guide/usage/linter/rules)。
标签:DNS通配符暴力破解, React, Syscalls, TypeScript, Vite, Web前端, 代码检查工具, 安全插件, 自动化攻击