After eslint adds typescript check, there will be an error when the attribute variable in the class definition is Array.
The pictures added to my questions can not be browsed. In order to facilitate other people to help answer the questions, add a screenshot of my code in the form of answers.
import {Route} from '@/app/router/Route';
class YabRouter {
public widthOutAuthRoutes: Route[] = [];
public systemConfigRoutes: Route[] = [];
public staticRoutes: Route[] = [];
public dynamicRoutes: Route[] = [];