Merge pull request 'chore: 提交git统一代码风格' (#178) from chore/husky into test

Reviewed-on: #178
pull/179/head
刘释隆 1 year ago
commit 02c81d0b41

@ -3,3 +3,4 @@
# node_modules/.bin/lint-staged # node_modules/.bin/lint-staged
date date
npx lint-staged

@ -19,6 +19,9 @@ module.exports = antfu(
'unused-imports/no-unused-vars': 'off', 'unused-imports/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'off', 'unused-imports/no-unused-imports': 'off',
'jsdoc/require-returns-description': 'off', 'jsdoc/require-returns-description': 'off',
'eqeqeq': 'off',
'no-console': 'off',
'vue/custom-event-name-casing': 'off',
'no-restricted-syntax': [ 'no-restricted-syntax': [
// eslint-disable-next-line node/prefer-global/process // eslint-disable-next-line node/prefer-global/process
process.env.MODE === 'production' ? 2 : 0, process.env.MODE === 'production' ? 2 : 0,

@ -77,8 +77,8 @@
"vue-tsc": "^1.8.22" "vue-tsc": "^1.8.22"
}, },
"lint-staged": { "lint-staged": {
"*.{ts,tsx,vue}": [ "*.{ts,tsx,vue,js}": [
"pnpm lint:fix" "eslint --fix"
] ]
} }
} }

Loading…
Cancel
Save