- [vue/no-multiple-template-root]The template root requires exactly one element.eslint-plugin-vue
- jsx報錯:jsx報錯Parsing error: Unexpected token <eslint;
- ts報錯:Parsing error: Unexpected token {eslint
- module報錯 ‘module’ is not defined.eslint(no-undef)
參考鏈接
問題:類似'xxx' is not defined.eslint(no-undef)
都可以對應代碼的上方添加/* eslint-disable no-undef */
忽略掉對應報錯
解決方案:對應代碼上方添加/* eslint-disable $1 */
,$1就是指eslint ($1)括號里的這個字段
例如:
問題:
在module前添加/* eslint-disable no-undef */
/* eslint-disable no-undef */
module.exports = {