diff --git a/examples/with-axiom/middleware.ts b/examples/with-axiom/middleware.ts
index 1aae279cf1a..9c2833a5b8e 100644
--- a/examples/with-axiom/middleware.ts
+++ b/examples/with-axiom/middleware.ts
@@ -2,7 +2,7 @@ import { NextResponse } from 'next/server'
import { log, withAxiom } from 'next-axiom'
async function middleware() {
- log.info("Hello from middleware", { 'bar': 'baz' })
+ log.info('Hello from middleware', { bar: 'baz' })
return NextResponse.next()
}
diff --git a/examples/with-axiom/next-env.d.ts b/examples/with-axiom/next-env.d.ts
new file mode 100644
index 00000000000..4f11a03dc6c
--- /dev/null
+++ b/examples/with-axiom/next-env.d.ts
@@ -0,0 +1,5 @@
+///
+///
+
+// NOTE: This file should not be edited
+// see https://nextjs.org/docs/basic-features/typescript for more information.
diff --git a/examples/with-axiom/next.config.js b/examples/with-axiom/next.config.js
index e58acaf3cf2..4ddf957b071 100644
--- a/examples/with-axiom/next.config.js
+++ b/examples/with-axiom/next.config.js
@@ -1,4 +1,4 @@
-const { withAxiom } = require('next-axiom');
+const { withAxiom } = require('next-axiom')
/** @type {import('next').NextConfig} */
const nextConfig = withAxiom({
diff --git a/examples/with-axiom/package.json b/examples/with-axiom/package.json
index 1cbc2fb4731..5c1b7401446 100644
--- a/examples/with-axiom/package.json
+++ b/examples/with-axiom/package.json
@@ -18,4 +18,4 @@
"@types/node": "^16.11.26",
"typescript": "^4.7.4"
}
-}
\ No newline at end of file
+}
diff --git a/examples/with-axiom/pages/api/hello.ts b/examples/with-axiom/pages/api/hello.ts
index 8e3e71efc83..3515f82ab10 100644
--- a/examples/with-axiom/pages/api/hello.ts
+++ b/examples/with-axiom/pages/api/hello.ts
@@ -1,9 +1,9 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
-import { log, withAxiom } from 'next-axiom';
+import { log, withAxiom } from 'next-axiom'
async function handler(req: NextApiRequest, res: NextApiResponse) {
- log.info('Hello from function', { url: req.url });
+ log.info('Hello from function', { url: req.url })
res.status(200).json({ name: 'John Doe' })
}
diff --git a/examples/with-axiom/pages/index.tsx b/examples/with-axiom/pages/index.tsx
index 8c7cfec4c09..230ac54de96 100644
--- a/examples/with-axiom/pages/index.tsx
+++ b/examples/with-axiom/pages/index.tsx
@@ -10,9 +10,9 @@ export const getStaticProps = async (ctx: GetStaticPropsContext) => {
}
const fetcher = async (...args: any[]) => {
- log.info('Hello from SWR', { args });
- const res = await fetch.apply(null, [...args]);
- return await res.json();
+ log.info('Hello from SWR', { args })
+ const res = await fetch.apply(null, [...args])
+ return await res.json()
}
const Home = () => {
diff --git a/examples/with-axiom/tsconfig.json b/examples/with-axiom/tsconfig.json
index 84f59a7aed8..b9cc80c0d4e 100644
--- a/examples/with-axiom/tsconfig.json
+++ b/examples/with-axiom/tsconfig.json
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"target": "es5",
- "lib": [
- "dom",
- "dom.iterable",
- "esnext"
- ],
+ "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
@@ -18,12 +14,6 @@
"isolatedModules": true,
"jsx": "preserve"
},
- "include": [
- "next-env.d.ts",
- "**/*.ts",
- "**/*.tsx"
- ],
- "exclude": [
- "node_modules"
- ]
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
+ "exclude": ["node_modules"]
}