Skip to content

Commit 0fc6385

Browse files
authored
chore: format with prettier, add prettier check for PRs (#962)
1 parent 23c1c0b commit 0fc6385

File tree

119 files changed

+1839
-813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+1839
-813
lines changed

.changeset/metal-drinks-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": patch
3+
---
4+
5+
format with prettier, add prettier check for PRs

.github/workflows/pr-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
- name: Configure Turbo cache
6464
uses: dtinth/setup-github-actions-caching-for-turbo@v1
6565

66+
- name: Check formatting
67+
run: pnpm format:check
68+
6669
- name: Build
6770
run: pnpm turbo build --force
6871

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
pnpm-lock.yaml
22
.changeset/
33
packages/cli/demo/
4+
build/
5+
dist/
6+
.react-router/
7+
.turbo/
8+
.next/

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"trailingComma": "all",
3+
"singleQuote": false,
4+
"semi": true,
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"useTabs": false
8+
}

.vscode/launch.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@
88
"name": "Attach to CLI",
99
"processId": "${command:PickProcess}",
1010
"request": "attach",
11-
"skipFiles": [
12-
"<node_internals>/**"
13-
],
11+
"skipFiles": ["<node_internals>/**"],
1412
"type": "node",
1513
"sourceMaps": true,
16-
"outFiles": [
17-
"${workspaceFolder}/packages/cli/build/**/*.mjs"
18-
],
14+
"outFiles": ["${workspaceFolder}/packages/cli/build/**/*.mjs"],
1915
"resolveSourceMapLocations": [
2016
"${workspaceFolder}/packages/cli/build/**/*.mjs",
2117
"!**/node_modules/**"

composer.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"name": "lingodotdev/lingo.dev",
3-
"description": "Lingo.dev Monorepo",
4-
"type": "project",
5-
"license": "MIT",
6-
"repositories": [
7-
{
8-
"type": "path",
9-
"url": "php/sdk",
10-
"options": {
11-
"symlink": false
12-
}
13-
}
14-
],
15-
"require": {
16-
"lingodotdev/sdk": "*"
17-
},
18-
"minimum-stability": "dev",
19-
"prefer-stable": true
2+
"name": "lingodotdev/lingo.dev",
3+
"description": "Lingo.dev Monorepo",
4+
"type": "project",
5+
"license": "MIT",
6+
"repositories": [
7+
{
8+
"type": "path",
9+
"url": "php/sdk",
10+
"options": {
11+
"symlink": false
12+
}
13+
}
14+
],
15+
"require": {
16+
"lingodotdev/sdk": "*"
17+
},
18+
"minimum-stability": "dev",
19+
"prefer-stable": true
2020
}

demo/next-app/src/app/test/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ export default function Test() {
44
return (
55
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
66
<main className="flex flex-col gap-[32px] row-start-2 items-center sm:items-start">
7-
<Link href="/" className="text-primary underline">Navigate home</Link>
7+
<Link href="/" className="text-primary underline">
8+
Navigate home
9+
</Link>
810
<div className="flex flex-col justify-center items-center gap-4 w-100">
911
<h1 className="text-4xl">Testing this thing now</h1>
1012
<p>

demo/next-app/src/lingo/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
}
1515
}
1616
}
17-
}
17+
}

demo/next-app/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
"@/*": ["./src/*"]
2323
}
2424
},
25-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "../react-router-app/app/welcome/lingo-dot-dev.tsx"],
25+
"include": [
26+
"next-env.d.ts",
27+
"**/*.ts",
28+
"**/*.tsx",
29+
".next/types/**/*.ts",
30+
"../react-router-app/app/welcome/lingo-dot-dev.tsx"
31+
],
2632
"exclude": ["node_modules"]
2733
}

demo/react-router-app/app/app.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
@import "tailwindcss";
22

33
@theme {
4-
--font-sans:
5-
"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
6-
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
4+
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif,
5+
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
76
}
87

98
html,

0 commit comments

Comments
 (0)