ESLint vue/valid-v-slot

问题描述

eslintrc.js 文件添加到我的 Vue 项目以配置 ESLint 规则,我遇到了 vue/valid-v-slot 问题,最初在我使用 v-slot显示错误.然后, 我设置如下(文档和其他帖子推荐):

"vue / valid-v-slot": ['error',{"allowModifiers": false}],

但它不起作用。我收到以下错误消息:

Syntax Error: Error: .eslintrc.js:
         Configuration for rule "vue / valid-v-slot" is invalid:
         Value [{"allowModifiers": false}] should NOT have more than 0 items.
     at Array.forEach (<anonymous>)

enter image description here

这里是安装的依赖项:

enter image description here

我该如何解决

package.json

{
    "name": "test","version": "0.1.0","private": true,"scripts": {
        "serve": "vue-cli-service serve","build": "vue-cli-service build","lint": "vue-cli-service lint"
    },"dependencies": {
        "axios": "^0.21.1","core-js": "^3.8.3","numeral": "^2.0.6","v-money": "^0.8.1","vee-validate": "^2.2.15","vue": "^2.6.12","vue-axios": "^3.2.2","vue-i18n": "^8.22.4","vue-moment": "^4.1.0","vue-native-websocket": "^2.0.14","vue-router": "^3.5.1","vue-router-multiguard": "^1.0.3","vuetify": "2.2.29","vuex": "^3.6.2"
   },"devDependencies": {
        "@vue/cli-plugin-babel": "^4.5.11","@vue/cli-plugin-eslint": "^4.5.11","@vue/cli-plugin-router": "^4.5.11","@vue/cli-plugin-vuex": "^4.5.11","@vue/cli-service": "^4.5.11","babel-eslint": "^10.1.0","eslint": "^6.7.2","eslint-plugin-vue": "^6.2.2","sass": "^1.32.0","sass-loader": "^10.0.0","vue-cli-plugin-vuetify": "^2.3.1","vue-template-compiler": "^2.6.11","vuetify-loader": "^1.7.0"
   }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...