Repository: tatethurston/nextjs-routes
Pull request #27 (2022-07-08 18:38:33)

add prettier ignores

codecov[bot]: # [Codecov](https://codecov.io/gh/tatethurston/nextjs-routes/pull/27?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston) Report
> Merging [#27](https://codecov.io/gh/tatethurston/nextjs-routes/pull/27?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston) (55c1b6b) into [main](https://codecov.io/gh/tatethurston/nextjs-routes/commit/b91e3ffa14a11a58cd7d7492cea6fd1905ef75c2?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston) (b91e3ff) will **not change** coverage.
> The diff coverage is `n/a`.

```diff
@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage   98.24%   98.24%           
=======================================
  Files           1        1           
  Lines          57       57           
  Branches       13       13           
=======================================
  Hits           56       56           
  Misses          1        1           
```


| [Impacted Files](https://codecov.io/gh/tatethurston/nextjs-routes/pull/27?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston) | Coverage Δ | |
|---|---|---|
| [src/utils.ts](https://codecov.io/gh/tatethurston/nextjs-routes/pull/27/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston#diff-c3JjL3V0aWxzLnRz) | `98.24% <ø> (ø)` | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/tatethurston/nextjs-routes/pull/27?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/tatethurston/nextjs-routes/pull/27?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston). Last update [b91e3ff...55c1b6b](https://codecov.io/gh/tatethurston/nextjs-routes/pull/27?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tate+Thurston).


Patch:
diff --git a/src/utils.ts b/src/utils.ts
index f9da3cf..2c76802 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -114,8 +114,8 @@ export function generate(routes: Route[]): string {
 // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.'
 // Run \`yarn nextjs-routes\` to regenerate this file.
 /* eslint-disable */
-// prettier-ignore
 
+// prettier-ignore
 declare module "nextjs-routes" {
   export type Route =
     | ${routes
@@ -132,6 +132,7 @@ declare module "nextjs-routes" {
   type Query<Params = {}> = Params & { [key: string]: string | undefined };
 }
 
+// prettier-ignore
 declare module "next/link" {
   import type { Route } from "nextjs-routes";
   import type { LinkProps as NextLinkProps } from "next/dist/client/link";
@@ -159,6 +160,7 @@ declare module "next/link" {
   export default Link;
 }
 
+// prettier-ignore
 declare module "next/router" {
   import type { Route } from "nextjs-routes";
   import type { NextRouter as Router } from "next/dist/client/router";


Test patch:
diff --git a/e2e/nextjs-routes.d.ts b/e2e/nextjs-routes.d.ts
index 78c08d0..49e29f0 100644
--- a/e2e/nextjs-routes.d.ts
+++ b/e2e/nextjs-routes.d.ts
@@ -1,8 +1,8 @@
 // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.'
 // Run `yarn nextjs-routes` to regenerate this file.
 /* eslint-disable */
-// prettier-ignore
 
+// prettier-ignore
 declare module "nextjs-routes" {
   export type Route =
     | { pathname: "/foos/[foo]"; query: Query<{ foo: string; }> }
@@ -11,6 +11,7 @@ declare module "nextjs-routes" {
   type Query<Params = {}> = Params & { [key: string]: string | undefined };
 }
 
+// prettier-ignore
 declare module "next/link" {
   import type { Route } from "nextjs-routes";
   import type { LinkProps as NextLinkProps } from "next/dist/client/link";
@@ -38,6 +39,7 @@ declare module "next/link" {
   export default Link;
 }
 
+// prettier-ignore
 declare module "next/router" {
   import type { Route } from "nextjs-routes";
   import type { NextRouter as Router } from "next/dist/client/router";
diff --git a/src/__snapshots__/test.ts.snap b/src/__snapshots__/test.ts.snap
index 01929bb..ffd99bc 100644
--- a/src/__snapshots__/test.ts.snap
+++ b/src/__snapshots__/test.ts.snap
@@ -4,8 +4,8 @@ exports[`route generation typescript 1`] = `
 "// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.'
 // Run \`yarn nextjs-routes\` to regenerate this file.
 /* eslint-disable */
-// prettier-ignore
 
+// prettier-ignore
 declare module \\"nextjs-routes\\" {
   export type Route =
     | { pathname: \\"/404\\"; query?: Query | undefined }
@@ -30,6 +30,7 @@ declare module \\"nextjs-routes\\" {
   type Query<Params = {}> = Params & { [key: string]: string | undefined };
 }
 
+// prettier-ignore
 declare module \\"next/link\\" {
   import type { Route } from \\"nextjs-routes\\";
   import type { LinkProps as NextLinkProps } from \\"next/dist/client/link\\";
@@ -57,6 +58,7 @@ declare module \\"next/link\\" {
   export default Link;
 }
 
+// prettier-ignore
 declare module \\"next/router\\" {
   import type { Route } from \\"nextjs-routes\\";
   import type { NextRouter as Router } from \\"next/dist/client/router\\";