集成Prettier和Stylelint

This commit is contained in:
ray
2024-09-18 20:09:40 +08:00
parent 08c6855f49
commit 801d4d58c7
10 changed files with 4769 additions and 4411 deletions

View File

@@ -41,7 +41,8 @@
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
"type-check": "vue-tsc --noEmit",
"lint:eslint": "eslint --fix ./src"
"lint:eslint": "eslint --fix ./src",
"lint:stylelint": "stylelint \"**/*.{css,scss,vue,html}\" --fix"
},
"dependencies": {
"@dcloudio/uni-app": "3.0.0-4020420240722002",
@@ -71,11 +72,24 @@
"@eslint/js": "^9.10.0",
"@vue/runtime-core": "^3.4.21",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.28.0",
"globals": "^15.9.0",
"postcss": "^8.4.47",
"postcss-html": "^1.7.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.3.3",
"stylelint": "^16.9.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^5.1.0",
"stylelint-config-recommended": "^14.0.1",
"stylelint-config-recommended-scss": "^14.1.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-prettier": "^5.0.2",
"typescript": "^4.9.4",
"typescript-eslint": "^8.6.0",
"vite": "5.2.8",
"vue-tsc": "^1.0.24"
},
}
}