From bdc2e5cae5bd60655f124a86bc1c1bc9a85981a0 Mon Sep 17 00:00:00 2001 From: huzhushan Date: Mon, 19 Apr 2021 19:02:57 +0800 Subject: [PATCH] update --- .eslintrc.js | 9 ++------- package.json | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 28d4e0e..b5f1e20 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,13 +14,8 @@ module.exports = { rules: { "no-console": 0, 'no-use-before-define': 'off', - 'no-unused-vars': [ - 'warn', - { - argsIgnorePattern: '^_', - varsIgnorePattern: '^_', - }, - ], + 'no-unused-vars': 'warn', + 'vue/no-unused-vars': 'warn', 'no-prototype-builtins': 'off', 'space-before-function-paren': 'off', 'vue/custom-event-name-casing': 'off', diff --git a/package.json b/package.json index 4529d0c..61e774d 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ }, "husky": { "hooks": { - "pre-commit": "lint-staged" + "pre-commit": "npm run lint-staged" } }, "lint-staged": {