From 2a3de9c2f31635b8b8d01e9e1264872cbf6645f2 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Fri, 29 Nov 2024 15:39:08 +0100 Subject: [PATCH] fix: add .eslintignore to resect .vitepress folder --- .eslintignore | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..b87db3d --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +!src/.vitepress diff --git a/package.json b/package.json index e2a7937..4ca4cc8 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "dev": "vitepress dev src --temp .temp", "build": "vitepress build src --temp .temp", "help": "vitepress --help", - "lint": "eslint --ext .ts,.mjs,.vue ./src/.vitepress", + "lint": "eslint --ext .ts,.mjs,.vue .", "lint:fix": "npm run lint -- --fix", "prepare": "husky" }, @@ -53,6 +53,6 @@ "vitepress": "^1.5.0" }, "lint-staged": { - "*.{mjs,ts,.vue}": "eslint --fix --ext .ts,.mjs,.vue" + "*.{mjs,ts,vue}": "eslint --fix" } }