Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .million/store.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"editor.formatOnSave": false,
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"headwind.runOnSave": false,
"typescript.preferences.importModuleSpecifier": "non-relative",
Expand Down
18 changes: 13 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
/** @type {import('next').NextConfig} */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const MillionLint = require('@million/lint');

module.exports = withBundleAnalyzer({
// const withBundleAnalyzer = require('@next/bundle-analyzer')({
// enabled: process.env.ANALYZE === 'true',
// });

const nextConfig = {
rsc: true,
filter: {
include: "**/src/**/.{mtsx,mjsx,tsx,jsx}",
},
eslint: {
dirs: ['src'],
},
Expand Down Expand Up @@ -46,4 +52,6 @@ module.exports = withBundleAnalyzer({
// experimental: {
// scrollRestoration: true,
// },
});
};

module.exports = MillionLint.next()(nextConfig);
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"prepare": "husky install"
},
"dependencies": {
"@next/bundle-analyzer": "^12.3.1",
"@next/bundle-analyzer": "^12.3.4",
"classnames": "^2.3.1",
"clsx": "^1.1.1",
"copy-to-clipboard": "^3.3.2",
Expand All @@ -51,6 +51,7 @@
"devDependencies": {
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@million/lint": "1.0.0-rc.76",
"@svgr/webpack": "^6.2.1",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/line-clamp": "^0.4.0",
Expand Down
Loading