Skip to content

Commit f2b1c64

Browse files
committed
feat: update packages and README
1 parent 8e0ae02 commit f2b1c64

File tree

10 files changed

+1442
-1594
lines changed

10 files changed

+1442
-1594
lines changed

.eslintrc.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
extends: [
99
// 'next/core-web-vitals',
1010
'next',
11-
'plugin:unicorn/recommended',
11+
// 'plugin:unicorn/recommended',
1212
'next/typescript', // or use 'plugin:@typescript-eslint/recommended-type-checked'
1313
'plugin:tailwindcss/recommended',
1414
'plugin:prettier/recommended',
@@ -21,8 +21,8 @@ module.exports = {
2121

2222
// 'react-compiler/react-compiler': 'error',
2323

24-
'unicorn/no-array-reduce': 'off',
25-
'unicorn/no-null': 'off',
24+
// 'unicorn/no-array-reduce': 'off',
25+
// 'unicorn/no-null': 'off',
2626
},
2727
settings: {
2828
tailwindcss: {

README.md

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a [Next.js](https://nextjs.org/) 15 Boilerplate project base on [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
44

5-
For Next.js, check this: [Next.js 14 Boilerplate](https://github.com/qinsong77/Next-js-Boilerplate/tree/nextjs14-v2)
5+
For Next.js 14, check this: [Next.js 14 Boilerplate](https://github.com/qinsong77/Next-js-Boilerplate/tree/nextjs14-v2)
66

77
## Features
88

@@ -39,47 +39,61 @@ For Next.js, check this: [Next.js 14 Boilerplate](https://github.com/qinsong77/N
3939

4040
- i18n
4141
- ~~E2E test~~
42-
- Zustand, too simplify, maybe RTK if needed
42+
- Zustand, too simplify, maybe RTK or [xstate](https://stately.ai/docs/xstate-react) if needed
4343
- after gpr, run pnpm install automatically
4444
- how to update rsc in client?
45-
- Update to Next.js 15
45+
~~- Update to Next.js 15~~
4646
- How to test, the test strategy/architecture with RSC
4747
- in [table pagination demo](./app/pagination-demo/page.tsx), Suspense fallback will cover table pagination and header when paginate on client, how to show them when request on client
4848
- Fixed by using [useTransition](https://19.react.dev/reference/react/useTransition), refer: [Preventing unwanted loading indicators ](https://19.react.dev/reference/react/useTransition#preventing-unwanted-loading-indicators)
49-
- Remove `"react-is": "19.0.0-rc-1631855f-20241023"` in `package.json` for support React 19
49+
- ~~Remove `"react-is": "19.0.0-rc-1631855f-20241023"` in `package.json` for support React 19~~
50+
- eslint v9
5051

5152
## Best Practices
5253

5354
- `server-only`, [Keeping Server-only Code out of the Client Environment](https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#keeping-server-only-code-out-of-the-client-environment)
5455

55-
## Libraries
56+
### Practices Refers
57+
58+
- [next authentication](https://www.robinwieruch.de/next-authentication/)
59+
- [How to Set Up Next.js 15 for Production in 2024](https://www.reactsquad.io/blog/how-to-set-up-next-js-15-for-production)
60+
61+
### Good Articles
62+
63+
- [How to fetch data in React [2024]](https://www.robinwieruch.de/react-fetching-data/)
64+
- [Component composition is great btw](https://tkdodo.eu/blog/component-composition-is-great-btw)
65+
66+
## Later Enhancement Libraries
5667

5768
- [nuqs](https://github.com/47ng/nuqs) Type-safe search params state manager for Next.js - Like React.useState, but stored in the URL query string.
5869
- [next-safe-action](https://github.com/TheEdoRan/next-safe-action) Type safe and validated Server Actions in your Next.js project.
59-
- [magic ui](https://magicui.design)
70+
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) strict lint rules for a more consistent codebase.
6071

61-
## Practices Refers
72+
### fancy components
6273

63-
- [next authentication](https://www.robinwieruch.de/next-authentication/)
64-
- [How to Set Up Next.js 15 for Production in 2024](https://www.reactsquad.io/blog/how-to-set-up-next-js-15-for-production)
74+
- [shadcn/ui](https://ui.shadcn.com/)
75+
- [MagicUI](https://www.magicui.com/)
76+
- [fancycomponents](https://www.fancycomponents.dev/docs/introduction)
77+
- [reactbits](https://www.reactbits.dev/)
6578

6679
## Know issues
6780

68-
- Standalone building output can't run if copy it's folder, cause pnpm `symlink`, node_module cant resolve correctly. It can be avoided by installing the package with `node-linker=hoisted` in the pnpm configuration before standalone output.
81+
- Standalone building output can't run if copy its folder, cause pnpm `symlink`, `node_module` cant resolve correctly. It can be avoided by installing the package with `node-linker=hoisted` in the pnpm configuration before standalone output.
6982

7083
## Refers
7184

7285
- [Next.js App Router Playground](https://github.com/vercel/app-playground)
7386
- [nodejs.org doc web repo](https://github.com/nodejs/nodejs.org/tree/main)
7487
- [Next.js Full Stack App Architecture Guide](https://arno.surfacew.com/posts/en/nextjs-architecture)
7588

76-
### Good article
89+
## LLM Guide
7790

78-
- [How to fetch data in React [2024]](https://www.robinwieruch.de/react-fetching-data/)
91+
- V0
92+
- Cursor
7993

80-
## Cursor
94+
### Cursor
8195

82-
### Guideline
96+
#### Guideline
8397

8498
1. Brainstorm first, code second
8599

@@ -93,6 +107,7 @@ Claude/o1 are your best friends here. You should create a whole document contain
93107
- landing page components
94108
- color palette
95109
- copyrighting
110+
- etc.
96111

97112
All this should be put into an instruction.md (name it however you want) so Cursor can index at any time.
98113

@@ -137,6 +152,8 @@ Go to Cursor Settings > Features > Docs
137152

138153
Paste the links and use them inside chat/composer with `@Docs`
139154

155+
---
156+
140157
## Getting Started
141158

142159
First, run the development server:

app/loading-and-streaming/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ async function getUserInfo(): Promise<Response> {
4646
return await response.json()
4747
}
4848
const Page = async () => {
49-
// eslint-disable-next-line unicorn/no-await-expression-member
5049
const data = (await getUserInfo())?.results?.[0] ?? {}
5150

5251
return (

components/__tests__/__snapshots__/data-table.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`[component]-DataTable > renders correctly 1`] = `
44
<DocumentFragment>
55
<div
6-
class=""
6+
class="grid"
77
>
88
<div
99
class="relative overflow-hidden border-b"

0 commit comments

Comments
 (0)