Skip to content

Commit a5cf8ab

Browse files
chore: add prettier
1 parent dfc9bc9 commit a5cf8ab

File tree

109 files changed

+3967
-3840
lines changed

Some content is hidden

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

109 files changed

+3967
-3840
lines changed

.github/workflows/pull-request.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Pull request checks
2+
3+
on: pull_request
4+
5+
# This allows a subsequently queued workflow run to interrupt previous runs
6+
concurrency:
7+
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
8+
cancel-in-progress: true
9+
10+
jobs:
11+
prettier-checks:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v4
19+
with:
20+
version: 9.1.3
21+
22+
- name: Install Node.js 20
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: "pnpm"
27+
registry-url: "https://registry.npmjs.org"
28+
29+
- name: Install pnpm Dependencies
30+
shell: bash
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Run prettier check
34+
shell: bash
35+
run: pnpm prettier:check

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 80,
3+
"singleQuote": false,
4+
"semi": true,
5+
"useTabs": true,
6+
"trailingComma": "es5"
7+
}

e2e/pierced-react-remix-fragment/.eslintrc.cjs

+71-71
Original file line numberDiff line numberDiff line change
@@ -6,79 +6,79 @@
66

77
/** @type {import('eslint').Linter.Config} */
88
module.exports = {
9-
root: true,
10-
parserOptions: {
11-
ecmaVersion: "latest",
12-
sourceType: "module",
13-
ecmaFeatures: {
14-
jsx: true,
15-
},
16-
},
17-
env: {
18-
browser: true,
19-
commonjs: true,
20-
es6: true,
21-
},
22-
ignorePatterns: ["!**/.server", "!**/.client"],
9+
root: true,
10+
parserOptions: {
11+
ecmaVersion: "latest",
12+
sourceType: "module",
13+
ecmaFeatures: {
14+
jsx: true,
15+
},
16+
},
17+
env: {
18+
browser: true,
19+
commonjs: true,
20+
es6: true,
21+
},
22+
ignorePatterns: ["!**/.server", "!**/.client"],
2323

24-
// Base config
25-
extends: ["eslint:recommended"],
24+
// Base config
25+
extends: ["eslint:recommended"],
2626

27-
overrides: [
28-
// React
29-
{
30-
files: ["**/*.{js,jsx,ts,tsx}"],
31-
plugins: ["react", "jsx-a11y"],
32-
extends: [
33-
"plugin:react/recommended",
34-
"plugin:react/jsx-runtime",
35-
"plugin:react-hooks/recommended",
36-
"plugin:jsx-a11y/recommended",
37-
],
38-
settings: {
39-
react: {
40-
version: "detect",
41-
},
42-
formComponents: ["Form"],
43-
linkComponents: [
44-
{ name: "Link", linkAttribute: "to" },
45-
{ name: "NavLink", linkAttribute: "to" },
46-
],
47-
"import/resolver": {
48-
typescript: {},
49-
},
50-
},
51-
},
27+
overrides: [
28+
// React
29+
{
30+
files: ["**/*.{js,jsx,ts,tsx}"],
31+
plugins: ["react", "jsx-a11y"],
32+
extends: [
33+
"plugin:react/recommended",
34+
"plugin:react/jsx-runtime",
35+
"plugin:react-hooks/recommended",
36+
"plugin:jsx-a11y/recommended",
37+
],
38+
settings: {
39+
react: {
40+
version: "detect",
41+
},
42+
formComponents: ["Form"],
43+
linkComponents: [
44+
{ name: "Link", linkAttribute: "to" },
45+
{ name: "NavLink", linkAttribute: "to" },
46+
],
47+
"import/resolver": {
48+
typescript: {},
49+
},
50+
},
51+
},
5252

53-
// Typescript
54-
{
55-
files: ["**/*.{ts,tsx}"],
56-
plugins: ["@typescript-eslint", "import"],
57-
parser: "@typescript-eslint/parser",
58-
settings: {
59-
"import/internal-regex": "^~/",
60-
"import/resolver": {
61-
node: {
62-
extensions: [".ts", ".tsx"],
63-
},
64-
typescript: {
65-
alwaysTryTypes: true,
66-
},
67-
},
68-
},
69-
extends: [
70-
"plugin:@typescript-eslint/recommended",
71-
"plugin:import/recommended",
72-
"plugin:import/typescript",
73-
],
74-
},
53+
// Typescript
54+
{
55+
files: ["**/*.{ts,tsx}"],
56+
plugins: ["@typescript-eslint", "import"],
57+
parser: "@typescript-eslint/parser",
58+
settings: {
59+
"import/internal-regex": "^~/",
60+
"import/resolver": {
61+
node: {
62+
extensions: [".ts", ".tsx"],
63+
},
64+
typescript: {
65+
alwaysTryTypes: true,
66+
},
67+
},
68+
},
69+
extends: [
70+
"plugin:@typescript-eslint/recommended",
71+
"plugin:import/recommended",
72+
"plugin:import/typescript",
73+
],
74+
},
7575

76-
// Node
77-
{
78-
files: [".eslintrc.cjs"],
79-
env: {
80-
node: true,
81-
},
82-
},
83-
],
76+
// Node
77+
{
78+
files: [".eslintrc.cjs"],
79+
env: {
80+
node: true,
81+
},
82+
},
83+
],
8484
};

e2e/pierced-react-remix-fragment/app/entry.client.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import { startTransition, StrictMode } from "react";
99
import { hydrateRoot } from "react-dom/client";
1010

1111
startTransition(() => {
12-
hydrateRoot(
13-
document,
14-
<StrictMode>
15-
<RemixBrowser />
16-
</StrictMode>
17-
);
12+
hydrateRoot(
13+
document,
14+
<StrictMode>
15+
<RemixBrowser />
16+
</StrictMode>
17+
);
1818
});

0 commit comments

Comments
 (0)