eslint error cannot read property 'range' of null

eslint error cannot read property 'range' of null

具体报错:

Cannot read property 'range' of null
TypeError: Cannot read property 'range' of null
at Array.forEach (<anonymous>)

解决:
在.eslintrc.js文件的rules里加下面代码

// 强制执行一致的缩进样式
  rules: { 
         'template-curly-spacing': 'off',
         indent: 'off'
    }


posted @ 2022-04-02 12:51  诚实村诚实人  阅读(323)  评论(0)    收藏  举报