prettier rules

This commit is contained in:
Bryan MacFarlane
2020-04-10 09:17:13 -04:00
parent 60c8242c8c
commit 71d14f19d2
3 changed files with 15 additions and 2 deletions

View File

@@ -40,5 +40,8 @@ jobs:
- name: npm test
run: npm test
- name: Format
run: npm run format-check
- name: audit security
run: npm audit
run: npm audit --audit-level=moderate

6
package-lock.json generated
View File

@@ -3413,6 +3413,12 @@
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
"dev": true
},
"prettier": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.0.4.tgz",
"integrity": "sha512-SVJIQ51spzFDvh4fIbCLvciiDMCrRhlN3mbZvv/+ycjvmF5E73bKdGfU8QDLNmjYJf+lsGnDBC4UUnvTe5OO0w==",
"dev": true
},
"pretty-format": {
"version": "25.1.0",
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.1.0.tgz",

View File

@@ -5,7 +5,10 @@
"main": "index.js",
"scripts": {
"build": "rm -Rf ./_out && tsc && cp package*.json ./_out && cp *.md ./_out && cp LICENSE ./_out && cp actions.png ./_out",
"test": "jest"
"test": "jest",
"format": "prettier --write packages/**/*.ts",
"format-check": "prettier --check packages/**/*.ts",
"audit-check": "npm audit --audit-level=moderate"
},
"repository": {
"type": "git",
@@ -25,6 +28,7 @@
"@types/jest": "^25.1.4",
"@types/node": "^12.12.31",
"jest": "^25.1.0",
"prettier": "^2.0.4",
"proxy": "^1.0.1",
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"