Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

Commit 71d14f1

Browse files
prettier rules
1 parent 60c8242 commit 71d14f1

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/test.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@ jobs:
4040
- name: npm test
4141
run: npm test
4242

43+
- name: Format
44+
run: npm run format-check
45+
4346
- name: audit security
44-
run: npm audit
47+
run: npm audit --audit-level=moderate

package-lock.json

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"main": "index.js",
66
"scripts": {
77
"build": "rm -Rf ./_out && tsc && cp package*.json ./_out && cp *.md ./_out && cp LICENSE ./_out && cp actions.png ./_out",
8-
"test": "jest"
8+
"test": "jest",
9+
"format": "prettier --write packages/**/*.ts",
10+
"format-check": "prettier --check packages/**/*.ts",
11+
"audit-check": "npm audit --audit-level=moderate"
912
},
1013
"repository": {
1114
"type": "git",
@@ -25,6 +28,7 @@
2528
"@types/jest": "^25.1.4",
2629
"@types/node": "^12.12.31",
2730
"jest": "^25.1.0",
31+
"prettier": "^2.0.4",
2832
"proxy": "^1.0.1",
2933
"ts-jest": "^25.2.1",
3034
"typescript": "^3.8.3"

0 commit comments

Comments
 (0)