ci: 🎡 修改格式化工具
This commit is contained in:
parent
565bbe646d
commit
06b5c3389d
|
@ -15,8 +15,8 @@ html
|
|||
/bin
|
||||
.eslintrc.js
|
||||
.prettierrc.js
|
||||
.stylelintrc.js
|
||||
lint-staged.config.js
|
||||
/src/mock/*
|
||||
src/utils/request.js
|
||||
.prettierrc.js
|
||||
.stylelintrc.js
|
||||
list
|
|
@ -1,6 +1,6 @@
|
|||
// @see: https://www.prettier.cn
|
||||
|
||||
module.exports= {
|
||||
module.exports = {
|
||||
// 超过最大值换行
|
||||
printWidth: 130,
|
||||
// 缩进字节数
|
||||
|
|
|
@ -12,4 +12,8 @@
|
|||
/dist/*
|
||||
/public/*
|
||||
public/*
|
||||
/node_modules/
|
||||
/node_modules/
|
||||
.eslintrc.js
|
||||
.prettierrc.js
|
||||
.stylelintrc.js
|
||||
lint-staged.config.js
|
|
@ -1,6 +1,6 @@
|
|||
// @see: https://stylelint.io
|
||||
|
||||
module.exports= {
|
||||
module.exports = {
|
||||
root: true,
|
||||
defaultSeverity: "error",
|
||||
plugins: ["stylelint-order", "stylelint-less"],
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
export default {
|
||||
// "*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
|
||||
// "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": ["prettier --write--parser json"],
|
||||
// "package.json": ["prettier --write"],
|
||||
// "*.vue": ["eslint --fix", "prettier --write", "stylelint --fix"],
|
||||
// "*.{scss,less,styl,html}": ["stylelint --fix", "prettier --write"],
|
||||
// "*.md": ["prettier --write"]
|
||||
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
|
||||
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": ["prettier --write--parser json"],
|
||||
"package.json": ["prettier --write"],
|
||||
"*.vue": ["eslint --fix", "prettier --write", "stylelint --fix"],
|
||||
"*.{scss,less,styl,html}": ["stylelint --fix", "prettier --write"],
|
||||
"*.md": ["prettier --write"]
|
||||
};
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
"name": "vite_ts_auto",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"description": "Bunny-Vite模板",
|
||||
"author": "Bunny-Admin <1319900154@qq.com>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"serve": "vite",
|
||||
|
|
Loading…
Reference in New Issue