create icon indicating copy to clipboard operation
create copied to clipboard

How to extend eslint-config-vuetify?

Open darkbasic opened this issue 8 months ago • 5 comments

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.

darkbasic avatar Apr 17 '25 08:04 darkbasic