feat(identity-integration): app and pages router #85
Errors 236, Warnings 1
Found 236 errors and 1 warnings
Annotations
Check failure on line 2 in packages/identity-integration/src/index.ts
github-actions / Lint
(@typescript-eslint/consistent-type-exports): All exports in the declaration are only used as types. Use `export type`.
All exports in the declaration are only used as types. Use `export type`.
Raw output
> 1 | export { Session } from '@ory/kratos-client'
| ^
2 | export { Configuration } from '@ory/kratos-client'
3 | export * from './providers/index.js'
4 | export * from './ui/index.js'
Check failure on line 2 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@next/next/no-document-import-in-page): `<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
`<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
Raw output
> 1 | import Document from 'next/document'
| ^
2 | import React from 'react'
3 |
4 | export const withGtag = (gaTrackingId?: string) => (TargetComponent) =>
Check failure on line 5 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-function-return-type): Missing return type on function.
Missing return type on function.
Raw output
2 | import React from 'react'
3 |
> 4 | export const withGtag = (gaTrackingId?: string) => (TargetComponent) =>
| ^
5 | class WithGtag extends TargetComponent {
6 | static async getInitialProps(context) {
7 | const props = await super.getInitialProps(context)
Check failure on line 5 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-module-boundary-types): Missing return type on function.
Missing return type on function.
Raw output
2 | import React from 'react'
3 |
> 4 | export const withGtag = (gaTrackingId?: string) => (TargetComponent) =>
| ^
5 | class WithGtag extends TargetComponent {
6 | static async getInitialProps(context) {
7 | const props = await super.getInitialProps(context)
Check failure on line 5 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-module-boundary-types): Argument 'TargetComponent' should be typed.
Argument 'TargetComponent' should be typed.
Raw output
2 | import React from 'react'
3 |
> 4 | export const withGtag = (gaTrackingId?: string) => (TargetComponent) =>
| ^
5 | class WithGtag extends TargetComponent {
6 | static async getInitialProps(context) {
7 | const props = await super.getInitialProps(context)
Check failure on line 7 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-function-return-type): Missing return type on function.
Missing return type on function.
Raw output
4 | export const withGtag = (gaTrackingId?: string) => (TargetComponent) =>
5 | class WithGtag extends TargetComponent {
> 6 | static async getInitialProps(context) {
| ^
7 | const props = await super.getInitialProps(context)
8 |
9 | if (gaTrackingId) {
Check failure on line 8 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
5 | class WithGtag extends TargetComponent {
6 | static async getInitialProps(context) {
> 7 | const props = await super.getInitialProps(context)
| ^
8 |
9 | if (gaTrackingId) {
10 | props.head.push(
Check failure on line 11 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
8 |
9 | if (gaTrackingId) {
> 10 | props.head.push(
| ^
11 | <script
12 | dangerouslySetInnerHTML={{
13 | __html: `
Check warning on line 12 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@next/next/next-script-for-ga): Prefer `next/script` component when using the inline script for Google Analytics. See: https://nextjs.org/docs/messages/next-script-for-ga
Prefer `next/script` component when using the inline script for Google Analytics. See: https://nextjs.org/docs/messages/next-script-for-ga
Raw output
9 | if (gaTrackingId) {
10 | props.head.push(
> 11 | <script
| ^
12 | dangerouslySetInnerHTML={{
13 | __html: `
14 | (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
Check failure on line 26 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/no-unsafe-return): Unsafe return of an `any` typed value.
Unsafe return of an `any` typed value.
Raw output
23 | }
24 |
> 25 | return props
| ^
26 | }
27 |
28 | static renderDocument(...args) {
Check failure on line 29 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-function-return-type): Missing return type on function.
Missing return type on function.
Raw output
26 | }
27 |
> 28 | static renderDocument(...args) {
| ^
29 | // @ts-ignore
30 | return Document.renderDocument(...args)
31 | }
Check failure on line 30 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/prefer-ts-expect-error): Use "@ts-expect-error" to ensure an error is actually being suppressed.
Use "@ts-expect-error" to ensure an error is actually being suppressed.
Raw output
27 |
28 | static renderDocument(...args) {
> 29 | // @ts-ignore
| ^
30 | return Document.renderDocument(...args)
31 | }
32 | }
Check failure on line 31 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/no-unsafe-return): Unsafe return of an `any` typed value.
Unsafe return of an `any` typed value.
Raw output
28 | static renderDocument(...args) {
29 | // @ts-ignore
> 30 | return Document.renderDocument(...args)
| ^
31 | }
32 | }
33 |
Check failure on line 31 in packages/next-document-with-gtag/src/with-gtag.provider.tsx
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
28 | static renderDocument(...args) {
29 | // @ts-ignore
> 30 | return Document.renderDocument(...args)
| ^
31 | }
32 | }
33 |
Check failure on line 2 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@next/next/no-document-import-in-page): `<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
`<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
Raw output
> 1 | import { Head } from 'next/document'
| ^
2 | import { Html } from 'next/document'
3 | import { Main } from 'next/document'
4 | import { NextScript } from 'next/document'
Check failure on line 3 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@next/next/no-document-import-in-page): `<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
`<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
Raw output
1 | import { Head } from 'next/document'
> 2 | import { Html } from 'next/document'
| ^
3 | import { Main } from 'next/document'
4 | import { NextScript } from 'next/document'
5 | import { Helmet } from 'react-helmet'
Check failure on line 4 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@next/next/no-document-import-in-page): `<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
`<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
Raw output
1 | import { Head } from 'next/document'
2 | import { Html } from 'next/document'
> 3 | import { Main } from 'next/document'
| ^
4 | import { NextScript } from 'next/document'
5 | import { Helmet } from 'react-helmet'
6 | import Document from 'next/document'
Check failure on line 5 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@next/next/no-document-import-in-page): `<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
`<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
Raw output
2 | import { Html } from 'next/document'
3 | import { Main } from 'next/document'
> 4 | import { NextScript } from 'next/document'
| ^
5 | import { Helmet } from 'react-helmet'
6 | import Document from 'next/document'
7 | import React from 'react'
Check failure on line 7 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@next/next/no-document-import-in-page): `<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
`<Document />` from `next/document` should not be imported outside of `pages/_document.js`. See: https://nextjs.org/docs/messages/no-document-import-in-page
Raw output
4 | import { NextScript } from 'next/document'
5 | import { Helmet } from 'react-helmet'
> 6 | import Document from 'next/document'
| ^
7 | import React from 'react'
8 |
9 | export const withHelmet = () => (TargetComponent) =>
Check failure on line 10 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-function-return-type): Missing return type on function.
Missing return type on function.
Raw output
7 | import React from 'react'
8 |
> 9 | export const withHelmet = () => (TargetComponent) =>
| ^
10 | class WithHelmet extends TargetComponent {
11 | static async getInitialProps(context) {
12 | const props = await TargetComponent.getInitialProps(context)
Check failure on line 10 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-module-boundary-types): Missing return type on function.
Missing return type on function.
Raw output
7 | import React from 'react'
8 |
> 9 | export const withHelmet = () => (TargetComponent) =>
| ^
10 | class WithHelmet extends TargetComponent {
11 | static async getInitialProps(context) {
12 | const props = await TargetComponent.getInitialProps(context)
Check failure on line 10 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-module-boundary-types): Argument 'TargetComponent' should be typed.
Argument 'TargetComponent' should be typed.
Raw output
7 | import React from 'react'
8 |
> 9 | export const withHelmet = () => (TargetComponent) =>
| ^
10 | class WithHelmet extends TargetComponent {
11 | static async getInitialProps(context) {
12 | const props = await TargetComponent.getInitialProps(context)
Check failure on line 12 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@typescript-eslint/explicit-function-return-type): Missing return type on function.
Missing return type on function.
Raw output
9 | export const withHelmet = () => (TargetComponent) =>
10 | class WithHelmet extends TargetComponent {
> 11 | static async getInitialProps(context) {
| ^
12 | const props = await TargetComponent.getInitialProps(context)
13 |
14 | const helmet = Helmet.renderStatic()
Check failure on line 13 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
10 | class WithHelmet extends TargetComponent {
11 | static async getInitialProps(context) {
> 12 | const props = await TargetComponent.getInitialProps(context)
| ^
13 |
14 | const helmet = Helmet.renderStatic()
15 | const helmetHead = Object.keys(helmet)
Check failure on line 15 in packages/next-document-with-helmet/src/with-helmet.provider.tsx
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
12 | const props = await TargetComponent.getInitialProps(context)
13 |
> 14 | const helmet = Helmet.renderStatic()
| ^
15 | const helmetHead = Object.keys(helmet)
16 | .filter((el) => el !== 'htmlAttributes' && el !== 'bodyAttributes')
17 | .map((el) => helmet[el].toComponent())