You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
很多方法里 为什么要给 this 使用毫无必要的别名变量self ?
这种做法是违反你们自己定制的研发规范的.
提示错误 Unexpected aliasing of 'this' to local variable.eslint[@typescript-eslint/no-this-alias](https://typescript-eslint.io/rules/no-this-alias)
这些 self 有什么意义? 为什么要使用这种别名?
Cocos Creator version
3.8.6
System information
all
Issue description
疑惑1 :
markForUpdateRenderData()
为什么改为私有的?之前为了实现某些功能 必须要开发者手动调用它(比如动态修改 spriteFrame后) , 变私有后, 这类问题怎么解决呢?
不需要手动调用了?
疑惑2 :
很多方法里 为什么要给
this
使用毫无必要的别名变量self
?这种做法是违反你们自己定制的研发规范的.
提示错误
Unexpected aliasing of 'this' to local variable.eslint[@typescript-eslint/no-this-alias](https://typescript-eslint.io/rules/no-this-alias)
这些 self 有什么意义? 为什么要使用这种别名?
疑惑3:
你们新加的一些代码, 也直接违反你们的 eslint规则和编码规范.
之前你们不是说"老代码符合规范要慢慢来 很麻烦", 但是"新写的代码会遵守规则规范"吗?
咋说到做不到呢? 这样下去 你们的代码啥时候才能易读易维护啊.
Relevant error log output
No response
Steps to reproduce
.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: