Skip to content

Commit 89f9191

Browse files
committed
Add prettier dependency to Explorer
1 parent a5e7f42 commit 89f9191

File tree

6 files changed

+234
-12
lines changed

6 files changed

+234
-12
lines changed

mithril-explorer/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# production
1616
/build
17+
/explorer
1718

1819
# misc
1920
.DS_Store

mithril-explorer/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
out
2+
explorer

mithril-explorer/.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

mithril-explorer/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ watch-test: yarn.lock
2929

3030
lint:
3131
yarn run lint
32+
yarn run pretty:check
33+
34+
format:
35+
yarn run pretty:write
3236

3337
clean:
3438
rm -rf build
@@ -55,3 +59,5 @@ upgrade: clean install
5559
jest@latest \
5660
jest-environment-jsdom@latest \
5761
next-router-mock@latest \
62+
prettier@latest \
63+
prettier-eslint@latest

mithril-explorer/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10+
"pretty:check": "prettier . --check",
11+
"pretty:write": "prettier . --write",
1012
"test": "jest --watch",
1113
"test:ci": "jest --ci"
1214
},
@@ -30,6 +32,8 @@
3032
"eslint-config-next": "^13.5.4",
3133
"jest": "^29.7.0",
3234
"jest-environment-jsdom": "^29.7.0",
33-
"next-router-mock": "^0.9.10"
35+
"next-router-mock": "^0.9.10",
36+
"prettier": "3.0.3",
37+
"prettier-eslint": "^15.0.1"
3438
}
35-
}
39+
}

0 commit comments

Comments
 (0)