Skip to content

Commit 81601be

Browse files
committed
format again
1 parent 114f445 commit 81601be

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

markdown-pages/docs/manual/overview.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ order: 1
148148

149149
### If-else
150150

151-
| JavaScript | ReScript |
152-
| --------------------- | ---------------------------------------------------------------------------------- |
153-
| `if (a) {b} else {c}` | `if a {b} else {c}` \* |
154-
| `a ? b : c` | Same |
151+
| JavaScript | ReScript |
152+
| --------------------- | ------------------------------------------------------------------------------------ |
153+
| `if (a) {b} else {c}` | `if a {b} else {c}` \* |
154+
| `a ? b : c` | Same |
155155
| `switch` | `switch` but [super-powered pattern matching!](./pattern-matching-destructuring.mdx) |
156156

157157
\* Our conditionals are always expressions! You can write `let result = if a {"hello"} else {"bye"}`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"res:clean": "rescript clean",
1616
"res:build": "rescript build",
1717
"build": "node scripts/test-hrefs.mjs && rescript build && npm run sync-bundles && npm run update-index && react-router build",
18-
"test": "node scripts/test-examples.mjs",
18+
"test": "node scripts/test-examples.mjs && node scripts/test-hrefs.mjs",
1919
"reanalyze": "reanalyze -all-cmt .",
2020
"update-index": "npm run generate-llms && node scripts/generate_feed.mjs > public/blog/feed.xml",
2121
"sync-bundles": "node scripts/sync-playground-bundles.mjs",

scripts/test-hrefs.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,15 @@ for (const file of files) {
2424

2525
const log = reporter(result, { quiet: true });
2626

27-
const warningMessage = log.replace(file, "")
27+
const warningMessage = log.replace(file, "");
2828

2929
if (
3030
log &&
3131
!warningMessage.includes("api/") &&
32-
markdownFolders.some((folder) =>
33-
warningMessage.includes(`${folder}`),
34-
) && !warningMessage.includes(".txt")
32+
markdownFolders.some((folder) => warningMessage.includes(`${folder}`)) &&
33+
!warningMessage.includes(".txt")
3534
) {
36-
console.log(log)
35+
console.log(log);
3736
issues += 1;
3837
}
3938
}

0 commit comments

Comments
 (0)