feat: configured prettier, pretty-quick and husky
This commit is contained in:
parent
c67b369d83
commit
a61debebb4
|
@ -8,5 +8,5 @@ indent_style = space
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[{*.js,*.css}]
|
[{*.js,*.css,*.html}]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"printWidth": 100
|
||||||
|
}
|
10
package.json
10
package.json
|
@ -8,7 +8,10 @@
|
||||||
"build": "webpack --config config/webpack.build.js",
|
"build": "webpack --config config/webpack.build.js",
|
||||||
"start:dev": "node scripts/server.js --mode=development",
|
"start:dev": "node scripts/server.js --mode=development",
|
||||||
"start:prod": "npm run build && node scripts/server.js --mode=production",
|
"start:prod": "npm run build && node scripts/server.js --mode=production",
|
||||||
"test": "echo \"No tests needed!\" && exit 1"
|
"test": "echo \"No tests needed!\" && exit 1",
|
||||||
|
"pretty-quick": "pretty-quick",
|
||||||
|
"format": "prettier --write .",
|
||||||
|
"style": "prettier --check ."
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -19,6 +22,11 @@
|
||||||
"Sketchboard",
|
"Sketchboard",
|
||||||
"lightweight"
|
"lightweight"
|
||||||
],
|
],
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "pretty-quick --staged"
|
||||||
|
}
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dompurify": "^2.0.7",
|
"dompurify": "^2.0.7",
|
||||||
"express": "4.*",
|
"express": "4.*",
|
||||||
|
|
Loading…
Reference in New Issue