Skip to content

ESLint Variable 'data' is already declared in the upper scope. 错误解决

Published: at 05:55 PMSuggest Changes

问题

vue 项目 里面 明明用了数据但是 Eslint 非要报错 Variable 'data' is already declared in the upper scope.

解决问题

解法方法很简单,添加下面规则

rules: {
  'vue/no-template-shadow':'off',
}

Previous Post
解决 Element UI el-tree 组件宽度超出父元素滚动条无效问题
Next Post
JSON.stringify 递归逻辑研究