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"] }