You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing/examples/adding-examples.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ When you add an example to the [examples](examples) directory, please follow the
7
7
- If API routes aren't used in an example, they should be omitted
8
8
- If an example exists for a certain library and you would like to showcase a specific feature of that library, the existing example should be updated (instead of adding a new example)
9
9
- Package manager specific config should not be added (e.g. `resolutions` in `package.json`)
10
-
- In `package.json` the version of `next`(and `eslint-config-next`) should be `latest`
10
+
- In `package.json` the version of `next` should be `latest`
11
11
- In `package.json` the dependency versions should be up-to-date
12
12
- Use `export default function` for page components and API Routes instead of `const`/`let` (The exception is if the page has `getInitialProps`, in which case [`NextPage`](https://nextjs.org/docs/api-reference/data-fetching/get-initial-props#typescript) could be useful)
13
13
- CMS example directories should be prefixed with `cms-`
0 commit comments