feat: ✨ 修改格式
Showing
.husky/commit-msg
deleted
100755 → 0
.husky/pre-commit
deleted
100755 → 0
... | @@ -7,16 +7,13 @@ | ... | @@ -7,16 +7,13 @@ |
"stylelint:fix": "stylelint src/**/*.{html,vue,sass} --fix", | "stylelint:fix": "stylelint src/**/*.{html,vue,sass} --fix", | ||
"lint:fix": "prettier src/**/* --write", | "lint:fix": "prettier src/**/* --write", | ||
"lint": "eslint src/**/* --ext .js,.vue", | "lint": "eslint src/**/* --ext .js,.vue", | ||
"lint:stage": "lint-staged", | |||
"build:prod": "vue-cli-service build", | "build:prod": "vue-cli-service build", | ||
"build:stage": "vue-cli-service build --mode staging", | "build:stage": "vue-cli-service build --mode staging", | ||
"cz": "npm run log && git add . && git cz", | "cz": "npm run log && git add . && git cz", | ||
"dev": "vue-cli-service serve", | "dev": "vue-cli-service serve", | ||
"preview": "node build/index.js --preview", | "preview": "node build/index.js --preview", | ||
"spellcheck": "cspell lint --dot --gitignore --color --cache --show-suggestions \"src/**/*.@(html|js|cjs|mjs|ts|tsx|css|scss|md|vue)\"", | "lint:stage": "lint-staged", | ||
"prepare": "husky install", | "spellcheck": "cspell lint --dot --gitignore --color --cache --show-suggestions \"src/**/*.@(html|js|cjs|mjs|ts|tsx|css|scss|md|vue)\"" | ||
"commit": "git-cz", | |||
"commitlint": "commitlint --edit" | |||
}, | }, | ||
"dependencies": { | "dependencies": { | ||
"@riophae/vue-treeselect": "0.4.0", | "@riophae/vue-treeselect": "0.4.0", | ||
... | @@ -35,33 +32,32 @@ | ... | @@ -35,33 +32,32 @@ |
"nprogress": "0.2.0", | "nprogress": "0.2.0", | ||
"quill": "1.3.7", | "quill": "1.3.7", | ||
"screenfull": "5.0.2", | "screenfull": "5.0.2", | ||
"sortablejs": "^1.10.2", | "sortablejs": "1.10.2", | ||
"vue": "2.6.12", | "vue": "2.6.12", | ||
"vue-count-to": "1.0.13", | "vue-count-to": "1.0.13", | ||
"vue-cropper": "0.5.5", | "vue-cropper": "0.5.5", | ||
"vue-meta": "2.4.0", | "vue-meta": "2.4.0", | ||
"vue-router": "3.4.9", | "vue-router": "3.4.9", | ||
"vuedraggable": "2.24.3", | "vuedraggable": "2.24.3", | ||
"vuex": "3.6.0" | "vuex": "3.6.0", | ||
"lodash": "4.17.21" | |||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@commitlint/cli": "17.6.7", | "@vue/cli-plugin-babel": "5.0.8", | ||
"@commitlint/config-conventional": "17.6.7", | |||
"@commitlint/cz-commitlint": "17.6.7", | |||
"@vue/cli-plugin-babel": "4.4.6", | |||
"@vue/cli-plugin-eslint": "5.0.8", | "@vue/cli-plugin-eslint": "5.0.8", | ||
"@vue/cli-service": "4.4.6", | "@vue/cli-service": "4.4.6", | ||
"babel-eslint": "10.1.0", | "babel-eslint": "10.1.0", | ||
"babel-plugin-dynamic-import-node": "2.3.3", | "babel-plugin-dynamic-import-node": "2.3.3", | ||
"chalk": "4.1.0", | "chalk": "4.1.0", | ||
"commitizen": "^4.0.3", | |||
"commitlint": "^8.2.0", | "commitlint": "^8.2.0", | ||
"compression-webpack-plugin": "5.0.2", | "compression-webpack-plugin": "5.0.2", | ||
"connect": "3.6.6", | "connect": "3.6.6", | ||
"conventional-changelog-cli": "^2.0.28", | "conventional-changelog-cli": "^2.0.28", | ||
"eslint-config-prettier": "^9.1.0", | "eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-prettier": "^4.2.1", | "eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-vue": "9.21.1", | "eslint-plugin-vue": "7.2.0", | ||
"husky": "8.0.3", | "husky": "^3.0.9", | ||
"lint-staged": "^10.5.3", | "lint-staged": "^10.5.3", | ||
"mockjs": "1.0.1-beta3", | "mockjs": "1.0.1-beta3", | ||
"postcss": "^8.4.12", | "postcss": "^8.4.12", | ||
... | @@ -82,12 +78,8 @@ | ... | @@ -82,12 +78,8 @@ |
"stylelint-config-standard-scss": "^4.0.0", | "stylelint-config-standard-scss": "^4.0.0", | ||
"stylelint-order": "^5.0.0", | "stylelint-order": "^5.0.0", | ||
"svg-sprite-loader": "5.1.1", | "svg-sprite-loader": "5.1.1", | ||
"vue-template-compiler": "2.6.12", | "vue-cli-plugin-commitlint": "~1.0.12", | ||
"zx": "7.2.3", | "vue-template-compiler": "2.6.12" | ||
"commitizen": "4.3.0", | |||
"cz-git": "1.7.0", | |||
"tsno": "2.0.0", | |||
"lodash": "4.17.21" | |||
}, | }, | ||
"browserslist": [ | "browserslist": [ | ||
"> 1%", | "> 1%", | ||
... | @@ -95,7 +87,7 @@ | ... | @@ -95,7 +87,7 @@ |
], | ], | ||
"config": { | "config": { | ||
"commitizen": { | "commitizen": { | ||
"path": "node_modules/cz-git" | "path": "./node_modules/vue-cli-plugin-commitlint/lib/cz" | ||
} | } | ||
}, | }, | ||
"engines": { | "engines": { | ||
... | @@ -113,9 +105,10 @@ | ... | @@ -113,9 +105,10 @@ |
], | ], | ||
"license": "MIT", | "license": "MIT", | ||
"lint-staged": { | "lint-staged": { | ||
"src/**/*.{html,vue,css,sass,scss,js}": "prettier --write", | "src/**/*.{js,vue}": [ | ||
"src/**/*.{vue,js}": "eslint --fix", | "eslint --fix", | ||
"src/**/*.{vue,css,sass,scss}": "stylelint --fix" | "git add" | ||
] | |||
}, | }, | ||
"repository": { | "repository": { | ||
"type": "git", | "type": "git", | ||
... | ... |
This source diff could not be displayed because it is too large. You can view the blob instead.
Please register or sign in to comment