chore: upgrade Prettier and run on full repo

- Move Prettier 1 -> to support `.` glob and built-in parsers
- Move whitespace settings to EditorConfig that Prettier reads
- Expand glob to run on all non-generated files
This commit is contained in:
Nick Schonning 2022-08-26 20:50:35 -04:00
parent e954e15431
commit c2dd1f600a
No known key found for this signature in database
GPG key ID: 5DDAAD9C9AAFFD9F
28 changed files with 1503 additions and 1457 deletions

View file

@ -6,8 +6,8 @@
"main": "lib/setup-node.js",
"scripts": {
"build": "ncc build -o dist/setup src/setup-node.ts && ncc build -o dist/cache-save src/cache-save.ts",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"format": "prettier --write .",
"format-check": "prettier --check .",
"test": "jest --coverage",
"pre-checkin": "npm run format && npm run build && npm test"
},
@ -40,7 +40,7 @@
"@vercel/ncc": "^0.33.4",
"jest": "^27.2.5",
"jest-circus": "^27.2.5",
"prettier": "^1.19.1",
"prettier": "^2.7.1",
"ts-jest": "^27.0.5",
"typescript": "^3.8.3"
}