Add prettier/husky config
This commit is contained in:
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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user