21 questions
1
vote
0
answers
82
views
ESLint configs error Parsing error: Invalid ecmaVersion
I'm writing a shared ESLint configuration for my own project.
One of the configurations for the JS project is:
import js from '@eslint/js';
import { defineConfig } from 'eslint/config';
import ...
1
vote
1
answer
677
views
vue/attribute-hyphenation conflicts with Vue 3.4 same-name shorthand
In the project I'm working where we have the vue/attribute-hyphenation eslint rule configured to always enforce attribute hyphenation in Vue 3 components. The problem is that the hyphens break the new ...
2
votes
2
answers
2k
views
Conflicting peer dependancy: [email protected]
I am getting a conflicting peer dependency: [email protected] when trying to build/deploy my Vue CLI application using Heroku:
npm ERR! Could not resolve dependency:
npm ERR! peer ...
10
votes
1
answer
4k
views
ESLint 'The extension for the file (.vue) is non-standard' error
When run eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore . script using npm run lint, the following error occurs.
/(somethingSomething...)/Test.vue
0:0 error Parsing error: "...
3
votes
0
answers
974
views
vue/singleline-html-element-content-newline for text node
I use "eslint-plugin-vue"
I would like to use the rule "vue/singleline-html-element-content-newline" in my projects but it works inconvenient for me
All the more because this rule ...
1
vote
1
answer
6k
views
Failed to load config "eslint-plugin-vue" to extend from
I am setting up eslint for vue in vscode. I am getting this notification when ever I format my code.
ESLint stack trace:
[Error - 2:20:56 AM] Error: Failed to load config "eslint-plugin-vue"...
2
votes
5
answers
9k
views
Problem "vue/no-multiple-template-root" occurs, how do I fix it?
Edit: Somehow doing v-if and v-else statements fixed this. Nonetheless could someone explain how to fix this?
Summary: Error occurs because of 2 Elements present in template. This Vue 3 The template ...
0
votes
0
answers
63
views
eslint and prettier break style tag on div [duplicate]
I've got a Nuxt project set up with eslint. VSCode autmatically formats my code.
However I don't understand why it complains about the style tags on my div:
<div style="background-image: url('/...
0
votes
1
answer
171
views
How do I stop vue eslint rules from changing?
I had a team member run npm install earlier today, and now eslint want the tags to use camel case instead of dashes. That means that every single place we have a <v-btn> or a <v-tab> is ...
0
votes
1
answer
818
views
How to configure the linter for formatting space between {{or}} and variables
I have to configure the linter rules, so that it can detect space in html between "{{ value }}"
for example, this would be ok
<div>{{ value }}</div>
and the error would be wrong
<div&...
3
votes
1
answer
13k
views
error Expected 1 line break before closing bracket, but no line breaks\ found vue/html-closing-bracket-newline
My current .eslintrc.js file has these options set for the eslint-plugin-vue
plugin:
"vue/html-closing-bracket-newline": ["error", {
"singleline": "never",
"multiline": "always"
}]
The ...