diff --git a/.gitignore b/.gitignore index c57b6e9b..c6e2685a 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,6 @@ next-env.d.ts # Trigger.dev cache .trigger + +# Million Lint +.million diff --git a/bun.lockb b/bun.lockb index e4202223..3fcd745d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/next.config.ts b/next.config.ts index c1e53d1b..848c149e 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,3 +1,4 @@ +import MillionLint from '@million/lint'; import type { NextConfig } from 'next'; import withBundleAnalyzer from '@next/bundle-analyzer'; @@ -63,6 +64,9 @@ const nextConfig: NextConfig = { }, }; -export default withBundleAnalyzer({ +export default MillionLint.next({ + enabled: true, + rsc: true +})(withBundleAnalyzer({ enabled: process.env.DEBUG === '1', -})(nextConfig); +})(nextConfig)); diff --git a/package.json b/package.json index 8f51df91..c478a213 100644 --- a/package.json +++ b/package.json @@ -84,6 +84,7 @@ "devDependencies": { "@eslint/eslintrc": "3.2.0", "@eslint/js": "9.14.0", + "@million/lint": "^1.0.13", "@types/node": "22.10.0", "@types/pdfkit": "0.13.6", "@types/qrcode": "1.5.5",