Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
chore(config): add million lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdcruz committed Nov 27, 2024
1 parent 43c6df3 commit b46b923
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ next-env.d.ts

# Trigger.dev cache
.trigger

# Million Lint
.million
Binary file modified bun.lockb
Binary file not shown.
8 changes: 6 additions & 2 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import MillionLint from '@million/lint';
import type { NextConfig } from 'next';
import withBundleAnalyzer from '@next/bundle-analyzer';

Expand Down Expand Up @@ -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));
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b46b923

Please sign in to comment.