Open via-lars opened 3 years ago
The essential
ruleset is for Vue 2. Vue 3 rulesets start with vue3/
, like vue3/essential
.
If those are missing in the ui select, we should add them.
yes, they are missing
can I workaround this by manually editing a config file i guess?
yes, the eslint config is either in package.json
or .eslintrc.js
, depending on your choice where to put configs during project creation
the following config
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue3/essential",
"eslint:recommended",
"@vue/prettier"
],
"parserOptions": {
"parser": "babel-eslint"
}
}
produces the error Syntax Error: Error: Failed to load plugin 'vue3' declared in 'package.json': Cannot find module 'eslint-plugin-vue3'
Version
4.5.13
Reproduction link
https://github.com/via-lars/for-vuecli-bug-report-1
Environment info
Steps to reproduce
vue ui
Tasks -> Serve Output: "hig\src\App.vue 3:3 error The template root requires exactly one element vue/no-multiple-template-root"What is expected?
A newly created "default" Vue3 project can be served without error
What is actually happening?
An error occurs and the default project is not shown
I hope all configuration necessary to use vue ui and reprodcue it is present in the project folder uploaded to github. I just followed the documentation (https://cli.vuejs.org/guide/installation.html, https://cli.vuejs.org/guide/creating-a-project.html#vue-create) this morning and setup this project. I modified the ESLint configuration from "nothing" to "essential".
If you deem this bug no relevant to you, pls inform me where you think it is.