use*_*984 6 typescript eslint typescript-eslint
我希望每个变量在声明时都必须有一个显式类型。
我应该如何配置 eslint?
const a = 10; // Error: Variable a does not explicitly specify a type
const b:number = 10; // Right!
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2746 次 |
| 最近记录: |