JJ Kasper
d8809164ad
v12.2.6-canary.0
2022-08-13 12:27:25 -05:00
JJ Kasper
911ba233d9
v12.2.5
2022-08-11 20:50:08 -05:00
JJ Kasper
d06fc0f0c4
v12.2.5-canary.7
2022-08-11 19:17:02 -05:00
JJ Kasper
de1bf3e471
v12.2.5-canary.6
2022-08-11 16:46:44 -05:00
JJ Kasper
a9b415b850
v12.2.5-canary.5
2022-08-11 12:09:48 -05:00
JJ Kasper
f863ba7193
v12.2.5-canary.4
2022-08-10 23:00:59 -05:00
JJ Kasper
d246257602
v12.2.5-canary.3
2022-08-10 18:18:54 -05:00
JJ Kasper
44eea0c9c9
v12.2.5-canary.2
2022-08-10 15:32:25 -05:00
JJ Kasper
a6bc38799a
v12.2.5-canary.1
2022-08-09 18:03:15 -05:00
JJ Kasper
b0f590162c
v12.2.5-canary.0
2022-08-08 18:44:10 -05:00
Julien Deniau
8ebd1a24cb
Update polyfill for eslint no-unwanted-polyfillio rule ( #33170 )
...
Fixes #33072
I documented all `esXXX` features to be sure that they were already polyfilled. Only `es2019` feature `Object.fromEntries` is not already polyfilled by nextjs.
I added some unwanted polyfill (that are polyfilled by nextjs).
I kept the `es5`, `es6` and `es2015` "as-is" as they contain functions that does not seem to be explicitly polyfilled (all `Math` functions or `Date.now` for example) in the [polyfill file](https://github.com/vercel/next.js/blob/master/packages/next-polyfill-nomodule/src/index.js )
Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-08-08 05:56:31 +00:00
Michael Novotny
ab48f54786
Adds eslint-plugin-eslint-plugin
to ensure eslint-plugin-next
rules follow ESLint rule best practices along with enforcing some consistency. ( #37920 )
...
* Adds eslint-plugin-eslint-plugin and recommended rules.
* Removes `fixable` as none of the rules contain fixers.
* Adds description and url rules.
* Adds message format.
* Removes optional dependencies.
* Lints eslint-plugin-next tests too.
* Removes optional dependencies from pnpm lock file.
* Resets pnpm lock file.
* Resets package.json too.
* Fixes pnpm lockfile.
2022-08-07 23:52:02 -05:00
JJ Kasper
d6cb795fc6
v12.2.4
2022-08-04 12:24:58 -05:00
JJ Kasper
dbc38d607e
v12.2.4-canary.12
2022-08-04 09:29:59 -05:00
JJ Kasper
ad687c9304
v12.2.4-canary.11
2022-08-03 16:15:59 -05:00
JJ Kasper
b7efce6437
v12.2.4-canary.10
2022-08-03 10:54:33 -05:00
JJ Kasper
ad75204b34
v12.2.4-canary.9
2022-08-01 17:51:35 -05:00
JJ Kasper
48405e6bd7
v12.2.4-canary.8
2022-07-28 23:34:07 -05:00
JJ Kasper
d091c818c5
v12.2.4-canary.7
2022-07-28 20:24:34 -05:00
JJ Kasper
a08415be32
v12.2.4-canary.6
2022-07-28 16:03:26 -05:00
JJ Kasper
ec2f0a8c4b
v12.2.4-canary.5
2022-07-28 12:00:28 -05:00
Tim Neutkens
70e4cf6d28
v12.2.4-canary.4
2022-07-28 10:49:03 +02:00
JJ Kasper
84fcbd56bc
v12.2.4-canary.3
2022-07-27 20:00:50 -05:00
JJ Kasper
8017d69a68
v12.2.4-canary.2
2022-07-26 15:24:27 -05:00
JJ Kasper
8c902b61d1
v12.2.4-canary.1
2022-07-25 15:50:59 -05:00
JJ Kasper
6b915cc34e
v12.2.4-canary.0
2022-07-22 17:51:32 -05:00
JJ Kasper
4b6cb447d1
v12.2.3
2022-07-21 19:53:45 -05:00
JJ Kasper
12b7c584f9
v12.2.3-canary.17
2022-07-21 16:30:46 -05:00
Tim Neutkens
5dafe472bc
v12.2.3-canary.16
2022-07-21 14:44:35 +02:00
Maia Teegarden
ea9f855253
v12.2.3-canary.15
2022-07-20 14:52:31 -07:00
JJ Kasper
a2554c09a4
v12.2.3-canary.14
2022-07-18 18:21:55 -05:00
Tim Neutkens
aa664868c1
v12.2.3-canary.13
2022-07-18 19:20:48 +02:00
Tim Neutkens
0610f9ac0d
v12.2.3-canary.12
2022-07-18 10:32:26 +02:00
Tim Neutkens
3017b606e0
v12.2.3-canary.11
2022-07-15 17:09:39 +02:00
Tim Neutkens
e685214cec
v12.2.3-canary.10
2022-07-15 14:21:49 +02:00
Tim Neutkens
3ebdf1988a
v12.2.3-canary.9
2022-07-15 13:44:11 +02:00
Tim Neutkens
c1ce6bfe1b
v12.2.3-canary.8
2022-07-14 17:06:56 +02:00
Tim Neutkens
f5af5bb0db
v12.2.3-canary.7
2022-07-14 12:58:55 +02:00
Jiachi Liu
5a15c5fb85
v12.2.3-canary.6
2022-07-13 19:33:11 +02:00
Tim Neutkens
1e09d9bd40
v12.2.3-canary.5
2022-07-13 14:45:36 +02:00
Tim Neutkens
722e64f06d
v12.2.3-canary.4
2022-07-13 12:01:33 +02:00
Tim Neutkens
c1b2ee635f
v12.2.3-canary.3
2022-07-13 09:30:15 +02:00
Tim Neutkens
114e151c23
v12.2.3-canary.2
2022-07-12 14:46:07 +02:00
JJ Kasper
883a52ede9
v12.2.3-canary.1
2022-07-11 18:12:44 -05:00
Balázs Orbán
e7b6b1939d
fix: don't use optional chaining in ESLint rule ( #38534 )
...
Fixes #38530
Should we consider adding a build-step to lint rules to be able to use TS/modern JS?
## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
## Feature
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`
## Documentation / Examples
- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples )
2022-07-11 22:59:33 +00:00
Tim Neutkens
0887d283e1
v12.2.3-canary.0
2022-07-11 14:35:12 +02:00
Tim Neutkens
689626c6a4
v12.2.2
2022-07-09 13:18:55 +02:00
Tim Neutkens
4e21a240a5
v12.2.2-canary.0
2022-07-09 11:44:49 +02:00
JJ Kasper
ef90539968
v12.2.1
2022-07-07 18:01:56 -05:00
JJ Kasper
e9ffd9bec4
v12.2.1-canary.5
2022-07-07 15:49:30 -05:00
JJ Kasper
3411794607
v12.2.1-canary.4
2022-07-06 16:33:16 -05:00
JJ Kasper
764f7d42d4
v12.2.1-canary.3
2022-07-05 12:09:24 -05:00
JJ Kasper
274980f057
v12.2.1-canary.2
2022-07-01 19:49:58 -05:00
Michael Novotny
edd395a7d3
Adds tests to ensure eslint-plugin-next
's available rules are properly exported and recommended rules are correctly defined. ( #38183 )
...
* Adds tests to ensure `eslint-plugin-next`'s available rules are properly exported and recommended rules are defined correctly.
* Condenses imports.
* Sets default recommended value.
* replace Object.hasOwn for node 14
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-06-30 11:31:33 -05:00
JJ Kasper
c64af8aa34
v12.2.1-canary.1
2022-06-29 15:06:44 -05:00
JJ Kasper
70c0b20885
v12.2.1-canary.0
2022-06-29 13:57:24 -05:00
Michael Novotny
c83f94cf8b
Readds missing @next/next/no-assign-module-variable
ESLint rule. ( #38134 )
...
Readds `@next/next/no-assign-module-variable` ESLint rule that was inadvertently removed in #34335 during the resolution of many merge conflicts.
This PR will get us back to a good / working state. I'll see if I can add a test to ensure all rule are accounted for in a separate PR.
Fixes #34335 .
## Bug
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [x] Errors have helpful link attached, see `contributing.md`
## Documentation / Examples
- [x] Make sure the linting passes by running `pnpm lint`
- [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples )
2022-06-29 02:54:47 +00:00
JJ Kasper
632feb6b73
v12.2.0
2022-06-28 09:21:07 -05:00
JJ Kasper
ed35138edc
v12.1.7-canary.52
2022-06-28 08:35:37 -05:00
JJ Kasper
3eb9caeb6a
v12.1.7-canary.51
2022-06-27 23:35:41 -05:00
JJ Kasper
52763de94a
v12.1.7-canary.50
2022-06-27 18:52:05 -05:00
JJ Kasper
7e3355dd9f
v12.1.7-canary.49
2022-06-27 15:12:26 -05:00
Gal Schlezinger
22206651a6
[eslint-plugin-next] remove no-server-import-in-page
rule ( #38028 )
...
This rule was good and kinda made sense when we had nested Middleware.
Now that we have a single Middleware, one might extract logic into different places
and I don't think we should limit importing `NextResponse` or `NextRequest`.
## Related
- Closes #36239
- Closes #37309
## Bug
- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2022-06-26 12:43:15 +00:00
Steven
f6ee4c06b9
v12.1.7-canary.48
2022-06-24 19:56:15 -04:00
Steven
086746538c
v12.1.7-canary.47
2022-06-24 14:58:49 -04:00
JJ Kasper
8a0f86a8e8
v12.1.7-canary.46
2022-06-23 21:12:22 -05:00
JJ Kasper
f246e781bb
v12.1.7-canary.45
2022-06-22 17:25:10 -05:00
JJ Kasper
5b854f31f5
v12.1.7-canary.44
2022-06-21 16:20:06 -05:00
JJ Kasper
1f68a5df52
v12.1.7-canary.43
2022-06-21 13:17:00 -05:00
JJ Kasper
89333da141
v12.1.7-canary.42
2022-06-20 10:44:11 -05:00
JJ Kasper
67e937d821
v12.1.7-canary.41
2022-06-17 10:44:25 -05:00
JJ Kasper
5730ed0f61
Ensure eslint-config warning/errors are correct ( #37760 )
...
* Ensure eslint-config warning/errors are correct
* fix tests
2022-06-16 16:04:44 -05:00
Andrei Stefan
6b829d8bd6
fix(eslint): allow <img> in conjunction with <picture> ( #37504 ) ( #37570 )
...
* fix(eslint): allow <img> in conjunction with <picture> (#37504 )
* Apply suggestions from code review
* add space
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-06-15 21:13:52 -05:00
JJ Kasper
016ce59a97
v12.1.7-canary.40
2022-06-15 14:40:38 -05:00
JJ Kasper
b65e10ea7a
v12.1.7-canary.39
2022-06-14 12:03:57 -05:00
JJ Kasper
75053a06f8
v12.1.7-canary.38
2022-06-13 22:11:26 -05:00
Michael Novotny
5211ac5cae
Adds consistency to ESLint rules. ( #34335 )
...
* Adds consistency to ESLint rules.
* Fixes lint errors.
* Fixes manifest.
* Adds missing title.
* Fixes copy / paste error.
Co-authored-by: Lee Robinson <me@leerob.io>
* Update errors/no-script-in-document.md
Co-authored-by: Lee Robinson <me@leerob.io>
* Update errors/no-sync-scripts.md
Co-authored-by: Lee Robinson <me@leerob.io>
* Updates a couple of rule descriptions.
* Adds redirects.
* Fixes unit tests.
* Removes duplicated section.
* Updates `no-before-interactive-script-outside-document` description.
* Fixes lint.
* Fixes integration tests.
* Adds description to `no-before-interactive-script-outside-document` documentation.
* Removes `link-passhref` from rules list.
* Updates remaining `pages/_middleware.js` references.
* Adds consistancy to messaging in new `no-styled-jsx-in-document` rule.
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Lee Robinson <me@leerob.io>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-06-13 21:17:42 -05:00
JJ Kasper
77c96a19b3
v12.1.7-canary.37
2022-06-13 15:50:25 -05:00
JJ Kasper
07420998c1
v12.1.7-canary.36
2022-06-13 10:32:27 -05:00
JJ Kasper
1463f0d1bc
v12.1.7-canary.35
2022-06-10 18:24:42 -05:00
JJ Kasper
f8ebb19dc5
v12.1.7-canary.34
2022-06-10 15:23:31 -05:00
JJ Kasper
0c986cd767
v12.1.7-canary.33
2022-06-08 16:55:45 -05:00
JJ Kasper
2ea3e92a21
v12.1.7-canary.32
2022-06-08 11:55:39 -05:00
Damien Simonin Feugas
09f48a7590
fix(eslint): false positive for legit next/server imports ( #37515 )
...
* fix(eslint): next/server error when next is not in the root
* chore: fix lint issue and posix compatibility
* chore: make it portable
2022-06-08 11:08:59 -05:00
JJ Kasper
6f2eb24109
v12.1.7-canary.31
2022-06-06 16:49:30 -05:00
JJ Kasper
28a56d8220
v12.1.7-canary.30
2022-06-06 14:39:08 -05:00
Tim Neutkens
20f9e949b0
v12.1.7-canary.29
2022-06-02 16:02:47 +02:00
Tim Neutkens
ebc3408f47
v12.1.7-canary.28
2022-06-02 12:03:17 +02:00
Tim Neutkens
c31c95b735
v12.1.7-canary.27
2022-06-01 13:54:05 +02:00
JJ Kasper
d153f0db28
v12.1.7-canary.26
2022-05-31 11:39:07 -05:00
Tim Neutkens
67180687f4
v12.1.7-canary.25
2022-05-30 20:25:01 +02:00
Tim Neutkens
96cabcdede
v12.1.7-canary.24
2022-05-30 15:16:47 +02:00
JJ Kasper
ec572b0bb8
v12.1.7-canary.23
2022-05-29 19:56:31 -05:00
JJ Kasper
db805ced22
v12.1.7-canary.22
2022-05-29 17:21:20 -05:00
JJ Kasper
23013674a1
v12.1.7-canary.21
2022-05-29 15:00:22 -05:00
Tim Neutkens
85871e80ee
v12.1.7-canary.20
2022-05-29 21:22:25 +02:00
JJ Kasper
ae67f2821f
v12.1.7-canary.19
2022-05-27 15:29:17 -05:00
JJ Kasper
20ee57e0ad
v12.1.7-canary.18
2022-05-26 20:37:17 -05:00
JJ Kasper
d5706dc417
v12.1.7-canary.17
2022-05-26 18:52:20 -05:00
Tim Neutkens
3a6bd135dd
v12.1.7-canary.16
2022-05-25 11:46:55 +02:00
JJ Kasper
780be60d23
v12.1.7-canary.15
2022-05-24 15:50:04 -05:00
JJ Kasper
18dc7e1a49
v12.1.7-canary.14
2022-05-24 13:34:36 -05:00
Tim Neutkens
e636234b2c
v12.1.7-canary.13
2022-05-24 12:21:19 +02:00
JJ Kasper
b77ac14529
v12.1.7-canary.12
2022-05-23 19:29:03 -05:00
Tim Neutkens
1b4e2ccd63
v12.1.7-canary.11
2022-05-23 13:35:21 +02:00
Sharath Challa
11ad65e445
Add eslint rule for not allowing styled-jsx in _document.js ( #32678 )
...
## Bug
- [ ] Related issues linked
fixes #32656
Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-05-23 02:32:13 +00:00
JJ Kasper
6cc2147386
v12.1.7-canary.10
2022-05-19 17:11:19 -05:00
JJ Kasper
50833d009d
v12.1.7-canary.9
2022-05-19 13:06:44 -05:00
Javi Velasco
f354f46b3f
Deprecate nested Middleware in favor of root middleware ( #36772 )
...
This PR deprecates declaring a middleware under `pages` in favour of the project root naming it after `middleware` instead of `_middleware`. This is in the context of having a simpler execution model for middleware and also ships some refactor work. There is a ton of a code to be simplified after this deprecation but I think it is best to do it progressively.
With this PR, when in development, we will **fail** whenever we find a nested middleware but we do **not** include it in the compiler so if the project is using it, it will no longer work. For production we will **fail** too so it will not be possible to build and deploy a deprecated middleware. The error points to a page that should also be reviewed as part of **documentation**.
Aside from the deprecation, this migrates all middleware tests to work with a single middleware. It also splits tests into multiple folders to make them easier to isolate and work with. Finally it ships some small code refactor and simplifications.
2022-05-19 15:46:21 +00:00
JJ Kasper
5acf9db617
v12.1.7-canary.8
2022-05-18 20:35:50 -05:00
Hannes Bornö
4fd883f238
Remove optional chaining from eslint rule to support older node versions ( #36978 )
...
fixes #36693
## Bug
- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2022-05-17 17:09:31 +00:00
JJ Kasper
af86ca08e4
v12.1.7-canary.7
2022-05-17 11:01:35 -05:00
JJ Kasper
257eccb7fc
v12.1.7-canary.6
2022-05-13 10:25:27 -05:00
JJ Kasper
1ccf368f1a
v12.1.7-canary.5
2022-05-12 13:11:34 -05:00
JJ Kasper
334d42c441
v12.1.7-canary.4
2022-05-11 09:26:55 -05:00
Tim Neutkens
a1bb1c69ed
v12.1.7-canary.3
2022-05-06 13:11:55 +02:00
Steven
cefb944ee5
v12.1.7-canary.2
2022-05-05 08:08:52 -04:00
JJ Kasper
87529e987c
v12.1.7-canary.1
2022-05-03 16:02:45 -05:00
Tim Neutkens
b9bf269991
v12.1.7-canary.0
2022-05-03 13:17:28 +02:00
JJ Kasper
b188fab336
v12.1.6
2022-05-02 14:46:56 -05:00
Tim Neutkens
0c23f5d1d2
v12.1.6-canary.17
2022-05-02 20:27:26 +02:00
Tim Neutkens
ddba1aab1f
v12.1.6-canary.16
2022-05-01 18:58:46 +02:00
JJ Kasper
c838b5f50d
v12.1.6-canary.15
2022-04-29 11:54:57 -05:00
JJ Kasper
244456936b
v12.1.6-canary.14
2022-04-28 13:34:45 -05:00
Tim Neutkens
0b0b5ca75c
v12.1.6-canary.13
2022-04-28 11:33:17 +02:00
JJ Kasper
af1d7c94f6
v12.1.6-canary.12
2022-04-27 14:23:09 -05:00
Tim Neutkens
5e3225da0f
v12.1.6-canary.11
2022-04-27 18:40:33 +02:00
Tim Neutkens
5907e9d394
v12.1.6-canary.10
2022-04-27 17:34:18 +02:00
Tim Neutkens
f550da7031
Remove passhref Eslint rule as it's no longer needed with new link behavior ( #36511 )
2022-04-27 17:33:13 +02:00
JJ Kasper
90863c70ea
v12.1.6-canary.9
2022-04-26 15:14:22 -05:00
Tim Neutkens
52816703be
v12.1.6-canary.8
2022-04-26 14:15:28 +02:00
JJ Kasper
994f1823ba
v12.1.6-canary.7
2022-04-25 19:22:10 -05:00
Steven
94faeec1dd
v12.1.6-canary.6
2022-04-22 08:57:41 -04:00
Janicklas Ralph
0441f816a6
Changes to the beforeInteractive strategy to make it work for streaming ( #31936 )
...
Changes to the beforeInteractive strategy to make it work for streaming
Splitting `beforeInteractive` into two strategies `beforeInteractive` at the _document level and `beforePageRender` for page level <Scripts>
2022-04-21 21:15:53 +00:00
JJ Kasper
b8f7c520da
v12.1.6-canary.5
2022-04-21 10:07:37 -05:00
Tim Neutkens
0e2fd9280a
v12.1.6-canary.4
2022-04-19 14:44:21 +02:00
JJ Kasper
e80c48e009
v12.1.6-canary.3
2022-04-16 11:15:20 -05:00
JJ Kasper
9c7311b1a5
v12.1.6-canary.2
2022-04-15 14:08:42 -05:00
Michael Ward
1be5f36123
Adds linting rule to avoid assignment to 'module' variable. Fixes #34859 ( #35279 )
2022-04-15 14:45:53 +02:00
JJ Kasper
6907519155
v12.1.6-canary.1
2022-04-14 10:23:58 -05:00
JJ Kasper
bc40c0b530
v12.1.6-canary.0
2022-04-13 12:45:39 -05:00
JJ Kasper
38d17bca0c
v12.1.5
2022-04-12 14:40:16 -05:00
JJ Kasper
9c613aaa66
v12.1.5-canary.7
2022-04-12 13:35:53 -05:00
JJ Kasper
a9d6d9f71a
v12.1.5-canary.6
2022-04-11 16:27:07 -05:00
JJ Kasper
da39e29c27
v12.1.5-canary.5
2022-04-11 12:00:35 -05:00
JJ Kasper
345f5cc351
v12.1.5-canary.4
2022-04-07 11:41:10 -05:00
JJ Kasper
211ce73c87
v12.1.5-canary.3
2022-04-06 13:34:56 -05:00
JJ Kasper
e146168c3b
v12.1.5-canary.2
2022-04-05 18:34:29 -05:00
JJ Kasper
4db8c49cc3
v12.1.5-canary.1
2022-04-04 10:29:32 -05:00
JJ Kasper
3069d4b770
v12.1.5-canary.0
2022-03-31 18:27:09 -05:00