refactor : prefab code optimization and protection #14885
Annotations
10 errors and 3 warnings
Run ESLint:
cocos/scene-graph/node.ts#L336
Unsafe argument of type `any` assigned to a parameter of type `Constructor<Component> | AbstractedConstructor<Component>`
|
Run ESLint:
cocos/scene-graph/node.ts#L336
Unsafe argument of type `any` assigned to a parameter of type `Component[]`
|
Run ESLint:
cocos/scene-graph/node.ts#L1007
Unsafe argument of type `any` assigned to a parameter of type `Constructor<Component> | AbstractedConstructor<Component>`
|
Run ESLint:
cocos/scene-graph/node.ts#L1008
Unsafe argument of type `any` assigned to a parameter of type `Constructor<Component>`
|
Run ESLint:
cocos/scene-graph/node.ts#L1093
Unsafe argument of type `any` assigned to a parameter of type `Constructor<Component> | AbstractedConstructor<Component>`
|
Run ESLint:
cocos/scene-graph/node.ts#L1147
Unsafe argument of type `any` assigned to a parameter of type `boolean | undefined`
|
Run ESLint:
cocos/scene-graph/node.ts#L1167
Unsafe argument of type `any` assigned to a parameter of type `boolean | undefined`
|
Run ESLint:
cocos/scene-graph/node.ts#L1195
Unsafe argument of type `any` assigned to a parameter of type `boolean | undefined`
|
Run ESLint:
cocos/scene-graph/node.ts#L1248
'unknown' overrides all other types in this union type
|
Run ESLint:
cocos/scene-graph/node.ts#L1324
Unsafe argument of type `any` assigned to a parameter of type `Node`
|
Run ESLint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run ESLint:
cocos/scene-graph/node.ts#L53
This line has a length of 160. Maximum allowed is 150
|
Run ESLint:
cocos/scene-graph/node.ts#L294
This line has a length of 159. Maximum allowed is 150
|