mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
init prettier
This commit is contained in:
parent
b1f41cdaff
commit
5bde173d72
11
.prettierrc
Normal file
11
.prettierrc
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5",
|
||||
"bracketSpacing": true,
|
||||
"jsxBracketSameLine": true,
|
||||
"arrowParens": "avoid",
|
||||
"endOfLine": "lf"
|
||||
}
|
@ -7,7 +7,8 @@
|
||||
"devDependencies": {
|
||||
"husky": "^6.0.0",
|
||||
"lerna": "^4.0.0",
|
||||
"lint-staged": "^11.0.0"
|
||||
"lint-staged": "^11.0.0",
|
||||
"prettier": "^2.3.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@ -18,7 +19,7 @@
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"packages/**/!(generated)/*.{js,ts,tsx,yml,json}": [
|
||||
"*.{ts,tsx,html,json}": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user