因为你设置了eslint,如果你不想有规范的js代码,可以重新初始化关掉eslint。
参考:https://blog.csdn.net/weixin_41982620/article/details/80135117