Skip to content

Commit 0c372ef

Browse files
committed
Add Prettier
Everyone uses Prettier now and the only setting we tweak is to use tabs. The actual formatting will be in the next commit. This one should fail the updated CI script.
1 parent ba73b17 commit 0c372ef

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
package-lock.json
3+
**/*.js

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@
1616
"clean": "cd dist/; rm -rf *",
1717
"build": "npm run clean; cd src/; tsc -d; tsc -d -p tsconfig.es6.json; cd ../scripts; tsc",
1818
"prepublishOnly": "npm run build",
19+
"prettier": "prettier . --write",
20+
"prettier-check": "prettier . --check",
1921
"test": "mocha -r ts-node/register ./test/*.test.ts"
2022
},
23+
"prettier": {
24+
"useTabs": true
25+
},
2126
"bin": {
2227
"extract-strings": "./scripts/extract-strings.js"
2328
},
@@ -36,6 +41,7 @@
3641
"chai": "^4.2.0",
3742
"glob": "^11.0.1",
3843
"mocha": "^11.1.0",
44+
"prettier": "^3.5.3",
3945
"ts-node": "^10.9.2",
4046
"typescript": "5.5"
4147
},

0 commit comments

Comments
 (0)