Skip to content

Commit

Permalink
Switch from Gatsby to Astro
Browse files Browse the repository at this point in the history
  • Loading branch information
john-kurkowski committed Apr 5, 2024
1 parent 1ca38ec commit 81b7bf2
Show file tree
Hide file tree
Showing 42 changed files with 8,943 additions and 19,961 deletions.
25 changes: 12 additions & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,28 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:astro/recommended',
'plugin:jsx-a11y/recommended',
'plugin:react/recommended',
],
overrides: [
{
files: ['*.astro'],
parser: 'astro-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro'],
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
plugins: ['@typescript-eslint', 'jsx-a11y', 'react'],
plugins: ['@typescript-eslint', 'jsx-a11y'],
root: true,
rules: {
'no-console': 'error',
'react/no-unescaped-entities': [
'error',
{
forbid: ['>', '}'],
},
],
},
settings: {
react: {
version: 'detect',
},
},
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.astro/
.cache
.eslintcache
.netlify
dist/
node_modules/
public/
src/env.d.ts
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"jsxSingleQuote": true,
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"proseWrap": "always",
"semi": false,
"singleQuote": true
Expand Down
9 changes: 9 additions & 0 deletions astro.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'

export default defineConfig({
site: 'https://johnkurkowski.com',
integrations: [mdx(), sitemap(), tailwind({ applyBaseStyles: false })],
})
1 change: 0 additions & 1 deletion gatsby-browser.js

This file was deleted.

97 changes: 0 additions & 97 deletions gatsby-config.mjs

This file was deleted.

68 changes: 0 additions & 68 deletions gatsby-node.mjs

This file was deleted.

62 changes: 0 additions & 62 deletions gatsby-ssr.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion lostpixel.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CustomProjectConfig } from 'lost-pixel'
import type { CustomProjectConfig } from 'lost-pixel'
import { readFileSync } from 'fs'
import { join } from 'path'

Expand Down
Loading

0 comments on commit 81b7bf2

Please sign in to comment.