Replies: 2 comments 1 reply
-
Hey, thank you for using this project.
That's probably too specific to be documented in this project.
Sorry, I didn't even know of that project.
That looks like a classic config. ESLint has a newer, flat config format that you may consider using, instead. I recommend you read ESLint documentation with patience and going through some ESLint flat config examples in both Vue.js projects and projects that use eslint-config-love. If after that you're still confused, feel free to post your questions. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure why Vue team never updated their official template, but eslint-plugin-vue and vue-eslint-parser are actively maintained, you can get The most tricky part is to correctly handle the Additionally, The final import eslintConfigLove from 'eslint-config-love';
import eslintPluginVue from 'eslint-plugin-vue';
export default [
{
...eslintConfigLove,
files: ['src/**/*.ts', 'src/**/*.vue']
},
...eslintPluginVue.configs['flat/recommended'],
{
files: ['src/**/*.ts', 'src/**/*.vue'],
languageOptions: {
parserOptions: {
parser: '@typescript-eslint/parser',
project: 'tsconfig.app.json',
extraFileExtensions: ['.vue']
}
}
}
]; This works great for me. |
Beta Was this translation helpful? Give feedback.
-
I don't think I've seen any instructions on how to use
eslint-config-love
with vue.js and@vue/eslint-config-standard-with-typescript
doesn't seem to be actively maintained.How am I supposed to incorporate
eslint-config-love
into a vue.js project?This is the default
.eslintrc.cjs
created by vue create:Beta Was this translation helpful? Give feedback.
All reactions