【解决方案】ESLINT 报错: Cannot read property 'range' of null

Cannot read property ‘range’ of null

问题描述:

Cannot read property ‘range’ of null
TypeError: Cannot read property ‘range’ of null

解决方案:

在项目根目录下,创建 .eslintrc.js 文件,添加如下规则:

module.exports = {
 rules : {
    "template-curly-spacing" : "off",
    indent : "off"
  }
}
发布了142 篇原创文章 · 获赞 116 · 访问量 29万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章