mightyiam / eslint-config-love

A TypeScript ESLint config that loves you
MIT License
739 stars 64 forks source link

How to use eslint-config-love with Vue.js? #1618

Closed darkbasic closed 1 week ago

darkbasic commented 1 week ago

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:

/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
  root: true,
  'extends': [
    'plugin:vue/vue3-essential',
    'eslint:recommended',
    '@vue/eslint-config-typescript',
    '@vue/eslint-config-prettier/skip-formatting'
  ],
  overrides: [
    {
      files: [
        'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
        'cypress/support/**/*.{js,ts,jsx,tsx}'
      ],
      'extends': [
        'plugin:cypress/recommended'
      ]
    }
  ],
  parserOptions: {
    ecmaVersion: 'latest'
  }
}