我在 VS Code 中收到以下错误:
[vue/no-deprecated-slot-attribute]
`slot` attributes are deprecated. eslint-plugin-vue
我在 .eslintrc.js
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended'
],
这在规则中:
'vue/no-deprecated-slot-attribute': 'off',
应该怎么做才能避免这个问题?
原文由 Hello World 发布,翻译遵循 CC BY-SA 4.0 许可协议
这个slot其实是指webcomponent的slot;
https://github.com/ionic-team/ionic-framework/issues/22236
检查以确保您的 eslint.js 具有以下规则:
接下来打开 .vscode/settings.json 并添加以下内容: