Skip to content

Commit 29f04a7

Browse files
committed
Setup prettier
1 parent 5172940 commit 29f04a7

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

.prettierignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
solution.js
2+
solution.ts
3+
4+
.gitattributes
5+
.gitignore
6+
.nvmrc
7+
.prettierignore
8+
.node-version
9+
LICENCE
10+
11+
bootstrap.*
12+
jquery.*
13+
14+
/public/fonts/
15+
/public/img/
16+
17+
/data/

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5"
4+
}

package-lock.json

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

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
"scripts": {
66
"start": "CG_ADMIN_PASSWORD=admin ts-node src",
77
"tests": "jest --runInBand",
8-
"tests:watch": "jest --watch",
8+
"tests-watch": "jest --watch",
9+
"format": "prettier --write '**/*'",
10+
"format-check": "prettier --check '**/*'",
911
"typecheck": "tsc --noEmit --project tsconfig.json",
10-
"test": "npm run typecheck && npm run tests"
12+
"test": "npm run typecheck && npm run format-check && npm run tests"
1113
},
1214
"author": "Martin Rue",
1315
"license": "MIT",
@@ -19,6 +21,7 @@
1921
"lodash": "^4.17.10",
2022
"multiparty": "^4.1.3",
2123
"mustachex": "^0.0.3",
24+
"prettier": "^2.7.1",
2225
"ts-node": "^10.4.0"
2326
},
2427
"devDependencies": {

0 commit comments

Comments
 (0)