Add prettier/husky config
This commit is contained in:
parent
f8d032d9fc
commit
b0f5ab9776
6 changed files with 9947 additions and 0 deletions
5
.huskyrc
Normal file
5
.huskyrc
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "lint-staged"
|
||||||
|
}
|
||||||
|
}
|
||||||
5
.lintstaged
Normal file
5
.lintstaged
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"*.+(html|js|json|ts|tsx|vue)": [
|
||||||
|
"yarn prettier"
|
||||||
|
]
|
||||||
|
}
|
||||||
6
.prettierignore
Normal file
6
.prettierignore
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
.dependabot
|
||||||
|
.github
|
||||||
|
.nuxt
|
||||||
|
.postwoman
|
||||||
|
.vscode
|
||||||
|
node_modules
|
||||||
6
.prettierrc
Normal file
6
.prettierrc
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"semi": false,
|
||||||
|
"singleQuote": true,
|
||||||
|
"printWidth": 100
|
||||||
|
}
|
||||||
|
|
@ -40,7 +40,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cypress": "^4.0.2",
|
"cypress": "^4.0.2",
|
||||||
|
"husky": "^4.2.3",
|
||||||
|
"lint-staged": "^10.0.7",
|
||||||
"node-sass": "^4.13.1",
|
"node-sass": "^4.13.1",
|
||||||
|
"prettier": "^1.19.1",
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^8.0.2",
|
||||||
"start-server-and-test": "^1.10.8"
|
"start-server-and-test": "^1.10.8"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue