Skip to content

Commit d2248c1

Browse files
committed
linting
1 parent dbe82a1 commit d2248c1

File tree

248 files changed

+7197
-6951
lines changed

Some content is hidden

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

248 files changed

+7197
-6951
lines changed

eslint.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import defaultConfig from '@epic-web/config/eslint'
44
export default [
55
...defaultConfig.map((config) => ({
66
...config,
7-
ignores: [...(config.ignores ?? []), '**/.react-router/**/*'],
7+
ignores: [
8+
...(config.ignores ?? []),
9+
'**/.react-router/**/*',
10+
'**/generated/**/*',
11+
'**/tests/e2e/**/*',
12+
],
813
})),
914

1015
{

exercises/01.routing/01.problem.routing/README.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ In this exercise, you will:
1313

1414
## Getting Started
1515

16-
To get started, find our helpful assistants comments in the `app/routes.ts` file. (They include 🐨 emoji)
16+
To get started, find our helpful assistants comments in the `app/routes.ts` file. (They include 🐨 emoji)
1717
and implement the following routes:
18+
1819
- `Landing page layout` that wraps all the other routes (`./routes/_landing.tsx`).
1920
- `/` - The index route that renders the landing page (`./routes/_landing._index/route.tsx`).
2021
- `/about` - The about route that renders the `About` page (`./routes/_landing.about.tsx`).
@@ -26,5 +27,4 @@ and implement the following routes:
2627
- `/terms-of-service` - The terms of service route that renders the `TermsOfService` page (`./routes/_landing.terms-of-service.tsx`).
2728

2829
> Bonus (only after completing the above): Create a utility function to easily define landing page routes.
29-
> This utility should be used to define the routes above
30-
30+
> This utility should be used to define the routes above

exercises/01.routing/01.problem.routing/app/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
Scripts,
77
ScrollRestoration,
88
} from 'react-router'
9-
import type { Route } from './+types/root'
9+
import { type Route } from './+types/root'
1010
import { EpicShop } from './epicshop'
1111

1212
export function Layout({ children }: { children: React.ReactNode }) {
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
export default function HomePage() {
2-
return (
3-
<div className="bg-stone-50 dark:bg-gray-900">
4-
Landing page!
5-
</div>
6-
)
2+
return <div className="bg-stone-50 dark:bg-gray-900">Landing page!</div>
73
}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
export default function AboutPage() {
2-
return (
3-
<div className="bg-stone-50 dark:bg-gray-900">
4-
About page!
5-
</div>
6-
)
2+
return <div className="bg-stone-50 dark:bg-gray-900">About page!</div>
73
}
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
21
import { Link } from 'react-router'
32

43
export default function CartPage() {
5-
6-
7-
84
return (
9-
<div className="min-h-screen bg-stone-50 dark:bg-gray-900">
10-
Cart page
11-
</div>
5+
<div className="min-h-screen bg-stone-50 dark:bg-gray-900">Cart page</div>
126
)
137
}
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
21
export default function ContactPage() {
3-
return (
4-
<div className="bg-stone-50 dark:bg-gray-900">
5-
Contact page!
6-
</div>
7-
)
2+
return <div className="bg-stone-50 dark:bg-gray-900">Contact page!</div>
83
}

exercises/01.routing/01.problem.routing/app/routes/_landing.products.$productId.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export default function ProductDetailPage() {
32
return (
43
<div className="min-h-screen bg-stone-50 dark:bg-gray-900">
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Outlet } from "react-router"
2-
3-
export default function ProductsLandingPage() {
4-
return (
5-
<>
6-
<Outlet />
7-
</>
8-
)
9-
}
1+
import { Outlet } from 'react-router'
2+
3+
export default function ProductsLandingPage() {
4+
return (
5+
<>
6+
<Outlet />
7+
</>
8+
)
9+
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
export default function TOSPage() {
22
return (
3-
<div className="bg-stone-50 dark:bg-gray-900">
4-
Terms of Service page!
5-
</div>
3+
<div className="bg-stone-50 dark:bg-gray-900">Terms of Service page!</div>
64
)
75
}

0 commit comments

Comments
 (0)