chore: add prettier and reformat lib

This commit is contained in:
waterplea
2022-07-24 17:53:24 +03:00
parent a39f777cb0
commit 897f791a72
12 changed files with 2600 additions and 112 deletions

View File

@@ -7,7 +7,8 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc"
"build": "tsc",
"check": "tsc --noEmit --skipLibCheck"
},
"dependencies": {
"sorted-btree": "1.5.0",
@@ -19,8 +20,20 @@
"devDependencies": {
"@types/node": "16.4.13",
"@types/uuid": "8.3.1",
"husky": "^4.3.8",
"lint-staged": "^12.3.7",
"prettier": "^2.6.1",
"ts-node": "10.2.0",
"tslint": "6.1.3",
"typescript": "4.3.5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run check"
}
},
"lint-staged": {
"**/*.{js,ts,html,md,less,json}": "prettier --write",
"*.ts": "tslint --fix"
}
}