chore: 升级代码规范风格相关库至最新 (#736)

This commit is contained in:
xiaoming
2023-09-17 16:46:17 +08:00
committed by GitHub
parent 64ea088fe1
commit 4415f12025
18 changed files with 2858 additions and 6328 deletions

16
.lintstagedrc Normal file
View File

@@ -0,0 +1,16 @@
{
"*.{js,jsx,ts,tsx}": [
"prettier --cache --ignore-unknown --write",
"eslint --cache --fix"
],
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
"prettier --cache --write--parser json"
],
"package.json": ["prettier --cache --write"],
"*.vue": ["prettier --write", "eslint --cache --fix", "stylelint --fix"],
"*.{css,scss,html}": [
"prettier --cache --ignore-unknown --write",
"stylelint --fix"
],
"*.md": ["prettier --cache --ignore-unknown --write"]
}