Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds consistency to ESLint rules. #34335

Merged
merged 39 commits into from Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b92b744
Adds consistency to ESLint rules.
manovotny Feb 14, 2022
75fb7e8
Fixes lint errors.
manovotny Feb 14, 2022
8b63051
Fixes manifest.
manovotny Feb 14, 2022
d20d76a
Merge branch 'canary' into eslint-consistency
manovotny Feb 14, 2022
5f5d4c7
Adds missing title.
manovotny Feb 14, 2022
28815b9
Fixes copy / paste error.
manovotny Feb 14, 2022
66bda56
Update errors/no-script-in-document.md
manovotny Feb 14, 2022
c4f4225
Update errors/no-sync-scripts.md
manovotny Feb 14, 2022
831afe2
Updates a couple of rule descriptions.
manovotny Feb 14, 2022
a22d98e
Merge branch 'eslint-consistency' of github.com:manovotny/next.js int…
manovotny Feb 14, 2022
0468818
Adds redirects.
manovotny Feb 14, 2022
9131067
Merge branch 'canary' into eslint-consistency
leerob Feb 14, 2022
1df47a8
Fixes unit tests.
manovotny Feb 14, 2022
fbf973f
Merge branch 'canary' into eslint-consistency
manovotny Feb 24, 2022
b0692c6
Merge branch 'canary' into eslint-consistency
manovotny Mar 1, 2022
23d6faa
Merge branch 'canary' into eslint-consistency
manovotny Apr 14, 2022
d16be8b
Removes duplicated section.
manovotny Apr 14, 2022
1482de9
Merge branch 'canary' into eslint-consistency
timneutkens Apr 15, 2022
81ebcf9
Merge branch 'canary' into eslint-consistency
manovotny Apr 22, 2022
37a09c0
Updates `no-before-interactive-script-outside-document` description.
manovotny Apr 22, 2022
c60ba22
Fixes lint.
manovotny Apr 22, 2022
75dc0fa
Fixes integration tests.
manovotny Apr 23, 2022
c91b648
Adds description to `no-before-interactive-script-outside-document` d…
manovotny Apr 23, 2022
f237741
Merge branch 'canary' into eslint-consistency
manovotny Apr 23, 2022
334ceaa
Merge branch 'canary' into eslint-consistency
manovotny May 5, 2022
490e77a
Removes `link-passhref` from rules list.
manovotny May 5, 2022
3ce6043
Merge branch 'canary' into eslint-consistency
manovotny May 18, 2022
e93750f
Merge branch 'canary' into eslint-consistency
manovotny May 19, 2022
8093af9
Updates remaining `pages/_middleware.js` references.
manovotny May 19, 2022
db695fb
Merge branch 'canary' into eslint-consistency
manovotny May 19, 2022
49043af
Merge branch 'canary' into eslint-consistency
manovotny May 23, 2022
0acdf1b
Adds consistancy to messaging in new `no-styled-jsx-in-document` rule.
manovotny May 23, 2022
6339cfd
Merge branch 'canary' into eslint-consistency
manovotny May 23, 2022
2e2ba1b
Merge branch 'canary' into eslint-consistency
manovotny Jun 13, 2022
063135d
Merge branch 'canary' into eslint-consistency
manovotny Jun 13, 2022
07c1519
Merge branch 'canary' into eslint-consistency
manovotny Jun 13, 2022
0578065
Apply suggestions from code review
ijjk Jun 14, 2022
13b642f
Merge branch 'canary' into eslint-consistency
ijjk Jun 14, 2022
031ba70
Apply suggestions from code review
ijjk Jun 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/basic-features/eslint.md
Expand Up @@ -98,7 +98,7 @@ Next.js provides an ESLint plugin, [`eslint-plugin-next`](https://www.npmjs.com/
| ✔️ | [@next/next/no-img-element](/docs/messages/no-img-element.md) | Prevent usage of `<img>` element to prevent layout shift. |
| ✔️ | [@next/next/no-page-custom-font](/docs/messages/no-page-custom-font.md) | Prevent page-only custom fonts. |
| ✔️ | [@next/next/no-script-component-in-head](/docs/messages/no-script-component-in-head.md) | Prevent usage of `next/script` in `next/head` component. |
| ✔️ | [@next/next/no-server-import-in-page](/docs/messages/no-server-import-in-page.md) | Prevent usage of `next/server` outside of `pages/_middleware.js`. |
| ✔️ | [@next/next/no-server-import-in-page](/docs/messages/no-server-import-in-page.md) | Prevent usage of `next/server` outside of `middleware.js`. |
| ✔️ | [@next/next/no-sync-scripts](/docs/messages/no-sync-scripts.md) | Prevent synchronous scripts. |
| ✔️ | [@next/next/no-title-in-document-head](/docs/messages/no-title-in-document-head.md) | Prevent usage of `<title>` with `Head` component from `next/document`. |
| ✔️ | @next/next/no-typos | Prevent common typos in [Next.js's data fetching functions](/docs/basic-features/data-fetching.md) |
Expand Down
2 changes: 1 addition & 1 deletion errors/no-server-import-in-page.md
@@ -1,6 +1,6 @@
# No Server Import In Page

> Prevent usage of `next/server` outside of `pages/_middleware.js`.
> Prevent usage of `next/server` outside of `middleware.js`.
leerob marked this conversation as resolved.
Show resolved Hide resolved

### Why This Error Occurred

Expand Down