diff --git a/.husky/pre-commit b/.husky/pre-commit index c07b1e6..9521234 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,5 @@ . "$(dirname -- "$0")/_/husky.sh" # node_modules/.bin/lint-staged -date \ No newline at end of file +date +npx lint-staged \ No newline at end of file diff --git a/eslint.config.js b/eslint.config.js index d1b5c9c..ffa7b3b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -19,6 +19,9 @@ module.exports = antfu( 'unused-imports/no-unused-vars': 'off', 'unused-imports/no-unused-imports': 'off', 'jsdoc/require-returns-description': 'off', + 'eqeqeq': 'off', + 'no-console': 'off', + 'vue/custom-event-name-casing': 'off', 'no-restricted-syntax': [ // eslint-disable-next-line node/prefer-global/process process.env.MODE === 'production' ? 2 : 0, diff --git a/package.json b/package.json index 6ed43e6..f2cd289 100644 --- a/package.json +++ b/package.json @@ -77,8 +77,8 @@ "vue-tsc": "^1.8.22" }, "lint-staged": { - "*.{ts,tsx,vue}": [ - "pnpm lint:fix" + "*.{ts,tsx,vue,js}": [ + "eslint --fix" ] } }