feat: setup prettier

This commit is contained in:
StevanFreeborn
2023-02-01 23:30:50 -06:00
parent 5b25a99cd1
commit 900cdfb086
4 changed files with 601 additions and 1 deletions
+10 -1
View File
@@ -5,6 +5,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"format": "npx prettier --write .",
"build": "npm run tests && tsc",
"tests": "mocha -R progress -r ts-node/register ./tests/**/*.spec.ts",
"test": "mocha -r ts-node/register",
@@ -18,13 +19,21 @@
"@types/mocha": "^10.0.1",
"@types/sinon": "^10.0.13",
"chai": "^4.3.7",
"husky": "^8.0.3",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"prettier": "^2.8.3",
"pretty-quick": "^3.1.3",
"sinon": "^15.0.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
},
"dependencies": {
"axios": "^1.2.4"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}
}