Skip to content

Commit b2f60c0

Browse files
committed
Set up Prettier
1 parent 14d7072 commit b2f60c0

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"eslint": "^9.37.0",
4949
"globals": "^16.4.0",
5050
"jiti": "^2.6.1",
51+
"prettier": "3.6.2",
5152
"rollup": "^4.41.0",
5253
"rollup-plugin-babel-minify": "^10.0.0",
5354
"rollup-plugin-commonjs": "^10.1.0",

rt/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore artifacts:
2+
built

rt/.prettierrc

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

rt/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ all:
44
clean:
55
rm -rf built
66

7+
format:
8+
npx prettier --write src
9+
10+
format/dry:
11+
npx prettier --check src
12+
713
lint:
814
npx eslint --fix src
915

0 commit comments

Comments
 (0)