feat: 在 NestJS 规范中添加 Model 文件匹配模式说明
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
## 常量名使用大写加下划线命名(UPPER_CASE),单词间以下划线分隔 `[JsTs.Base.ConstUpperCase]`
|
||||
|
||||
- 不检查 nodejs 的导包定义,比如 `const fs = require("fs")`
|
||||
- 常量检查只需检查 `const` 声明的静态值,但是不包含对象和函数
|
||||
|
||||
### Good
|
||||
|
||||
@@ -54,10 +55,6 @@ function getuserinfo() {
|
||||
|
||||
```javascript
|
||||
const MAX_COUNT = 100;
|
||||
const USER_STATUS = {
|
||||
ACTIVE: "active",
|
||||
INACTIVE: "inactive",
|
||||
};
|
||||
```
|
||||
|
||||
### Bad
|
||||
|
||||
Reference in New Issue
Block a user