create
create copied to clipboard
How to extend eslint-config-vuetify?
I want to use an external config like eslint-config-love in addition to vuetifyjs/create's . Previously the following was enough (even though I had some issues):
import eslintConfigLove from 'eslint-config-love'
import eslintPluginVue from 'eslint-plugin-vue'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import {
configureVueProject,
defineConfigWithVueTs,
vueTsConfigs
} from '@vue/eslint-config-typescript'
configureVueProject({ scriptLangs: ['ts', 'tsx'] })
const { languageOptions, ...love } = eslintConfigLove
export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['src/**/*.{ts,mts,tsx,vue,js,jsx}']
},
{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**']
},
...eslintPluginVue.configs['flat/recommended'],
eslintPluginPrettierRecommended,
vueTsConfigs.recommendedTypeChecked,
love,
{
rules: {
// Custom rules
}
}
)
Now with the use of eslint-config-vuetify what's the best way to extend it?
It looks like only the output of defineConfigWithVueTs is being exported and not the single pieces used as its arguments.