@lehoczky/eslint-config-vue

ESLint Config for Vue3 with TypeScript
2,595
Install
npm install @lehoczky/eslint-config-vue
Latest Version:3.1.1
License:MIT
Last Updated:Sep 29, 2026
Links: GitHub  ·  npm
Maintainer: lehoczky

Eslint Config Vue

npm version

ESLint configuration for Vue projects with TypeScript. Supports prettier by default.

💿 Installation

Create a new project with vite:

pnpm create vite <app-name> --template vue-ts
cd <app-name>

Install eslint and the config:

pnpm add -D eslint @lehoczky/eslint-config-vue

💻 Usage

With Type Checking

eslint.config.mjs:

import { configLehoczkyVue } from "@lehoczky/eslint-config-vue"

export default configLehoczkyVue({
  parserOptionsForTypeChecking: {
    projectService: true,
    tsconfigRootDir: import.meta.dirname,
  },
})

See more: typescript-eslint | Linting with Type Information

Without Type Checking

import { configLehoczkyVue } from "@lehoczky/eslint-config-vue"

export default configLehoczkyVue()

Combining with Astro

import { configLehoczkyVue } from "@lehoczky/eslint-config-vue"
import { defineConfig } from "eslint/config"
import eslintPluginAstro from "eslint-plugin-astro"

export default defineConfig([
  ...configLehoczkyVue({
    parserOptionsForTypeChecking: {
      projectService: true,
      tsconfigRootDir: import.meta.dirname,
    },
  }),
  ...eslintPluginAstro.configs["flat/recommended"],
])

📢 Commands

package.json:

{
  "scripts": {
    "eslint:check": "eslint --max-warnings=0",
    "eslint:fix": "eslint --max-warnings=0 --fix"
  }
}

Related Packages

@anoesj/eslint-config-vue-ts

Anoesj's ESLint config for Vue and Nuxt projects with TypeScript

1,603 0
@forsakringskassan/eslint-config-vue

Försäkringskassans eslint shareable vue config

286,740 0
@scayle/eslint-config-storefront

SCAYLE Commerce Engine specific eslint configuration

218,314
@nitra/eslint-config

An ESLint shareable config for projects using Vue and Node

30,246

Version History

Version Released License
3.1.1 MIT
3.1.0 MIT
3.0.0 MIT
2.0.15 MIT
2.0.14 MIT