Questions tagged [eslint-config-vue]
4 questions
4
votes
1 answer
Difference eslint between 'prettier/vue' and '@vue/prettier'
Lately I was working on a vue3/vite + ts project and wanted to add eslint and prettier, but I'm getting confused what settings I should use in the eslint file(section "extends") and/or how to spell them. If I look at the official eslint vue…

Max
- 200
- 2
- 13
2
votes
0 answers
eslint not following the rules for vue/*
so i have this in my .eslintrc.js
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2020,
parser: 'babel-eslint',
…

Eli
- 4,329
- 6
- 53
- 78
0
votes
1 answer
introduced eslint husky lint-staged, how to scan only the changed files when git commit
After the old project introduced eslint husky lint-staged, executing git commit will scan the whole, one is too slow, and the other old code does not dare to change easily, thinking about only detecting the files changed by commit this time , how to…

andrewddev
- 1
- 3
0
votes
1 answer
Weird Vue linter behavior: "123 {{ v }} 123" within H2 multi-line tag caused error
I just setup my development environment, with the newly installed linter & prettier for Vue.js & NUXTJS
I've checked my configuration with
npx eslint --print-config ./pages/index.vue | npx eslint-config-prettier-check
and
No rules that are…

PlusA
- 545
- 1
- 6
- 15