From c60f7902276197af8c17e0cc89c26cf9429e7baa Mon Sep 17 00:00:00 2001 From: Christian Rackerseder Date: Fri, 14 Jun 2024 12:46:13 +0200 Subject: [PATCH] Enable Vue in ESLint --- .eslintrc.json | 7 +++++-- justfile | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 8c8f1e67d..7f9df3ed5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,9 +1,11 @@ { - "parser": "@typescript-eslint/parser", + "parser": "vue-eslint-parser", "parserOptions": { + "parser": "@typescript-eslint/parser", "sourceType": "module", "ecmaVersion": 2021, - "project": "tsconfig.json" + "project": "tsconfig.json", + "extraFileExtensions": [".vue"] }, "extends": [ "prettier", @@ -11,6 +13,7 @@ "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", + "plugin:vue/vue3-recommended", "plugin:functional/external-typescript-recommended", "plugin:ava/recommended", "plugin:prettier/recommended" diff --git a/justfile b/justfile index e0ac6f7fc..35570152c 100644 --- a/justfile +++ b/justfile @@ -4,7 +4,7 @@ lint: npx astro sync npx astro check npx prettier --check source - npx eslint . --ext ".ts" + npx eslint . --ext ".ts,.vue" npx jscpd source @compile: