diff --git a/package.json b/package.json index ec2bb21..280b230 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ "vite-plugin-svg-icons": "^0.4.0" }, "lint-staged": { - "*.{js,vue}": [ - "eslint --ext .js,.vue src", + "src/**/*.{js,vue}": [ + "npm run lint", "git add" ] }, diff --git a/src/views/test/index.vue b/src/views/test/index.vue index 26a6778..393dd38 100644 --- a/src/views/test/index.vue +++ b/src/views/test/index.vue @@ -25,7 +25,7 @@