【解決方案】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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章