Skip to content

Commit

Permalink
chore: add Million lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuireu committed Mar 2, 2024
1 parent 82c180a commit b1f3783
Show file tree
Hide file tree
Showing 4 changed files with 1,725 additions and 169 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
42 changes: 22 additions & 20 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,29 @@ import react from '@astrojs/react';
import partytown from '@astrojs/partytown';
import netlify from '@astrojs/netlify';
import million from 'million/compiler';
import MillionCompiler from '@million/lint';

export default defineConfig({
site: 'https://biancafiore.me',
integrations: [
mdx(),
sitemap(),
react(),
million.vite({ mode: 'react', server: true, auto: true }),
partytown({
config: {
forward: ['dataLayer.push'],
},
}),
],
vite: {
define: {
'import.meta.env.PUBLIC_GOOGLE_ANALYTICS_ID': process.env.PUBLIC_GOOGLE_ANALYTICS_ID,
'import.meta.env.PUBLIC_GOOGLE_RECAPTCHA_SITE_KEY': process.env.PUBLIC_GOOGLE_RECAPTCHA_SITE_KEY,
'import.meta.env.GOOGLE_RECAPTCHA_SECRET_KEY': process.env.GOOGLE_RECAPTCHA_SECRET_KEY,
},
site: 'https://biancafiore.me',
integrations: [
mdx(),
sitemap(),
react(),
million.vite({mode: 'react', server: true, auto: true}),
partytown({
config: {
forward: ['dataLayer.push'],
},
}),
],
vite: {
plugins: [MillionCompiler.vite()],
define: {
'import.meta.env.PUBLIC_GOOGLE_ANALYTICS_ID': process.env.PUBLIC_GOOGLE_ANALYTICS_ID,
'import.meta.env.PUBLIC_GOOGLE_RECAPTCHA_SITE_KEY': process.env.PUBLIC_GOOGLE_RECAPTCHA_SITE_KEY,
'import.meta.env.GOOGLE_RECAPTCHA_SECRET_KEY': process.env.GOOGLE_RECAPTCHA_SECRET_KEY,
},
output: 'hybrid',
adapter: netlify(),
},
output: 'hybrid',
adapter: netlify(),
});
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,22 @@
"@fontsource-variable/nunito-sans": "^5.0.9",
"@fontsource/baskervville": "^5.0.18",
"@hookform/resolvers": "^3.3.4",
"@types/node": "^20.11.22",
"@types/react": "^18.2.60",
"@million/lint": "^0.0.60",
"@types/node": "^20.11.24",
"@types/react": "^18.2.61",
"@types/react-dom": "^18.2.19",
"astro": "^4.4.6",
"astro": "^4.4.9",
"gsap": "^3.12.5",
"markdown-it": "^14.0.0",
"million": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-globe.gl": "^2.27.2",
"react-google-recaptcha-v3": "^1.10.1",
"react-hook-form": "^7.50.1",
"react-hook-form": "^7.51.0",
"react-router-dom": "^6.22.2",
"swiper": "^11.0.7",
"three": "^0.161.0",
"three": "^0.162.0",
"typescript": "^5.3.3",
"zod": "^3.22.4"
},
Expand All @@ -70,7 +71,7 @@
"@testing-library/react-hooks": "^8.0.1",
"@types/eslint": "^8.56.5",
"@types/markdown-it": "^13.0.7",
"@types/three": "^0.161.2",
"@types/three": "^0.162.0",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"eslint": "^8.57.0",
Expand Down
Loading

0 comments on commit b1f3783

Please sign in to comment.