From d8a71e8fbaee492b780da1ef77e0b141fb06a477 Mon Sep 17 00:00:00 2001 From: h_mo <596417202@qq.com> Date: Fri, 3 Jun 2022 12:45:07 +0800 Subject: [PATCH] =?UTF-8?q?perf-=20=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - .husky/pre-commit | 4 ++++ tsconfig.json | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .husky/pre-commit diff --git a/.gitignore b/.gitignore index 2396e2c..f07b5f4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ /.idea/ /.hbuilderx/ /.eslintcache -/.husky/ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..36af219 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx lint-staged diff --git a/tsconfig.json b/tsconfig.json index 5aec2fe..8a7712f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,10 @@ "resolveJsonModule": true, "esModuleInterop": true, "lib": ["esnext", "dom"], - "types": ["@dcloudio/types"] + "types": ["@dcloudio/types"], + "paths": { + "@/*":["./src/*"] + } }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] }